Main process is blocked by sub-process

Hi, I have observed that main process is blocked until the sub-process has finished its own execution. The sub-process is started on conditional start event but non-interrupting one. I hope I will achieve the parallel execution on this way in my application but it seams that it is not true. Is there any other option to fulfill parallel execution in process?

Hello @Dragan ,

instead of using sub-processes, you could use messages to let processes collaborate. This will allow each process to work in parallel. Downside, each interaction between the processes has to be modelled explicitely.

Hope this helps

Jonathan

Hi @jonathan.lukas, thank you a lot for answer. As far as I understand, I should define another process instead of sub-process and start new process on message event. In that case I will achieve parallel processing?

Hi @Dragan

If you use event subprocess which is being started by non interrupting start event, then both main process and subprocess should be executed in parallel.
can you share the bpmn model ?

call_sub_process.bpmn (5.9 KB) Hi @mrdavoodi64 , this is the simplified model. When user completes task 1, the service task starts execution and set process variable: sendNotificationEvent==‘SEND_EVENT’. It triggers sub-process which starts immediately but the process will not lend on task 2 until the sub-process finished its processing. I have expected opposite behavior i.e. I thought that process will stop on task 2 when process variable has been set (sendNotificationEvent==‘SEND_EVENT’) and the sub-process will continue in parallel with main process.

I have made some changes to model till I can test and deploy the model.

The main process continues its execution and dosn’t wait for the subprocess to be completed.

call_sub_process.bpmn (6.8 KB)

Hi @mrdavoodi64 , yes you are right. Thanks a lot. I have checked it out on this process diagram and everything works as expected. It seems that I have made wrong conclusion trying to figure out what was the problem in my problematic process.

1 Like