An example of the XML of a message end event is:
<bpmn2:endEvent id="EndEvent_1"> <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming> <bpmn2:messageEventDefinition messageRef="Message_45sdihj" /> </bpmn2:endEvent>
An example of the XML of a message is:
<bpmn2:message id="Message_15xakkk" name="Message_15xakkk" />
An example of the XML of a message payload is:
"mappings": { "EndEvent_0ss2fp3": { "inputs": { "name": { "type": "variable", "value": "username" }, "order-number": { "type": "value", "value": 1459283 } } } },
An example of the XML of a message with a correlation key is:
<bpmn2:endEvent id="EndEvent_1"> <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming> <bpmn2:messageEventDefinition messageRef="Message_1hxecs2" activiti:correlationKey="${userId}" />
In this example the message will only be caught if a catching event has a messageRef of Message_1hxecs2 and an activiti:correlationKey that matches the value of userId.
An example of the XML of a message flow is:
<bpmn2:collaboration id="Collaboration_0kgbwi1"> <bpmn2:participant id="Participant_1i6u1my" processRef="Process_1d9yxsm" /> <bpmn2:participant id="Participant_10umhbc" processRef="Process_1piiyp4" /> <bpmn2:messageFlow id="MessageFlow_0vh4zdb" sourceRef="Event_00acemq" targetRef="Event_13u5jtf" /> </bpmn2:collaboration>