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):
Expression:
${msg}
Format of the script is groovy.
Please Advice