cancel
Showing results for 
Search instead for 
Did you mean: 

BPMN Token seems to get lost using ParallelGateway and Lanes

empulse_guse
Champ in-the-making
Champ in-the-making
Hi Forum,

I'm quite new to Activiti, so please forgive me stupid and many times asked questions.

used Activiti version: 5.15.1
used Java version: 1.7

Currently I'm trying to implement my very first own workflow and have some problems in getting it running.
The workflow is not too complicated, a MainOption is required by a member of the Sales team, Management and Engineering team must approve the MainOption in parallel and after that the MainOption must be approved by the Marketing team until it is created. You can find the .bpmn file in the attachment.

The process can be started without any problem in Activiti Explorer and in a JUnit testcase. The task is correctly assigned to the initiator. But after the initiator finished his task the task is gone - expected is the task is split and assigned to the Management and Engineering group.
This behavior is consistent in Activiti Explorer and the JUnit testcase.

I had an intense look at the running examples delivered by Activiti and the only difference I could find was I use a Pool and several Lanes which are missing in the examples.

Any ideas?
Christoph
4 REPLIES 4

sathish1
Champ in-the-making
Champ in-the-making
Can u provide some more information on when you say, task is gone, am assuming the process is still running and a new task is assigned after the first step is completed, Take a look at the ACT_RU_EXECUTION table and see if the process you created is active, if so, am thinking it is still working as desired as all the tasks you have in the file is a user task and it will be completed and a new task will be assigned for the next step of the process. Cheers.

Hi,

in the Activiti-Explorer as kermit user I can see the started task in Processes -> My Processes including the given values.

For me it seems the assignment is not done, I can't find a task in the Management or Engineering queue - tested in Activiti-Explorer and in JUnit test.

In the meantime I created a new process without the parallel gateway, this process works as expected.

I suppose this is a very stupid issue but I can't find it..

Regards,
Christoph

trademak
Star Contributor
Star Contributor
Hi Christoph,

The problem is the first parallel gateway. It has two incoming sequence flows, which means it will wait indefinitely before these two sequence flows are both ended. You should not return to a parallel gateway from the "Mainoption edit" task but go to a, for example, manual task before the parallel gateway.

Best regards,

Hi Tijs,

thanks a lot! Removing the second flow into the parallel gateway removed the deadlock.

I had to redesign the process using a subprocess and error events and now the process seems to work like expected.

Thanks again!
Christoph