I have a main workflow which has a non-interrupting message boundary event that can be triggered at any moment. The flow handling the boundary event has a call activity, that calls a different process. What I want is for the main workflow to wait (i.e. be suspended or paused) until the boundary event handling is finished, and then to resume execution right where it stopped.
Maybe I look at it at the wrong angle, and it all should be modeled differently. Essentially, what I want is the following: to have a main workflow, and to have a secondary workflow that can be executed at any moment, with the main workflow being paused waiting for the secondary to complete, and then resuming its execution. It sounds like a very common case, but I haven't found a built-in way to implement it in Activiti or in BPMN in general.