AnsweredAssumed Answered

How do i use variables defined in the Script Task in the User Task?

Question asked by asheerabbas on Mar 14, 2017
Latest reply on Mar 16, 2017 by asheerabbas

Declaring variables in Script Task through execution.setVariable and using them in the User Task.


I have declared a variable in Script Task using execution.setVariable in the activiti Designer, but when i use the same variable through the ${expression} in the usertask and i click on the submit button when the process is run it says unable to evaluate expression.


This is what i have done.


Script Task:


message = "Hello"

execution.setVariable("msg", message)


User Task


Form Properities (String):







Format of the script is groovy.


Please Advice