Hi Camunda Community,
Instead of having a gateway with N outgoing branches, I would like to delegate the work to subprocesses based on some input variable. For example, if my input_var="message_A"
, then the subprocess subscribing to message_A
is started, then, once it is finished, it goes back to the main process, passing some variables generated in the subprocess to the main process. See the screenshot below:
Doing the above doesn’t work as I have the following error:
The process could not be started. : Cannot instantiate process definition master:1:f75a21cf-0f9e-11ea-89b8-50eb7136ed6c: Error while evaluating expression: ${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(“message_A”).correlateWithResult()}. Cause: org.camunda.bpm.engine.MismatchingMessageCorrelationException: Cannot correlate message ‘message_A’: No process definition or execution matches the parameters
Any idea why it doesn’t work? It this even a good approach? Thanks a lot for your upcoming feedbacks.
my bpmn file:
master.bpmn (8.6 KB)