Hello,
I have a sub process that sends a notification and simply waits on an catch event. At the same time we use a inclusive gateway to trigger a timer to resend the notification if timer times out. but the issue is after the event is fired and the sub process is terminated, the token never returns back to the main process.
I am using the call activity to start the subprocess.
My question is anything we did wrong? where does the token go?
Here is the model:
Thank you so much in advance.
Hi @jchen5580,
you have modeled and endless loop. And as long as this called process instance is active, the super process won’t continue.
What about replacing the parallel gateway with an event based gateway (https://docs.camunda.org/manual/7.12/reference/bpmn20/gateways/event-based-gateway/)?
Hope this helps, Ingo
Hi Ingo
thank you for your reply. To clarify, the reason we are using parallel gateway is to have two token generated upon completion of ‘Notify Maintenance’. If we were using an event gateway, per my understanding, only one event is allowed through the gateway.
Also, I am not sure if this is an endless model. the sub process will be terminated if the catch event is fired. The issue we are facing is even if the catch event is fired, as the sub process is terminated, or supposedly, the flow is not back to main process.
Thank you so much.
Jason
Hi @jchen5580,
How does the main process look like? I assume that you posted the subprocess.
Cheers, Ingo
Hi @Ingo_Richtsmeier,
You are correct - the model I posted is only the sub process.
Here is one of the main process task that leverages the exception handling.

By the way, I think we’ve found the solution: as we change the End Event to Terminate type, it solves the issue. It seems the Done event we used earlier will not terminate a sub process if the timer is ticking.
Thank you for your help.
Jason