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?
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.