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