Problem:
- Process Instance Modification fails with SQL constraint violation exception ACT_FK_VAR_EXE when
- the new execution creates a local task variable
- and the existing execution is canceled
AT:
- I can modify (create+cancel) an execution which creates a local task variable
Hints:
- the modification can be executed successful if the ordering of the instruction is switched (cancel before create)
- it seems that the task variable instance is not updated on execution tree compaction (see org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.moveTasksTo(ExecutionEntity)) if it is not persistent yet