cancel
Showing results for 
Search instead for 
Did you mean: 

parallel tasks OR

aurelienpel
Champ in-the-making
Champ in-the-making
Hello,

I have a problem creating a workflow with 2 parallel tasks. As you can see attached, I would like that only team 3 OR team 5 goes to team 6, and the other one can't. I used an exclusive gateway to do it, with the outgoing sequence flow condition : ${team3=="team6" or team5=="ToTeam6"}, but when I deploy it, I have an error : "Exclusive gateway has only one outgoing sequence flow. This is not allowed to have a condition" .
But I really don't know where to give my condition. Because I suppose that if I give a condition to the 2 ingoing sequence flow of the gateway, the 2 tasks will be able to go to team6.

Thanks a lot for your help !

Aurelien
5 REPLIES 5

aurelienpel
Champ in-the-making
Champ in-the-making
I tried also with an inclusive gateway, but it will wait for all incoming flows before going to team6 ..

Thanks for your help !

Aurelien

aurelienpel
Champ in-the-making
Champ in-the-making
and also I tried with an exclusive GT, but when the first task   goes to team6, the other task can also later, and this is exactly what I don't want, I want that the second task is blocked to its position..

Thanks for your help !

Aurelien

jbarrez
Star Contributor
Star Contributor
How different is the first branch from the second? Is it just the assignment?

If so, you could go for an embedded subprocess with parallel multi instance that has the two tasks, and a completion condition that destroys everything when one is done.

Another way to implement what you want is to add signal boundary events to both paths (and group them with an embedded subprocess). When one of the two paths complete, they send a process instance - scoped signal to the other one, destroying it.

aurelienpel
Champ in-the-making
Champ in-the-making
The 2 branches are different by the entities doing each task, the number of task, etc ..
Will you have an example of both case please, because I don't really understand how to do it please..

In your first case, where do you give your completion condition to destroy the other one ?
In your second case, how do you say to your other branch to be destroyed ?

Thanks

Aurelien

jbarrez
Star Contributor
Star Contributor
I think you are almost there (but only if the signal throw is caught on the boundary 'on the other side')

Isn't it working? If not, can you provide me with a small unit test, so I can understand what it is you are trying to accomplish here?