cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel Tasks in the process

sudhir1
Champ in-the-making
Champ in-the-making
Hello,

I have a very simple requirement for parallel tasks in the Process.

Example : 1. User submits a leave request.
2. Two parallel task should be created.
a) one task created for approver for approval.
b) Another task created for user to cancel the request, if required.

3. If any 2a or 2b gets competed. Process should end.

I am trying to figure out how to do it. I tried with 'parallelGateway' but that couldn't help as parallelGateway waits for completion of all tasks join the next level.

Any suggestions.

Thanks,
Sudhir
4 REPLIES 4

sudhir1
Champ in-the-making
Champ in-the-making
Hello,

I have a very simple requirement for parallel tasks in the Process.

Example : 1. User submits a leave request.
2. Two parallel task should be created.
a) one task created for approver for approval.
b) Another task created for user to cancel the request, if required.

3. If any 2a or 2b gets competed. Process should end.

I am trying to figure out how to do it. I tried with 'parallelGateway' but that couldn't help as parallelGateway waits for completion of all tasks join the next level.

Any suggestions.

Thanks,
Sudhir

Anyone there to provide suggestions/support.

Sudhir

jbarrez
Star Contributor
Star Contributor
You would some gateway type that we dont support yet. You can always implement this logic yourself using a service task.
(you could also misuse boundary events and throw an event when leaving the tasks, but thats definitely not a good practice)

sudhir1
Champ in-the-making
Champ in-the-making
Should I raise a JIRA for this feature.

jbarrez
Star Contributor
Star Contributor
The problem is that it probably wont be fixable by using the gateway, because you also want to delete one of the tasks when one of them completed.

One solution could be to have an exclusive joining gateway, followed by a service task which deletes the remaining task.