Search code examples
workflowactivitibpmn

How to cancel activity after message boundary event


Having the following process

enter image description here

and a message boundary event which has cancelActivity set to false so that after Should cancel the Sub Process could continue where it was before the event was received - in case that No was selected.

How could I simulate as if cancelActivity was set to true in case that the user selects Yes (i.e. cancel/stop Sub Process when the No end is reached)?

Please ask if I wasn't clear about this.


Solution

  • With the boundary event attached to the sub process, there is no way of going to another task after should cancel. You can neither use link events (not allowed from parent to sub process), nor a simple sequence flow (not allowed between two processes).

    So I guess you need attach the message event to each relevant task within the sub process or you need to use two separate boundary events (one interrupting and one non-interrupting).