Hiya - this process, when used as a process definition from a "callactivity" node, never returns.
I would expect if you do not execute the cancelOrder it should execute either of the two branches on the left, reach the end node, and return control to the superprocess.
Instead:
- the superprcess never resumes control. - Dumping the process history shows the "callactivity" node as not finished - the cancelOrder task is marked as not completed
I tried adding exclusive gateways before the end, but to no avail.
I will try to provide a unit test, but if you have any ideas of what may be wrong in the meantime, I'd be very grateful, as it will require some time for me to unroot the subprocess from the superprocess.
Now the terminate end event should not be necessary. If this process reaches the end event or the error end event it should complete the process and therefore the call activity should be completed. If you upload the process project with a unit test I will take a look at it.