Given:
- a process definition with an embedded sub process
- the process instance has only one execution which is at an activity inside the sub process
Problem:
- when the token is moved after the activity using process instance modification (cancel existing activity instance first) and the token reaches the end of the sub process then the process instance is not ended
AT:
- when the token is moved to the end of the sub process then the process instance is ended at the end of the process instance modification