11/7: merge casablanca to master
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / WorkflowActionBB.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0">
3   <bpmn:process id="WorkflowActionBB" name="WorkflowActionBB" isExecutable="true">
4     <bpmn:startEvent id="Start_WorkflowActionBB" name="start">
5       <bpmn:outgoing>SequenceFlow_15s0okp</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:endEvent id="End_WorkflowActionBB" name="end">
8       <bpmn:incoming>SequenceFlow_1rscv7d</bpmn:incoming>
9       <bpmn:incoming>SequenceFlow_0x4urgp</bpmn:incoming>
10     </bpmn:endEvent>
11     <bpmn:sequenceFlow id="SequenceFlow_15s0okp" sourceRef="Start_WorkflowActionBB" targetRef="Task_RetrieveBBExectuionList" />
12     <bpmn:callActivity id="Call_ExecuteBB" name="Execute BB" camunda:asyncBefore="true" calledElement="ExecuteBuildingBlock">
13       <bpmn:extensionElements>
14         <camunda:in source="buildingBlock" target="buildingBlock" />
15         <camunda:out source="buildingBlock" target="buildingBlock" />
16         <camunda:out source="handlingCode" target="handlingCode" />
17         <camunda:in source="mso-request-id" target="mso-request-id" />
18         <camunda:in source="retryCount" target="retryCount" />
19         <camunda:out source="WorkflowExceptionErrorMessage" target="WorkflowExceptionErrorMessage" />
20         <camunda:in source="aLaCarte" target="aLaCarte" />
21         <camunda:in source="orchestrationStatusValidationResult" target="orchestrationStatusValidationResult" />
22         <camunda:out source="orchestrationStatusValidationResult" target="orchestrationStatusValidationResult" />
23       </bpmn:extensionElements>
24       <bpmn:incoming>SequenceFlow_0mew9im</bpmn:incoming>
25       <bpmn:outgoing>SequenceFlow_07h9d4y</bpmn:outgoing>
26     </bpmn:callActivity>
27     <bpmn:sequenceFlow id="SequenceFlow_0mqrkxv" sourceRef="Task_SelectBB" targetRef="ServiceTask_0e2p0xs" />
28     <bpmn:serviceTask id="Task_SelectBB" name="Select BB" camunda:expression="${WorkflowActionBBTasks.selectBB(execution)}">
29       <bpmn:incoming>SequenceFlow_1atzsgn</bpmn:incoming>
30       <bpmn:incoming>SequenceFlow_1wb59ic</bpmn:incoming>
31       <bpmn:incoming>SequenceFlow_005hi8o</bpmn:incoming>
32       <bpmn:incoming>SequenceFlow_0unbew4</bpmn:incoming>
33       <bpmn:outgoing>SequenceFlow_0mqrkxv</bpmn:outgoing>
34     </bpmn:serviceTask>
35     <bpmn:exclusiveGateway id="ExclusiveGateway_Finished" default="SequenceFlow_01j184u">
36       <bpmn:incoming>SequenceFlow_07h9d4y</bpmn:incoming>
37       <bpmn:outgoing>SequenceFlow_1m2eezj</bpmn:outgoing>
38       <bpmn:outgoing>SequenceFlow_0v588sm</bpmn:outgoing>
39       <bpmn:outgoing>SequenceFlow_11530ei</bpmn:outgoing>
40       <bpmn:outgoing>SequenceFlow_01j184u</bpmn:outgoing>
41       <bpmn:outgoing>SequenceFlow_0l7kaba</bpmn:outgoing>
42     </bpmn:exclusiveGateway>
43     <bpmn:sequenceFlow id="SequenceFlow_07h9d4y" sourceRef="Call_ExecuteBB" targetRef="ExclusiveGateway_Finished" />
44     <bpmn:sequenceFlow id="SequenceFlow_1m2eezj" name="Completed = true" sourceRef="ExclusiveGateway_Finished" targetRef="ExclusiveGateway_isTopLevelFlowC">
45       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("completed")==true&&execution.getVariable("isRollback")==false}]]></bpmn:conditionExpression>
46     </bpmn:sequenceFlow>
47     <bpmn:serviceTask id="Task_RetrieveBBExectuionList" name="Retrieve BB Execution List" camunda:expression="${WorkflowAction.selectExecutionList(execution)}">
48       <bpmn:incoming>SequenceFlow_15s0okp</bpmn:incoming>
49       <bpmn:outgoing>SequenceFlow_0vc9go9</bpmn:outgoing>
50     </bpmn:serviceTask>
51     <bpmn:serviceTask id="Task_SendSync" name="Send Sync Ack API Handler" camunda:asyncAfter="true" camunda:expression="${WorkflowActionBBTasks.sendSyncAck(execution)}">
52       <bpmn:incoming>SequenceFlow_0sckerv</bpmn:incoming>
53       <bpmn:outgoing>SequenceFlow_1wb59ic</bpmn:outgoing>
54     </bpmn:serviceTask>
55     <bpmn:serviceTask id="Task_SetupCompleteMsoProcess" name="Setup Complete MSO Process" camunda:expression="${WorkflowActionBBTasks.setupCompleteMsoProcess(execution)}">
56       <bpmn:incoming>SequenceFlow_0kf5sen</bpmn:incoming>
57       <bpmn:outgoing>SequenceFlow_1pz6edz</bpmn:outgoing>
58     </bpmn:serviceTask>
59     <bpmn:callActivity id="Call_CompleteMsoProcess" name="Call CompleteMsoProcess" calledElement="CompleteMsoProcess">
60       <bpmn:extensionElements>
61         <camunda:in source="CompleteMsoProcessRequest" target="CompleteMsoProcessRequest" />
62         <camunda:in source="mso-request-id" target="mso-request-id" />
63         <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
64         <camunda:out source="CMSO_ResponseCode" target="CMSO_ResponseCode" />
65         <camunda:out source="CompleteMsoProcessResponse" target="CompleteMsoProcessResponse" />
66         <camunda:out source="CMSO_ErrorResponse" target="CMSO_ErrorResponse" />
67       </bpmn:extensionElements>
68       <bpmn:incoming>SequenceFlow_1pz6edz</bpmn:incoming>
69       <bpmn:outgoing>SequenceFlow_1rscv7d</bpmn:outgoing>
70     </bpmn:callActivity>
71     <bpmn:sequenceFlow id="SequenceFlow_1pz6edz" sourceRef="Task_SetupCompleteMsoProcess" targetRef="Call_CompleteMsoProcess" />
72     <bpmn:sequenceFlow id="SequenceFlow_1rscv7d" sourceRef="Call_CompleteMsoProcess" targetRef="End_WorkflowActionBB" />
73     <bpmn:subProcess id="SubProcess_18226x4" name="Error Handling" triggeredByEvent="true">
74       <bpmn:startEvent id="ErrorStart" name="error">
75         <bpmn:outgoing>SequenceFlow_1edjl5x</bpmn:outgoing>
76         <bpmn:errorEventDefinition />
77       </bpmn:startEvent>
78       <bpmn:endEvent id="ErrorEnd" name="end">
79         <bpmn:incoming>SequenceFlow_0wvzfgf</bpmn:incoming>
80       </bpmn:endEvent>
81       <bpmn:serviceTask id="Task_UpdateDb" name="Update Request To Failed" camunda:expression="${WorkflowActionBBTasks.updateRequestStatusToFailed(execution)}">
82         <bpmn:incoming>SequenceFlow_024g0d1</bpmn:incoming>
83         <bpmn:incoming>SequenceFlow_0eana0l</bpmn:incoming>
84         <bpmn:outgoing>SequenceFlow_0wvzfgf</bpmn:outgoing>
85       </bpmn:serviceTask>
86       <bpmn:sequenceFlow id="SequenceFlow_1edjl5x" sourceRef="ErrorStart" targetRef="ExclusiveGateway_10q79b6" />
87       <bpmn:sequenceFlow id="SequenceFlow_0wvzfgf" sourceRef="Task_UpdateDb" targetRef="ErrorEnd" />
88       <bpmn:exclusiveGateway id="ExclusiveGateway_10q79b6" name="Is Top-Level Flow and Sync Ack not sent?" default="SequenceFlow_024g0d1">
89         <bpmn:incoming>SequenceFlow_1edjl5x</bpmn:incoming>
90         <bpmn:outgoing>SequenceFlow_024g0d1</bpmn:outgoing>
91         <bpmn:outgoing>SequenceFlow_0vi883o</bpmn:outgoing>
92       </bpmn:exclusiveGateway>
93       <bpmn:sequenceFlow id="SequenceFlow_024g0d1" name="no" sourceRef="ExclusiveGateway_10q79b6" targetRef="Task_UpdateDb" />
94       <bpmn:sequenceFlow id="SequenceFlow_0vi883o" name="yes" sourceRef="ExclusiveGateway_10q79b6" targetRef="Task_SendSyncAckError">
95         <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("isTopLevelFlow")==true&&execution.getVariable("sentSyncResponse")==false}]]></bpmn:conditionExpression>
96       </bpmn:sequenceFlow>
97       <bpmn:sequenceFlow id="SequenceFlow_0eana0l" sourceRef="Task_SendSyncAckError" targetRef="Task_UpdateDb" />
98       <bpmn:serviceTask id="Task_SendSyncAckError" name="Send Sync Ack API Handler" camunda:asyncAfter="true" camunda:expression="${WorkflowActionBBTasks.sendSyncAck(execution)}">
99         <bpmn:incoming>SequenceFlow_0vi883o</bpmn:incoming>
100         <bpmn:outgoing>SequenceFlow_0eana0l</bpmn:outgoing>
101       </bpmn:serviceTask>
102     </bpmn:subProcess>
103     <bpmn:sequenceFlow id="SequenceFlow_0v588sm" name="Rollback = true" sourceRef="ExclusiveGateway_Finished" targetRef="Task_RollbackExecutionPath">
104       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("handlingCode")=="Rollback"||execution.getVariable("handlingCode")=="RollbackToAssigned"}]]></bpmn:conditionExpression>
105     </bpmn:sequenceFlow>
106     <bpmn:sequenceFlow id="SequenceFlow_1atzsgn" sourceRef="Task_RollbackExecutionPath" targetRef="Task_SelectBB">
107       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("isRollbackNeeded")==true}]]></bpmn:conditionExpression>
108     </bpmn:sequenceFlow>
109     <bpmn:serviceTask id="Task_RollbackExecutionPath" name="Rollback Execution Path" camunda:expression="${WorkflowActionBBTasks.rollbackExecutionPath(execution)}">
110       <bpmn:incoming>SequenceFlow_0v588sm</bpmn:incoming>
111       <bpmn:outgoing>SequenceFlow_1atzsgn</bpmn:outgoing>
112       <bpmn:outgoing>SequenceFlow_11dlyzt</bpmn:outgoing>
113     </bpmn:serviceTask>
114     <bpmn:sequenceFlow id="SequenceFlow_0vc9go9" sourceRef="Task_RetrieveBBExectuionList" targetRef="ExclusiveGateway_isTopLevelFlow" />
115     <bpmn:sequenceFlow id="SequenceFlow_11530ei" name="Abort = true" sourceRef="ExclusiveGateway_Finished" targetRef="ExclusiveGateway_isTopLevelFlowAbort">
116       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("handlingCode")=="Abort"}]]></bpmn:conditionExpression>
117     </bpmn:sequenceFlow>
118     <bpmn:serviceTask id="Task_AbortAndCallErrorHandling" name="Update Request To Failed" camunda:expression="${WorkflowActionBBTasks.updateRequestStatusToFailed(execution)}">
119       <bpmn:incoming>SequenceFlow_02ksbt0</bpmn:incoming>
120       <bpmn:outgoing>SequenceFlow_1p8yxu6</bpmn:outgoing>
121     </bpmn:serviceTask>
122     <bpmn:endEvent id="EndEvent_0lzz1ya" name="end">
123       <bpmn:incoming>SequenceFlow_1p8yxu6</bpmn:incoming>
124       <bpmn:incoming>SequenceFlow_1r570x3</bpmn:incoming>
125     </bpmn:endEvent>
126     <bpmn:sequenceFlow id="SequenceFlow_1p8yxu6" sourceRef="Task_AbortAndCallErrorHandling" targetRef="EndEvent_0lzz1ya" />
127     <bpmn:sequenceFlow id="SequenceFlow_1wb59ic" sourceRef="Task_SendSync" targetRef="Task_SelectBB" />
128     <bpmn:sequenceFlow id="SequenceFlow_01j184u" sourceRef="ExclusiveGateway_Finished" targetRef="Task_0a31dkf" />
129     <bpmn:sequenceFlow id="SequenceFlow_005hi8o" sourceRef="Task_0a31dkf" targetRef="Task_SelectBB" />
130     <bpmn:serviceTask id="Task_0a31dkf" name="Check Retry Status" camunda:expression="${WorkflowActionBBTasks.checkRetryStatus(execution)}">
131       <bpmn:incoming>SequenceFlow_01j184u</bpmn:incoming>
132       <bpmn:outgoing>SequenceFlow_005hi8o</bpmn:outgoing>
133     </bpmn:serviceTask>
134     <bpmn:exclusiveGateway id="ExclusiveGateway_isTopLevelFlow" name="Is Top-Level Flow?" default="SequenceFlow_0sckerv">
135       <bpmn:incoming>SequenceFlow_0vc9go9</bpmn:incoming>
136       <bpmn:outgoing>SequenceFlow_0sckerv</bpmn:outgoing>
137       <bpmn:outgoing>SequenceFlow_0unbew4</bpmn:outgoing>
138     </bpmn:exclusiveGateway>
139     <bpmn:sequenceFlow id="SequenceFlow_0sckerv" name="yes" sourceRef="ExclusiveGateway_isTopLevelFlow" targetRef="Task_SendSync" />
140     <bpmn:sequenceFlow id="SequenceFlow_0unbew4" name="no" sourceRef="ExclusiveGateway_isTopLevelFlow" targetRef="Task_SelectBB">
141       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("isTopLevelFlow")==false}]]></bpmn:conditionExpression>
142     </bpmn:sequenceFlow>
143     <bpmn:exclusiveGateway id="ExclusiveGateway_isTopLevelFlowAbort" name="Is Top-Level Flow?" default="SequenceFlow_02ksbt0">
144       <bpmn:incoming>SequenceFlow_11530ei</bpmn:incoming>
145       <bpmn:outgoing>SequenceFlow_02ksbt0</bpmn:outgoing>
146       <bpmn:outgoing>SequenceFlow_1r570x3</bpmn:outgoing>
147     </bpmn:exclusiveGateway>
148     <bpmn:sequenceFlow id="SequenceFlow_02ksbt0" name="yes" sourceRef="ExclusiveGateway_isTopLevelFlowAbort" targetRef="Task_AbortAndCallErrorHandling" />
149     <bpmn:sequenceFlow id="SequenceFlow_1r570x3" name="no" sourceRef="ExclusiveGateway_isTopLevelFlowAbort" targetRef="EndEvent_0lzz1ya">
150       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("isTopLevelFlow")==false}]]></bpmn:conditionExpression>
151     </bpmn:sequenceFlow>
152     <bpmn:exclusiveGateway id="ExclusiveGateway_isTopLevelFlowC" name="Is Top-Level Flow?" default="SequenceFlow_0kf5sen">
153       <bpmn:incoming>SequenceFlow_1m2eezj</bpmn:incoming>
154       <bpmn:outgoing>SequenceFlow_0x4urgp</bpmn:outgoing>
155       <bpmn:outgoing>SequenceFlow_0kf5sen</bpmn:outgoing>
156     </bpmn:exclusiveGateway>
157     <bpmn:sequenceFlow id="SequenceFlow_0x4urgp" name="no" sourceRef="ExclusiveGateway_isTopLevelFlowC" targetRef="End_WorkflowActionBB">
158       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("isTopLevelFlow")==false}]]></bpmn:conditionExpression>
159     </bpmn:sequenceFlow>
160     <bpmn:endEvent id="End_RollbackFailed" name="end">
161       <bpmn:incoming>SequenceFlow_1ui67mc</bpmn:incoming>
162     </bpmn:endEvent>
163     <bpmn:sequenceFlow id="SequenceFlow_11dlyzt" name="Rollback Not Needed" sourceRef="Task_RollbackExecutionPath" targetRef="Task_UpdateRequestToFailed">
164       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("isRollbackNeeded")==false}]]></bpmn:conditionExpression>
165     </bpmn:sequenceFlow>
166     <bpmn:serviceTask id="Task_UpdateRequestToFailed" name="Update Request To Failed" camunda:expression="${WorkflowActionBBTasks.updateRequestStatusToFailedWithRollback(execution)}">
167       <bpmn:incoming>SequenceFlow_11dlyzt</bpmn:incoming>
168       <bpmn:incoming>SequenceFlow_0l7kaba</bpmn:incoming>
169       <bpmn:outgoing>SequenceFlow_1ui67mc</bpmn:outgoing>
170     </bpmn:serviceTask>
171     <bpmn:sequenceFlow id="SequenceFlow_0l7kaba" name="Rollback Completed" sourceRef="ExclusiveGateway_Finished" targetRef="Task_UpdateRequestToFailed">
172       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("completed")==true&&execution.getVariable("isRollback")==true}]]></bpmn:conditionExpression>
173     </bpmn:sequenceFlow>
174     <bpmn:sequenceFlow id="SequenceFlow_1ui67mc" sourceRef="Task_UpdateRequestToFailed" targetRef="End_RollbackFailed" />
175     <bpmn:subProcess id="SubProcess_0fuugr9" name="Java Exception Handling Sub Process" triggeredByEvent="true">
176       <bpmn:startEvent id="StartEvent_runtimeError" name="error">
177         <bpmn:outgoing>SequenceFlow_11d126w</bpmn:outgoing>
178         <bpmn:errorEventDefinition errorRef="Error_0kd2o2a" camunda:errorCodeVariable="BPMN_javaExpCode" camunda:errorMessageVariable="BPMN_javaExpMsg" />
179       </bpmn:startEvent>
180       <bpmn:serviceTask id="ServiceTask_HandleRuntimeError" name="Handle Runtime Exception" camunda:expression="${WorkflowAction.handleRuntimeException(execution)}">
181         <bpmn:incoming>SequenceFlow_11d126w</bpmn:incoming>
182         <bpmn:outgoing>SequenceFlow_0w4sx88</bpmn:outgoing>
183       </bpmn:serviceTask>
184       <bpmn:endEvent id="EndEvent__runtimeError">
185         <bpmn:incoming>SequenceFlow_0w4sx88</bpmn:incoming>
186       </bpmn:endEvent>
187       <bpmn:sequenceFlow id="SequenceFlow_11d126w" sourceRef="StartEvent_runtimeError" targetRef="ServiceTask_HandleRuntimeError" />
188       <bpmn:sequenceFlow id="SequenceFlow_0w4sx88" sourceRef="ServiceTask_HandleRuntimeError" targetRef="EndEvent__runtimeError" />
189     </bpmn:subProcess>
190     <bpmn:serviceTask id="ServiceTask_0e2p0xs" name="Update Flow Statistics" camunda:expression="${WorkflowActionBBTasks.updateFlowStatistics(execution)}">
191       <bpmn:incoming>SequenceFlow_0mqrkxv</bpmn:incoming>
192       <bpmn:outgoing>SequenceFlow_0mew9im</bpmn:outgoing>
193     </bpmn:serviceTask>
194     <bpmn:sequenceFlow id="SequenceFlow_0mew9im" sourceRef="ServiceTask_0e2p0xs" targetRef="Call_ExecuteBB" />
195     <bpmn:sequenceFlow id="SequenceFlow_0kf5sen" name="yes" sourceRef="ExclusiveGateway_isTopLevelFlowC" targetRef="Task_SetupCompleteMsoProcess" />
196   </bpmn:process>
197   <bpmn:error id="Error_0kd2o2a" name="java.lang.Exception" errorCode="java.lang.Exception" />
198   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
199     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="WorkflowActionBB">
200       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="Start_WorkflowActionBB">
201         <dc:Bounds x="-241" y="102" width="36" height="36" />
202         <bpmndi:BPMNLabel>
203           <dc:Bounds x="-234" y="138" width="23" height="12" />
204         </bpmndi:BPMNLabel>
205       </bpmndi:BPMNShape>
206       <bpmndi:BPMNShape id="EndEvent_1uv6erv_di" bpmnElement="End_WorkflowActionBB">
207         <dc:Bounds x="1281" y="147" width="36" height="36" />
208         <bpmndi:BPMNLabel>
209           <dc:Bounds x="1291" y="186" width="18" height="12" />
210         </bpmndi:BPMNLabel>
211       </bpmndi:BPMNShape>
212       <bpmndi:BPMNEdge id="SequenceFlow_15s0okp_di" bpmnElement="SequenceFlow_15s0okp">
213         <di:waypoint xsi:type="dc:Point" x="-205" y="120" />
214         <di:waypoint xsi:type="dc:Point" x="-172" y="120" />
215         <bpmndi:BPMNLabel>
216           <dc:Bounds x="-233" y="99" width="90" height="13" />
217         </bpmndi:BPMNLabel>
218       </bpmndi:BPMNEdge>
219       <bpmndi:BPMNShape id="CallActivity_03m7z4y_di" bpmnElement="Call_ExecuteBB">
220         <dc:Bounds x="560" y="80" width="100" height="80" />
221       </bpmndi:BPMNShape>
222       <bpmndi:BPMNEdge id="SequenceFlow_0mqrkxv_di" bpmnElement="SequenceFlow_0mqrkxv">
223         <di:waypoint xsi:type="dc:Point" x="339" y="120" />
224         <di:waypoint xsi:type="dc:Point" x="400" y="120" />
225         <bpmndi:BPMNLabel>
226           <dc:Bounds x="324.5" y="105" width="90" height="0" />
227         </bpmndi:BPMNLabel>
228       </bpmndi:BPMNEdge>
229       <bpmndi:BPMNShape id="ServiceTask_1snenqk_di" bpmnElement="Task_SelectBB">
230         <dc:Bounds x="239" y="80" width="100" height="80" />
231       </bpmndi:BPMNShape>
232       <bpmndi:BPMNShape id="ExclusiveGateway_0m1zt0q_di" bpmnElement="ExclusiveGateway_Finished" isMarkerVisible="true">
233         <dc:Bounds x="692" y="95" width="50" height="50" />
234         <bpmndi:BPMNLabel>
235           <dc:Bounds x="676" y="42" width="0" height="0" />
236         </bpmndi:BPMNLabel>
237       </bpmndi:BPMNShape>
238       <bpmndi:BPMNEdge id="SequenceFlow_07h9d4y_di" bpmnElement="SequenceFlow_07h9d4y">
239         <di:waypoint xsi:type="dc:Point" x="660" y="120" />
240         <di:waypoint xsi:type="dc:Point" x="692" y="120" />
241         <bpmndi:BPMNLabel>
242           <dc:Bounds x="676" y="99" width="0" height="0" />
243         </bpmndi:BPMNLabel>
244       </bpmndi:BPMNEdge>
245       <bpmndi:BPMNEdge id="SequenceFlow_1m2eezj_di" bpmnElement="SequenceFlow_1m2eezj">
246         <di:waypoint xsi:type="dc:Point" x="730" y="132" />
247         <di:waypoint xsi:type="dc:Point" x="761" y="165" />
248         <di:waypoint xsi:type="dc:Point" x="841" y="165" />
249         <bpmndi:BPMNLabel>
250           <dc:Bounds x="749" y="168" width="83" height="12" />
251         </bpmndi:BPMNLabel>
252       </bpmndi:BPMNEdge>
253       <bpmndi:BPMNShape id="ServiceTask_0kn8jt8_di" bpmnElement="Task_RetrieveBBExectuionList">
254         <dc:Bounds x="-172" y="80" width="100" height="80" />
255       </bpmndi:BPMNShape>
256       <bpmndi:BPMNShape id="ServiceTask_0654g3m_di" bpmnElement="Task_SendSync">
257         <dc:Bounds x="46" y="-7" width="100" height="80" />
258       </bpmndi:BPMNShape>
259       <bpmndi:BPMNShape id="ServiceTask_0wzh11j_di" bpmnElement="Task_SetupCompleteMsoProcess">
260         <dc:Bounds x="900" y="210" width="100" height="80" />
261       </bpmndi:BPMNShape>
262       <bpmndi:BPMNShape id="CallActivity_1jxi5jq_di" bpmnElement="Call_CompleteMsoProcess">
263         <dc:Bounds x="1027" y="210" width="100" height="80" />
264       </bpmndi:BPMNShape>
265       <bpmndi:BPMNEdge id="SequenceFlow_1pz6edz_di" bpmnElement="SequenceFlow_1pz6edz">
266         <di:waypoint xsi:type="dc:Point" x="1000" y="250" />
267         <di:waypoint xsi:type="dc:Point" x="1027" y="250" />
268         <bpmndi:BPMNLabel>
269           <dc:Bounds x="969" y="229" width="90" height="0" />
270         </bpmndi:BPMNLabel>
271       </bpmndi:BPMNEdge>
272       <bpmndi:BPMNEdge id="SequenceFlow_1rscv7d_di" bpmnElement="SequenceFlow_1rscv7d">
273         <di:waypoint xsi:type="dc:Point" x="1127" y="250" />
274         <di:waypoint xsi:type="dc:Point" x="1147" y="250" />
275         <di:waypoint xsi:type="dc:Point" x="1147" y="165" />
276         <di:waypoint xsi:type="dc:Point" x="1281" y="165" />
277         <bpmndi:BPMNLabel>
278           <dc:Bounds x="1117" y="208" width="90" height="0" />
279         </bpmndi:BPMNLabel>
280       </bpmndi:BPMNEdge>
281       <bpmndi:BPMNShape id="SubProcess_18226x4_di" bpmnElement="SubProcess_18226x4" isExpanded="true">
282         <dc:Bounds x="498" y="444" width="438" height="297" />
283       </bpmndi:BPMNShape>
284       <bpmndi:BPMNShape id="StartEvent_184g7f3_di" bpmnElement="ErrorStart">
285         <dc:Bounds x="520" y="639" width="36" height="36" />
286         <bpmndi:BPMNLabel>
287           <dc:Bounds x="526" y="682" width="24" height="12" />
288         </bpmndi:BPMNLabel>
289       </bpmndi:BPMNShape>
290       <bpmndi:BPMNShape id="EndEvent_0l4edvr_di" bpmnElement="ErrorEnd">
291         <dc:Bounds x="880" y="639" width="36" height="36" />
292         <bpmndi:BPMNLabel>
293           <dc:Bounds x="890" y="681" width="18" height="12" />
294         </bpmndi:BPMNLabel>
295       </bpmndi:BPMNShape>
296       <bpmndi:BPMNEdge id="SequenceFlow_0v588sm_di" bpmnElement="SequenceFlow_0v588sm">
297         <di:waypoint xsi:type="dc:Point" x="717" y="145" />
298         <di:waypoint xsi:type="dc:Point" x="717" y="262" />
299         <di:waypoint xsi:type="dc:Point" x="339" y="262" />
300         <bpmndi:BPMNLabel>
301           <dc:Bounds x="597.5" y="272" width="73" height="12" />
302         </bpmndi:BPMNLabel>
303       </bpmndi:BPMNEdge>
304       <bpmndi:BPMNEdge id="SequenceFlow_1atzsgn_di" bpmnElement="SequenceFlow_1atzsgn">
305         <di:waypoint xsi:type="dc:Point" x="289" y="222" />
306         <di:waypoint xsi:type="dc:Point" x="289" y="160" />
307         <bpmndi:BPMNLabel>
308           <dc:Bounds x="259" y="191" width="90" height="0" />
309         </bpmndi:BPMNLabel>
310       </bpmndi:BPMNEdge>
311       <bpmndi:BPMNShape id="ServiceTask_19t1oyr_di" bpmnElement="Task_RollbackExecutionPath">
312         <dc:Bounds x="239" y="222" width="100" height="80" />
313       </bpmndi:BPMNShape>
314       <bpmndi:BPMNEdge id="SequenceFlow_0vc9go9_di" bpmnElement="SequenceFlow_0vc9go9">
315         <di:waypoint xsi:type="dc:Point" x="-72" y="120" />
316         <di:waypoint xsi:type="dc:Point" x="-39" y="120" />
317         <bpmndi:BPMNLabel>
318           <dc:Bounds x="-100" y="105" width="90" height="0" />
319         </bpmndi:BPMNLabel>
320       </bpmndi:BPMNEdge>
321       <bpmndi:BPMNEdge id="SequenceFlow_11530ei_di" bpmnElement="SequenceFlow_11530ei">
322         <di:waypoint xsi:type="dc:Point" x="727" y="105" />
323         <di:waypoint xsi:type="dc:Point" x="764" y="44" />
324         <di:waypoint xsi:type="dc:Point" x="841" y="45" />
325         <bpmndi:BPMNLabel>
326           <dc:Bounds x="756" y="17.269982652857244" width="57" height="12" />
327         </bpmndi:BPMNLabel>
328       </bpmndi:BPMNEdge>
329       <bpmndi:BPMNShape id="ServiceTask_0jo36ez_di" bpmnElement="Task_AbortAndCallErrorHandling">
330         <dc:Bounds x="957" y="-76" width="100" height="80" />
331       </bpmndi:BPMNShape>
332       <bpmndi:BPMNShape id="EndEvent_0lzz1ya_di" bpmnElement="EndEvent_0lzz1ya">
333         <dc:Bounds x="1167" y="27" width="36" height="36" />
334         <bpmndi:BPMNLabel>
335           <dc:Bounds x="1176" y="67" width="18" height="12" />
336         </bpmndi:BPMNLabel>
337       </bpmndi:BPMNShape>
338       <bpmndi:BPMNEdge id="SequenceFlow_1p8yxu6_di" bpmnElement="SequenceFlow_1p8yxu6">
339         <di:waypoint xsi:type="dc:Point" x="1057" y="-36" />
340         <di:waypoint xsi:type="dc:Point" x="1140" y="-36" />
341         <di:waypoint xsi:type="dc:Point" x="1140" y="45" />
342         <di:waypoint xsi:type="dc:Point" x="1167" y="45" />
343         <bpmndi:BPMNLabel>
344           <dc:Bounds x="1155" y="4.5" width="0" height="0" />
345         </bpmndi:BPMNLabel>
346       </bpmndi:BPMNEdge>
347       <bpmndi:BPMNEdge id="SequenceFlow_1wb59ic_di" bpmnElement="SequenceFlow_1wb59ic">
348         <di:waypoint xsi:type="dc:Point" x="146" y="33" />
349         <di:waypoint xsi:type="dc:Point" x="193" y="33" />
350         <di:waypoint xsi:type="dc:Point" x="193" y="120" />
351         <di:waypoint xsi:type="dc:Point" x="239" y="120" />
352         <bpmndi:BPMNLabel>
353           <dc:Bounds x="163" y="77" width="90" height="0" />
354         </bpmndi:BPMNLabel>
355       </bpmndi:BPMNEdge>
356       <bpmndi:BPMNEdge id="SequenceFlow_01j184u_di" bpmnElement="SequenceFlow_01j184u">
357         <di:waypoint xsi:type="dc:Point" x="717" y="95" />
358         <di:waypoint xsi:type="dc:Point" x="717" y="55" />
359         <di:waypoint xsi:type="dc:Point" x="717" y="55" />
360         <di:waypoint xsi:type="dc:Point" x="717" y="4" />
361         <bpmndi:BPMNLabel>
362           <dc:Bounds x="732" y="49" width="0" height="0" />
363         </bpmndi:BPMNLabel>
364       </bpmndi:BPMNEdge>
365       <bpmndi:BPMNEdge id="SequenceFlow_005hi8o_di" bpmnElement="SequenceFlow_005hi8o">
366         <di:waypoint xsi:type="dc:Point" x="667" y="-36" />
367         <di:waypoint xsi:type="dc:Point" x="289" y="-36" />
368         <di:waypoint xsi:type="dc:Point" x="289" y="80" />
369         <bpmndi:BPMNLabel>
370           <dc:Bounds x="433" y="-51" width="90" height="0" />
371         </bpmndi:BPMNLabel>
372       </bpmndi:BPMNEdge>
373       <bpmndi:BPMNShape id="ServiceTask_1c1v3p1_di" bpmnElement="Task_0a31dkf">
374         <dc:Bounds x="667" y="-76" width="100" height="80" />
375       </bpmndi:BPMNShape>
376       <bpmndi:BPMNShape id="ExclusiveGateway_0ptb1yi_di" bpmnElement="ExclusiveGateway_isTopLevelFlow" isMarkerVisible="true">
377         <dc:Bounds x="-39" y="95" width="50" height="50" />
378         <bpmndi:BPMNLabel>
379           <dc:Bounds x="-45" y="145" width="61" height="24" />
380         </bpmndi:BPMNLabel>
381       </bpmndi:BPMNShape>
382       <bpmndi:BPMNEdge id="SequenceFlow_0sckerv_di" bpmnElement="SequenceFlow_0sckerv">
383         <di:waypoint xsi:type="dc:Point" x="-13" y="96" />
384         <di:waypoint xsi:type="dc:Point" x="-13" y="33" />
385         <di:waypoint xsi:type="dc:Point" x="46" y="33" />
386         <bpmndi:BPMNLabel>
387           <dc:Bounds x="-7" y="55" width="19" height="12" />
388         </bpmndi:BPMNLabel>
389       </bpmndi:BPMNEdge>
390       <bpmndi:BPMNEdge id="SequenceFlow_0unbew4_di" bpmnElement="SequenceFlow_0unbew4">
391         <di:waypoint xsi:type="dc:Point" x="11" y="120" />
392         <di:waypoint xsi:type="dc:Point" x="239" y="120" />
393         <bpmndi:BPMNLabel>
394           <dc:Bounds x="119" y="95" width="12" height="12" />
395         </bpmndi:BPMNLabel>
396       </bpmndi:BPMNEdge>
397       <bpmndi:BPMNShape id="ExclusiveGateway_001g41v_di" bpmnElement="ExclusiveGateway_isTopLevelFlowAbort" isMarkerVisible="true">
398         <dc:Bounds x="841" y="20" width="50" height="50" />
399         <bpmndi:BPMNLabel>
400           <dc:Bounds x="836" y="70" width="60" height="24" />
401         </bpmndi:BPMNLabel>
402       </bpmndi:BPMNShape>
403       <bpmndi:BPMNEdge id="SequenceFlow_02ksbt0_di" bpmnElement="SequenceFlow_02ksbt0">
404         <di:waypoint xsi:type="dc:Point" x="866" y="20" />
405         <di:waypoint xsi:type="dc:Point" x="866" y="-37" />
406         <di:waypoint xsi:type="dc:Point" x="957" y="-37" />
407         <bpmndi:BPMNLabel>
408           <dc:Bounds x="872" y="-8.5" width="18" height="12" />
409         </bpmndi:BPMNLabel>
410       </bpmndi:BPMNEdge>
411       <bpmndi:BPMNEdge id="SequenceFlow_1r570x3_di" bpmnElement="SequenceFlow_1r570x3">
412         <di:waypoint xsi:type="dc:Point" x="891" y="45" />
413         <di:waypoint xsi:type="dc:Point" x="1167" y="45" />
414         <bpmndi:BPMNLabel>
415           <dc:Bounds x="1023" y="20" width="12" height="12" />
416         </bpmndi:BPMNLabel>
417       </bpmndi:BPMNEdge>
418       <bpmndi:BPMNShape id="ExclusiveGateway_1er1kam_di" bpmnElement="ExclusiveGateway_isTopLevelFlowC" isMarkerVisible="true">
419         <dc:Bounds x="841" y="140" width="50" height="50" />
420         <bpmndi:BPMNLabel>
421           <dc:Bounds x="836" y="108" width="60" height="24" />
422         </bpmndi:BPMNLabel>
423       </bpmndi:BPMNShape>
424       <bpmndi:BPMNEdge id="SequenceFlow_0x4urgp_di" bpmnElement="SequenceFlow_0x4urgp">
425         <di:waypoint xsi:type="dc:Point" x="891" y="165" />
426         <di:waypoint xsi:type="dc:Point" x="1281" y="165" />
427         <bpmndi:BPMNLabel>
428           <dc:Bounds x="1081" y="140" width="12" height="12" />
429         </bpmndi:BPMNLabel>
430       </bpmndi:BPMNEdge>
431       <bpmndi:BPMNShape id="EndEvent_1q8eh5e_di" bpmnElement="End_RollbackFailed">
432         <dc:Bounds x="940" y="347" width="36" height="36" />
433         <bpmndi:BPMNLabel>
434           <dc:Bounds x="958" y="399" width="18" height="12" />
435         </bpmndi:BPMNLabel>
436       </bpmndi:BPMNShape>
437       <bpmndi:BPMNEdge id="SequenceFlow_11dlyzt_di" bpmnElement="SequenceFlow_11dlyzt">
438         <di:waypoint xsi:type="dc:Point" x="289" y="302" />
439         <di:waypoint xsi:type="dc:Point" x="289" y="368" />
440         <di:waypoint xsi:type="dc:Point" x="741" y="368" />
441         <bpmndi:BPMNLabel>
442           <dc:Bounds x="340.85361216730035" y="325" width="63" height="24" />
443         </bpmndi:BPMNLabel>
444       </bpmndi:BPMNEdge>
445       <bpmndi:BPMNShape id="ServiceTask_1h154rn_di" bpmnElement="Task_UpdateDb">
446         <dc:Bounds x="713" y="617" width="100" height="80" />
447       </bpmndi:BPMNShape>
448       <bpmndi:BPMNShape id="ServiceTask_1t8n9gd_di" bpmnElement="Task_UpdateRequestToFailed">
449         <dc:Bounds x="741" y="325" width="100" height="80" />
450       </bpmndi:BPMNShape>
451       <bpmndi:BPMNEdge id="SequenceFlow_0l7kaba_di" bpmnElement="SequenceFlow_0l7kaba">
452         <di:waypoint xsi:type="dc:Point" x="723" y="139" />
453         <di:waypoint xsi:type="dc:Point" x="757" y="252" />
454         <di:waypoint xsi:type="dc:Point" x="797" y="252" />
455         <di:waypoint xsi:type="dc:Point" x="797" y="325" />
456         <bpmndi:BPMNLabel>
457           <dc:Bounds x="739.7268586738111" y="255.4388401674105" width="52" height="24" />
458         </bpmndi:BPMNLabel>
459       </bpmndi:BPMNEdge>
460       <bpmndi:BPMNEdge id="SequenceFlow_1edjl5x_di" bpmnElement="SequenceFlow_1edjl5x">
461         <di:waypoint xsi:type="dc:Point" x="556" y="657" />
462         <di:waypoint xsi:type="dc:Point" x="602" y="657" />
463         <bpmndi:BPMNLabel>
464           <dc:Bounds x="534" y="636" width="90" height="12" />
465         </bpmndi:BPMNLabel>
466       </bpmndi:BPMNEdge>
467       <bpmndi:BPMNEdge id="SequenceFlow_0wvzfgf_di" bpmnElement="SequenceFlow_0wvzfgf">
468         <di:waypoint xsi:type="dc:Point" x="813" y="657" />
469         <di:waypoint xsi:type="dc:Point" x="880" y="657" />
470         <bpmndi:BPMNLabel>
471           <dc:Bounds x="801.5" y="636" width="90" height="12" />
472         </bpmndi:BPMNLabel>
473       </bpmndi:BPMNEdge>
474       <bpmndi:BPMNEdge id="SequenceFlow_1ui67mc_di" bpmnElement="SequenceFlow_1ui67mc">
475         <di:waypoint xsi:type="dc:Point" x="841" y="365" />
476         <di:waypoint xsi:type="dc:Point" x="915" y="365" />
477         <di:waypoint xsi:type="dc:Point" x="915" y="365" />
478         <di:waypoint xsi:type="dc:Point" x="940" y="365" />
479         <bpmndi:BPMNLabel>
480           <dc:Bounds x="885" y="359" width="90" height="13" />
481         </bpmndi:BPMNLabel>
482       </bpmndi:BPMNEdge>
483       <bpmndi:BPMNShape id="ExclusiveGateway_10q79b6_di" bpmnElement="ExclusiveGateway_10q79b6" isMarkerVisible="true">
484         <dc:Bounds x="602" y="632" width="50" height="50" />
485         <bpmndi:BPMNLabel>
486           <dc:Bounds x="584" y="686" width="86" height="36" />
487         </bpmndi:BPMNLabel>
488       </bpmndi:BPMNShape>
489       <bpmndi:BPMNEdge id="SequenceFlow_024g0d1_di" bpmnElement="SequenceFlow_024g0d1">
490         <di:waypoint xsi:type="dc:Point" x="652" y="657" />
491         <di:waypoint xsi:type="dc:Point" x="683" y="657" />
492         <di:waypoint xsi:type="dc:Point" x="683" y="657" />
493         <di:waypoint xsi:type="dc:Point" x="713" y="657" />
494         <bpmndi:BPMNLabel>
495           <dc:Bounds x="677" y="634" width="12" height="12" />
496         </bpmndi:BPMNLabel>
497       </bpmndi:BPMNEdge>
498       <bpmndi:BPMNEdge id="SequenceFlow_0vi883o_di" bpmnElement="SequenceFlow_0vi883o">
499         <di:waypoint xsi:type="dc:Point" x="627" y="632" />
500         <di:waypoint xsi:type="dc:Point" x="627" y="548" />
501         <di:waypoint xsi:type="dc:Point" x="713" y="548" />
502         <bpmndi:BPMNLabel>
503           <dc:Bounds x="633" y="584" width="18" height="12" />
504         </bpmndi:BPMNLabel>
505       </bpmndi:BPMNEdge>
506       <bpmndi:BPMNEdge id="SequenceFlow_0eana0l_di" bpmnElement="SequenceFlow_0eana0l">
507         <di:waypoint xsi:type="dc:Point" x="763" y="588" />
508         <di:waypoint xsi:type="dc:Point" x="763" y="617" />
509         <bpmndi:BPMNLabel>
510           <dc:Bounds x="778" y="596.5" width="0" height="12" />
511         </bpmndi:BPMNLabel>
512       </bpmndi:BPMNEdge>
513       <bpmndi:BPMNShape id="ServiceTask_10hs368_di" bpmnElement="Task_SendSyncAckError">
514         <dc:Bounds x="713" y="508" width="100" height="80" />
515       </bpmndi:BPMNShape>
516       <bpmndi:BPMNShape id="SubProcess_0fuugr9_di" bpmnElement="SubProcess_0fuugr9" isExpanded="true">
517         <dc:Bounds x="515" y="792" width="404" height="165" />
518       </bpmndi:BPMNShape>
519       <bpmndi:BPMNShape id="StartEvent_15qkxd7_di" bpmnElement="StartEvent_runtimeError">
520         <dc:Bounds x="570" y="857" width="36" height="36" />
521         <bpmndi:BPMNLabel>
522           <dc:Bounds x="577" y="900" width="24" height="12" />
523         </bpmndi:BPMNLabel>
524       </bpmndi:BPMNShape>
525       <bpmndi:BPMNShape id="ServiceTask_1p4kxh2_di" bpmnElement="ServiceTask_HandleRuntimeError">
526         <dc:Bounds x="690" y="835" width="100" height="80" />
527       </bpmndi:BPMNShape>
528       <bpmndi:BPMNShape id="EndEvent_09e3lu5_di" bpmnElement="EndEvent__runtimeError">
529         <dc:Bounds x="856" y="857" width="36" height="36" />
530         <bpmndi:BPMNLabel>
531           <dc:Bounds x="784" y="897" width="0" height="12" />
532         </bpmndi:BPMNLabel>
533       </bpmndi:BPMNShape>
534       <bpmndi:BPMNEdge id="SequenceFlow_11d126w_di" bpmnElement="SequenceFlow_11d126w">
535         <di:waypoint xsi:type="dc:Point" x="606" y="875" />
536         <di:waypoint xsi:type="dc:Point" x="690" y="875" />
537         <bpmndi:BPMNLabel>
538           <dc:Bounds x="603" y="854" width="0" height="12" />
539         </bpmndi:BPMNLabel>
540       </bpmndi:BPMNEdge>
541       <bpmndi:BPMNEdge id="SequenceFlow_0w4sx88_di" bpmnElement="SequenceFlow_0w4sx88">
542         <di:waypoint xsi:type="dc:Point" x="790" y="875" />
543         <di:waypoint xsi:type="dc:Point" x="856" y="875" />
544         <bpmndi:BPMNLabel>
545           <dc:Bounds x="778" y="854" width="0" height="12" />
546         </bpmndi:BPMNLabel>
547       </bpmndi:BPMNEdge>
548       <bpmndi:BPMNShape id="ServiceTask_0e2p0xs_di" bpmnElement="ServiceTask_0e2p0xs">
549         <dc:Bounds x="400" y="80" width="100" height="80" />
550       </bpmndi:BPMNShape>
551       <bpmndi:BPMNEdge id="SequenceFlow_0mew9im_di" bpmnElement="SequenceFlow_0mew9im">
552         <di:waypoint xsi:type="dc:Point" x="500" y="120" />
553         <di:waypoint xsi:type="dc:Point" x="560" y="120" />
554         <bpmndi:BPMNLabel>
555           <dc:Bounds x="530" y="99" width="0" height="12" />
556         </bpmndi:BPMNLabel>
557       </bpmndi:BPMNEdge>
558       <bpmndi:BPMNEdge id="SequenceFlow_0kf5sen_di" bpmnElement="SequenceFlow_0kf5sen">
559         <di:waypoint xsi:type="dc:Point" x="866" y="190" />
560         <di:waypoint xsi:type="dc:Point" x="866" y="250" />
561         <di:waypoint xsi:type="dc:Point" x="900" y="250" />
562         <bpmndi:BPMNLabel>
563           <dc:Bounds x="872" y="220" width="18" height="12" />
564         </bpmndi:BPMNLabel>
565       </bpmndi:BPMNEdge>
566     </bpmndi:BPMNPlane>
567   </bpmndi:BPMNDiagram>
568 </bpmn:definitions>