cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel gateway executes mores executions then it should

stepankveton
Champ in-the-making
Champ in-the-making
Hi,
we use parallel gateway to split a process into two parallel executions and then join them like this:
[img]http://unknown.cz/actis/parGWProblem.jpg[/img]
We implemented our own BpmnParseListener and added a start and end listeners to all activities.
These listeners log all events like this:
Activity start: vyhodnoceniTemplate (execId=102533; procId=102533; type=serviceTask)
Problem is that with above scenario the parallelGateway1 executes three executions:
Activity start: parallelgateway1 (execId=102533; procId=102533; type=parallelGateway)
Activity end: parallelgateway1 (execId=102554)
..execution of other tasks..
Activity end: parallelgateway1 (execId=102555)
..execution of other tasks..
Activity end: parallelgateway1 (execId=102556)
Activity start: exclusivegateway27 (execId=102556; procId=102533; type=exclusiveGateway)
Strange thing is that the third execution jumps immediately to exclusivegateway27 which the one after callActivity1.
This problem started to occur “just like that”. Without us changing a single line of code.
We use Activiti engine 5.8 and all processes are created in designer 5.8.

Is there any other info you need me to provide?
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi,

It's very difficult to respond to this without the full process definition.
But what I see from the attached images is that you only have one incoming sequence flow in the 2nd parallel gateway. Then that gateway just executes, because only one sequence flow is incoming.

Best regards,

stepankveton
Champ in-the-making
Champ in-the-making
The second parallel gateway has two incoming sequence flows but the other one is hidden behind the red line. I'll try to provide you with the whole process definition.

stepankveton
Champ in-the-making
Champ in-the-making
The issue disappeared after restarting the whole server. Do you still need me to provide the whole process definition? Because it seems to me that it wasn't problem of that process.