When starting this process and completing User Task 1, the engine runs into a NullpointerException (stacktrace attached to this issue):
Please find the failing test case here: https://github.com/camunda/camunda-bpm-assert-scenario/blob/master/test/test-7.5/src/test/java/org/camunda/bpm/scenario/test/escalations/EscalationEventSubProcessTriggeredTwiceConventionalTest.java#L19
- When completing the User Task 2 first, the test runs through and reaches the End Event of the Sub Process twice, as expected. My impression - also because I already saw that in other tests - is that the fact that a sub process execution is still running is necessary to see this effect.
- The same scenario using boundary events works as expected: the End Event after the boundary escalation event is reached twice, regardless of completing User Task 1 first or the first instance of User Task 2 first... you find the fully working test case in the same folder as the failing test case linked above
- The NullPointerException also happens when only using intermediate events - showing that it is not related to reaching the end event of the process instance. I attached another diagram to show that other failing scenario. The failing test case for this second diagram is here: https://github.com/camunda/camunda-bpm-assert-scenario/blob/master/test/test-7.5/src/test/java/org/camunda/bpm/scenario/test/escalations/EscalationEventSubProcessTriggeredTwiceIntermediateConventionalTest.java#L19