Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

I use two ways to try to get workflow variable by beanshell in participant of workflow, but all two failed, would you please give some ideas about how to solve this issue.

Code Block
import org.joget.workflow.model.WorkflowActivity;
import org.joget.apps.app.service.AppUtil;
import org.joget.workflow.model.service.*;


//way 1 
	WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager");
 	wm.activityVariable(workflowAssignment.getActivityId(), "status", "variableValue");

//way 2
	String status= "#variable.status#";

	System.out.print("===status===" + status);

 

Thanks

Gene