cancel
Showing results for 
Search instead for 
Did you mean: 

Ending an execution abruptly inside script task or flow condition?

jindal8787
Champ in-the-making
Champ in-the-making
Hi Team

Like we can set some variables inside the current execution (execution.setvariables()), same way can we end the current execution abruptly inside any script task? or on any flow condition?? Suppose I take any action from a User task to the Script task, my script task ends the current execution and the current state of workflow remains on the previous user task itself?
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
what do you think , is it something similar to what you want to have?
https://forums.activiti.org/content/activityexecution-executionend-finish-process

jbarrez
Star Contributor
Star Contributor
You could throw a BpmnError and catch it with an error boundary event.