We have recently updated activiti from 5.12 to 5.17 and we are now experiencing problems in some of our running processes. We are using javascript in our process definitions like this.
As explained in Release note 5.12.1 you have to call execution.setVariable("variableName", variableValue) to set process variables. And for backwards compatibility it is possible to use "autoStoreVariables". But is this possible to do in running processes?
You could migrate running instances to the new process definition version containing the "autoStoreVariables" option. But migrating process instances can be complex when there's parallel or multi instance behaviour etc.