cancel
Showing results for 
Search instead for 
Did you mean: 

What about Terminate End event as applied to Sub-Process?

vladimirpanov
Champ in-the-making
Champ in-the-making
There is Terminate End event feature in the Activiti Explorer.
But it's absent in the user guide.

In my experiments it works but if raised in the Sub-Process all its parent execution tree is killed.
This behavior conflicts with the BPMN2 specification:
"For a “terminate” End Event, the Sub-Process is abnormally terminated. In case of a multi-instance Sub-Process, only the affected instance is terminated—no other ongoing Sub-Process instances or higher-level Sub-Process or Process instances are affected. "

3 REPLIES 3

vladimirpanov
Champ in-the-making
Champ in-the-making
To be more precise: "embedded" sub-process is terminated correctly.
But termination of called "external" sub-process kills its parent and recursively its grand-parent etc.

vasile_dirla
Star Contributor
Star Contributor
Hi,
could you provide a unit test to show this behaviour? (it's very useful to have such a unit test when investigating the issue)
https://forums.activiti.org/content/sticky-how-write-unit-test

jbarrez
Star Contributor
Star Contributor
Actually, we're currently working on the terminate end event to make it consistent (and spec compliant) for all cases. Expect a commit in a few days around this.