1
0
-1

Hi. I was trying to write a beanshell to update the workflow variable for a process. Below is the code that I write to update one of the variable. However, after execute the beanshell tool the workflow variable in the process wasn't update and the log file also didn't show any error code. What is the issue ya?


workflowManager.processVariable("4206_test_testProcess","status", "Rejected");

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Try this documentation guide for help: Setting Workflow Variable Value in Process Tool Bean Shell

      1. Jun Feng Lim

        I had tried this guide. But that only can update workflow variables in one activity only. The updated value not bring forward to the following activities. That is the reason why I use workflowManager.processVariable instead of workflowManager.activityVariable

      2. Jun Feng Lim

        Solved.

        After I test my code row by row, I realize that it is the sequence issue.

        The reason that I not able to update the activity variable is because I was putting my activityVariable code after assignmentForceComplete.  My problem had solved after I executed activityVariable before assignmentForceComplete

      CommentAdd your comment...