Observed
- given
- process definition (parent) with a call activity
- a subprocess with a wait state task or an incident (T1)
- a process instance of parent is started and the call activity is entered
- token reaches the wait state in the subprocess or is stuck because of an incident (T1)
- when
- I perform a process instance modification with:
- cancel all activities of T1
- start process instance after T1
- I perform a process instance modification with:
- then
- the main process is cancelled
- expected:
- main process is not cancelled and continues normally
Hint:
A test to reproduce this error can be found here (probably should be simplified): https://github.com/JoHeinem/camunda-engine-unittest/blob/SUPPORT-4193/src/test/java/org/camunda/bpm/unittest/SimpleTestCase.java or token-jump-call-activity-with-incident-process.tgz