Processing a message in a workflow
To receive the BPMN Message Events in the workflow, you have to use a MessageCatchingEvent.
You can add the message event to the workflow:
Additionally, the name of the message event and the process instance ID of the workflow have to be sent to the gateway using the delegate.
The "messageEventName1" corresponds to the configuration of MessageCatchingEvent.