这可能是最常被问到的问题。
只需要几行代码就可以将该值设置为工作流程变量:
This is probably the most commonly asked question of all time.
It only takes a couple of lines of code to set the value into a workflow variable:
| Code Block |
|---|
import org.joget.workflow.model.service.*;
WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager");
wm.activityVariable(workflowAssignment.getActivityId(),"status", "Approved"); |