cancel
Showing results for 
Search instead for 
Did you mean: 

Kill Parallel Gateway destination flow execution

igorbelo
Champ in-the-making
Champ in-the-making
Hello Activiti Community,

I want to know: can i "kill" a flow execution that starts from a parallel gateway if any other flow from this ends his execution?

Like…
<blockcode>
start -> parallel gateway {flow1, flow2}
flow1 = some tasks -> end (KILL flow2 execution)
flow2 = some tasks -> end (KILL flow1 execution)
</blockcode>

Also, a solution would be stop the subprocess execution, is it possible?

Thanks,
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Could you elaborate a bit more about the functionality you are looking for?

Thanks,

ssun
Champ on-the-rise
Champ on-the-rise
Hi, I do not know about igorbelo's use case. But I have something similar. And I'm hoping to find a solution without writing code. Forgive me for repeat myself from another post:

A task need to be done in 1 day. I have a timer boundary event set to a day. The boundary event is not blocking so user can still work on the task after a day. But when the time is up, I will start to send email to the user that need to work on the task every hour to remind them. That is simply an email task and then goes to a Timer Intermediate Catching Event and then comes back.

What I need to do is stop sending these emails after the user finished the task.

igorbelo
Champ in-the-making
Champ in-the-making
Thanks trademak.
As i replied in ssun's post, i solved this problem attaching a TimerBoundaryEvent to my subprocess.

I just wanted to alert when a subprocess of the process was taken longer than it should.
This alert is executed only once, it's lightly different of ssun's problem, i think he wants to execute it everytime.