Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
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); |
This beanshell script retrieves workflow variable 'ApprovalLevel', converts it to an integer, adds 1, and stores it back as the same workflow variable.