The following code shows the XML serialization of the process:
<?xml version="1.0" encoding="UTF-8"?> <bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn"> <bpmn:collaboration id="Collaboration_0l8b8vo"> <bpmn:participant id="Participant_1i4gbwg" processRef="Process_1" /> </bpmn:collaboration> <bpmn:process id="Process_1" isExecutable="false"> <bpmn:laneSet id="LaneSet_0veobhs"> <bpmn:lane id="Lane_0imk3dv" /> <bpmn:lane id="Lane_0fv2zcp"> <bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef> <bpmn:flowNodeRef>Activity_0q05wng</bpmn:flowNodeRef> </bpmn:lane> <bpmn:lane id="Lane_0v2ny7j"> <bpmn:flowNodeRef>Activity_1vxbygg</bpmn:flowNodeRef> <bpmn:flowNodeRef>Gateway_1quuj3p</bpmn:flowNodeRef> <bpmn:flowNodeRef>Activity_10z81jn</bpmn:flowNodeRef> <bpmn:flowNodeRef>Activity_1hd18x6</bpmn:flowNodeRef> <bpmn:flowNodeRef>Activity_18vzgnw</bpmn:flowNodeRef> </bpmn:lane> </bpmn:laneSet> <bpmn:startEvent id="StartEvent_1"> <bpmn:outgoing>Flow_0m1ce0y</bpmn:outgoing> </bpmn:startEvent> <bpmn:task id="Activity_0q05wng"> <bpmn:incoming>Flow_0m1ce0y</bpmn:incoming> <bpmn:outgoing>Flow_0ovdp27</bpmn:outgoing> </bpmn:task> <bpmn:sequenceFlow id="Flow_0m1ce0y" sourceRef="StartEvent_1" targetRef="Activity_0q05wng" /> <bpmn:task id="Activity_1vxbygg"> <bpmn:incoming>Flow_0ovdp27</bpmn:incoming> <bpmn:outgoing>Flow_1i3u2fx</bpmn:outgoing> </bpmn:task> <bpmn:sequenceFlow id="Flow_0ovdp27" sourceRef="Activity_0q05wng" targetRef="Activity_1vxbygg" /> <bpmn:exclusiveGateway id="Gateway_1quuj3p"> <bpmn:incoming>Flow_1i3u2fx</bpmn:incoming> <bpmn:outgoing>Flow_109t5qu</bpmn:outgoing> <bpmn:outgoing>Flow_14e837i</bpmn:outgoing> </bpmn:exclusiveGateway> <bpmn:sequenceFlow id="Flow_1i3u2fx" sourceRef="Activity_1vxbygg" targetRef="Gateway_1quuj3p" /> <bpmn:task id="Activity_10z81jn"> <bpmn:incoming>Flow_109t5qu</bpmn:incoming> </bpmn:task> <bpmn:sequenceFlow id="Flow_109t5qu" sourceRef="Gateway_1quuj3p" targetRef="Activity_10z81jn" /> <bpmn:task id="Activity_1hd18x6"> <bpmn:incoming>Flow_14e837i</bpmn:incoming> <bpmn:outgoing>Flow_13beirl</bpmn:outgoing> </bpmn:task> <bpmn:sequenceFlow id="Flow_14e837i" sourceRef="Gateway_1quuj3p" targetRef="Activity_1hd18x6" /> <bpmn:task id="Activity_18vzgnw"> <bpmn:incoming>Flow_13beirl</bpmn:incoming> </bpmn:task> <bpmn:sequenceFlow id="Flow_13beirl" sourceRef="Activity_1hd18x6" targetRef="Activity_18vzgnw" /> </bpmn:process> <bpmndi:BPMNDiagram id="BPMNDiagram_1"> <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0l8b8vo"> <bpmndi:BPMNShape id="Participant_1i4gbwg_di" bpmnElement="Participant_1i4gbwg" isHorizontal="true"> <dc:Bounds x="115" y="-78" width="1180" height="608" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Lane_0imk3dv_di" bpmnElement="Lane_0imk3dv" isHorizontal="true"> <dc:Bounds x="145" y="-78" width="1150" height="178" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Lane_0fv2zcp_di" bpmnElement="Lane_0fv2zcp" isHorizontal="true"> <dc:Bounds x="145" y="100" width="1150" height="210" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Lane_0v2ny7j_di" bpmnElement="Lane_0v2ny7j" isHorizontal="true"> <dc:Bounds x="145" y="310" width="1150" height="220" /> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="Flow_0m1ce0y_di" bpmnElement="Flow_0m1ce0y"> <di:waypoint x="228" y="200" /> <di:waypoint x="300" y="200" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="Flow_0ovdp27_di" bpmnElement="Flow_0ovdp27"> <di:waypoint x="350" y="240" /> <di:waypoint x="350" y="340" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="Flow_1i3u2fx_di" bpmnElement="Flow_1i3u2fx"> <di:waypoint x="400" y="380" /> <di:waypoint x="425" y="380" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="Flow_109t5qu_di" bpmnElement="Flow_109t5qu"> <di:waypoint x="475" y="380" /> <di:waypoint x="500" y="380" /> <di:waypoint x="500" y="360" /> <di:waypoint x="530" y="360" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="Flow_14e837i_di" bpmnElement="Flow_14e837i"> <di:waypoint x="450" y="405" /> <di:waypoint x="450" y="470" /> <di:waypoint x="530" y="470" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="Flow_13beirl_di" bpmnElement="Flow_13beirl"> <di:waypoint x="630" y="470" /> <di:waypoint x="690" y="470" /> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> <dc:Bounds x="192" y="182" width="36" height="36" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Activity_0q05wng_di" bpmnElement="Activity_0q05wng"> <dc:Bounds x="300" y="160" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Activity_1vxbygg_di" bpmnElement="Activity_1vxbygg"> <dc:Bounds x="300" y="340" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Gateway_1quuj3p_di" bpmnElement="Gateway_1quuj3p" isMarkerVisible="true"> <dc:Bounds x="425" y="355" width="50" height="50" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Activity_10z81jn_di" bpmnElement="Activity_10z81jn"> <dc:Bounds x="530" y="320" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Activity_1hd18x6_di" bpmnElement="Activity_1hd18x6"> <dc:Bounds x="530" y="430" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="Activity_18vzgnw_di" bpmnElement="Activity_18vzgnw"> <dc:Bounds x="690" y="430" width="100" height="80" /> </bpmndi:BPMNShape> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </bpmn:definitions>