In the Bean Shell Form Binder of a form that is in a workflow, how do you assign a value to a workflow variable?
Confluence User - 16 Nov, 2015
In the Bean Shell Form Binder of a form that is in a workflow, how do you assign a value to a workflow variable?
This doesn't work, it gives an error at "workflowAssignment" in the third statement below.
PluginManager pluginManager = (PluginManager) AppUtil.getApplicationContext().getBean("pluginManager");
WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager");
wm.activityVariable(workflowAssignment.getActivityId(),"wf_status", "Approved");
forms;workflow