Sub process tasks are not terminating when terminate end event is reached.
I am trying to model a scenario whereby a transactional sub process has a parallel gateway just after the start event, the first path has a cancel intermediate event and then a cancel end event (meant to allow the user to cancel the sub-process), the other path has two tasks and finishes with a terminate end event. See attached for a model of the process.
I would expect that if two tasks are processed and the terminate end event is reached before the cancel intermediate event is triggered, that
a) the main process should continue; AND
b) the "Cancel" parallel flow should be invalidated (i.e. you should no longer see this task as an event in the work portal).
The first part (a) occurs correctly, but (b) does not. I can still see the "Cancel" task in the work portal.
See "Problem Description" attached which clearly shows the issue.
Can you advise me on how I can model & automate this scenario correctly.
(I don't want to use reusable or multiple sub-processes because I want to easily access the main process data model from the sub-process).