An example of the XML of an interrupting message boundary events is:
<bpmn2:boundaryEvent id="BoundaryEvent1" attachedToRef="UserTask2"> <bpmn2:outgoing>SequenceFlow5</bpmn2:outgoing> <bpmn2:messageEventDefinition messageRef="Message_15xakkk" /> </bpmn2:boundaryEvent>
An example of the XML of a non-interrupting message boundary events is:
<bpmn2:boundaryEvent id="BoundaryEvent3" cancelActivity="false" attachedToRef="SubProcess2"> <bpmn2:outgoing>SequenceFlow8</bpmn2:outgoing> <bpmn2:messageEventDefinition messageRef="Message_02satcd" /> </bpmn2:boundaryEvent>
The XML representation of a message is:
<bpmn2:message id="Message_02satcd" name="Message_02satcd" />
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>