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.

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

  • No labels

1 Comment

  1. Anyone can help me to solve this issue?

     

    Thanks

    Gene