Steps to reproduce:
- add Java Delegate to Process
public class ChangeVariablesDelegate implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception
{ // first set variable to 'null' execution.setVariable("variableName", null); // now set to serializable execution.setVariable("variableName", new SerializableVariable("foo")); }}
- Command fails with persistence exception: variable instance is flushed BEFORE byte array which results in foreign key violation