Don't know about BPMN2 but i know that in drools flow there is a attribute 'independent' as part of a subprocess node which should be set to false in order to cancel the sub-process on termination of the parent .
As Joao mentioned, independent parameter controls sub process cancellation and it is set by default to true meaning that it will not be aborted when parent process is canceled.
You can control this parameter for reusable processes (those executed by call activity) but not for embedded sub processes. You can set independent attribute on call activity.
In my opinion embedded sub processes should always be bound to the parent process life cycle.
Can you let me know the API or steps that i need to Abort / Terminate an Active ProcessInstance in jbpm 5.2.
Please share me the sample code if possible. Thanks
Thanks Joao and Maciej. That made my day.
I was troubleshooting that issue, and changing the flag immediately fixed my problem where parent process is now calling abort on child dependent work item handlers which were waiting.