cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Sequence Flow evaluate to false delete the process instance

hrobayo
Champ in-the-making
Champ in-the-making
If possible to change the behavior of the activiti engine to throw a BPMError or simple don´t follow the sequence instead of delete the entire process instance.

The alternative to this add a exclusive gateway, please some guide of this.
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I do not know what is your requirement and what do you expect.
If possible to change the behavior of the activiti engine
For sequence flow -> yes, you have to change behavior added to the activity during process definition parsing

Regards
Martin

Thank you, for your answer

For instance, when a sequence flow with a condition (${order == 2}) connect two user tasks without an exclusive gateway, and… when the condition is evaluated to false the entire process instance is delete from the workflow engine, the reason for deletion is the string "complete".

It is possible to throw an exception or doesn't allow to pass to the next task instead of delete the process instance from the runtime .

Regards,

Camilo (hrobayo)

jbarrez
Star Contributor
Star Contributor
What actually happens is that, when an exception occurs, the process instance is rolled back to the previous stable state.