cancel
Showing results for 
Search instead for 
Did you mean: 

Process instances got stuck at the parallel gateway

rishiraj_kalla
Champ in-the-making
Champ in-the-making
Hi,

I am working on an application where BPM engine is developed using Activiti 5.13. There is one main process xml which conditionally invokes 4 different caller activities(sub processes) in parallel and all the 4 sub processes are routed to join using a parallel gateway. We noticed that there were many instances which have all the tasks completed (No active task in ACT_RU_TASK table for the given process instance id) however the ACT_RU_EXECUTION table indicate that the instance is stuck at the parallel gateway (No End time for parallel gateway step in ACT_HI_ACTINST while all other steps have and ) and has not ended, we have changed the parallel gateway to inclusive gateway but now just wondering is there any way through APIs to move forward those stuck instances at parallel gateway. Due to this issue some of the reporting stats like completed instances are shown incorrectly. Since I have joined team recently I do not have any log or exception trace for it.

I tried to reproduce this by creating a similar template but without any forms and fields in it but was unable to reproduce the scenario.

If anybody is aware please let me know if there is any such API or steps to be taken to move ahead such stuck instances. Once these parallel gateway completes the process will end as there is no further step after it.

With Thanks and Regards,
Rishi

11 REPLIES 11

Hi Frederik,

Thanks for your reply, due to organization policy I may not be able to share the entire bpmn process.

I am working on creating a test case which can reproduce the similar issue and will post the BPMN process xml for that soon.

However still I have a doubt that even due to process design if this issue has occurred, is there any way through API to resume such instances?

I think this might be difficult to answer without process xml and test case, but any pointers towards that will be of great help.

With Thanks and Regards,
Rishi

trademak
Star Contributor
Star Contributor
Hi Rishi,

This really depends on the process definition. Every incoming sequence flow of a parallel gateway must be completed before the parallel gateway will continue. So if you have a way to trigger any remaining sequence flow to complete this should be possible.

Best regards,