1
0
-1

I tried Setting Workflow Variable Value in Process Tool Bean Shell and Workflow Variable Update Process Tool  but it doesn't work and I don't know why it doesn't work.

and below is my code in bean shell

import org.joget.workflow.model.service.*;

WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager");
wm.activityVariable(workflowAssignment.getActivityId(),"StartTime", "60");

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager");
      wm.activityVariable(workflowAssignment.getActivityId(),"VARIABLE", "VALUE");

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi, there is not enough information to help. Where is the beanshell code used, and are there exceptions in the logs? Depending on situation, you could try using WorkflowManager#processVariable instead.

        1. phoebe

          Hi anders, I used the beanshell code in beanshell tool in multi tool in process and in the same multi tool I want to use this variable as post parameter in json tool . and there is no exceptions in the logs and I tried process variable also but it didn't work

          WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager");
          wm.processVariable("#assignment.processId#","StartTime", "60");

        CommentAdd your comment...