AnsweredAssumed Answered

Instance variables not updating in ScriptTask

Question asked by leggebroten on Mar 11, 2014
Latest reply on Mar 13, 2014 by leggebroten
(Sorry if this ends up being a double post … the original one never appeared)

The simplified attached model has a very simple ScriptTask that tries to update a process variable.

The variable value is never updated.

Methods tried:
1) execution.setVariable. The attached model uses the execution.setVariable suggested in the documentation.
2) activiti:autoStoreVariables="true". I have also tried setting activiti:autoStoreVariables="true" but that doesn't work either. It looks like the engine is overwriting the value upon deploy. If you import the attached model, deploy it, then look at the XML from the deployment screen it shows activiti:autoStoreVariables="false"

Outcomes