Camunda 7 - What is the best way to exit from the process

Hi Team,

My query is how to gracefully come out of any process?

We have started the process(parent) and its at activity which is call activity. Call activity is calling another process(child). Now we are not sure where its currently executing/waiting/stuck.

But due to some requirement we need to come out of child activity gracefully. That is in other way we want to jump to end activity and come out of it without any error and continue on parent flow.

What is the best to achieve this using BPMN elements/camunda runtime APIS?

Thanks,
Pradip Patil

Hi @Pradip_Patil,

An interrupting message boundary event can fulfill your requirements. The snippet below illustrates how it works:

3 Likes

Please note that Hassang’s solution does not cause the interruption of functions that are currently active - ie. if you have a long running DB query that is happening when the interrupting message arrives, the process will move on, but the DB query will not be interrupted. When it completes, there is no next step to move to, and the overall process ends.

2 Likes

Hi,

Its working as you explained.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.