Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
The Bean Shell plugin allows one to write custom Java code to achieve what other process tools may not.
Figure 1: Bean Shell Properties
Name | Description |
---|---|
Script | Script in Java. Please see Bean Shell Programming Guide for code example. |
import org.joget.workflow.model.service.WorkflowManager; WorkflowManager workflowManager = (WorkflowManager) pluginManager.getBean( "workflowManager" ); String approvalLvl = workflowManager.getProcessVariable(workflowAssignment.getProcessId(), "ApprovalLevel" ); String newApprovalLvl = String.valueOf(Integer.parseInt(approvalLvl)+ 1 ); workflowManager.activityVariable(workflowAssignment.getActivityId(), "ApprovalLevel" , newApprovalLvl); |
...