7a9a7f8308d39d437b31d950ea8e58487f3b33c7
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / SDNCAdapterRestV1.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="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" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="_GraPIIyxEeWmdMDkx6Uftw" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.13.1" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3   <bpmn2:process id="SDNCAdapterRestV1" name="SDNCAdapterRestV1" isExecutable="true">
4     <bpmn2:scriptTask id="ScriptTask_2" name="Log Response" scriptFormat="groovy">
5       <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
6       <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
7       <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
8 def sdncAdapterRestV1 = new SDNCAdapterRestV1()
9 def statusCode = execution.getVariable('SDNCREST_sdncAdapterStatusCode')
10 String response = String.valueOf(execution.getVariable('SDNCREST_sdncAdapterResponse'))
11 def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')
12 def processKey = sdncAdapterRestV1.getProcessKey(execution)
13 sdncAdapterRestV1.logDebug(processKey + " received response from SDNCAdapter: statusCode=" + statusCode +
14         " response=" + (response.isEmpty() ? "" : "\n") + response, isDebugLogEnabled)</bpmn2:script>
15     </bpmn2:scriptTask>
16     <bpmn2:scriptTask id="ScriptTask_3" name="Workflow Exception (no connection)" scriptFormat="groovy">
17       <bpmn2:incoming>SequenceFlow_17</bpmn2:incoming>
18       <bpmn2:outgoing>SequenceFlow_35</bpmn2:outgoing>
19       <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
20 def exceptionUtil = new ExceptionUtil()
21 exceptionUtil.buildWorkflowException(execution, 5300, "Failed to communicate with SDNCAdapter")</bpmn2:script>
22     </bpmn2:scriptTask>
23     <bpmn2:scriptTask id="ScriptTask_4" name="Workflow Exception (bad response)" scriptFormat="groovy">
24       <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>
25       <bpmn2:outgoing>SequenceFlow_36</bpmn2:outgoing>
26       <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
27
28 String res = execution.getVariable('SDNCREST_sdncAdapterResponse')
29
30 def sdncAdapterRestV1 = new SDNCAdapterRestV1()
31 sdncAdapterRestV1.sdncAdapterBuildWorkflowException(execution, res)</bpmn2:script>
32     </bpmn2:scriptTask>
33     <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="ScriptTask_2" targetRef="ExclusiveGateway_1" />
34     <bpmn2:exclusiveGateway id="ExclusiveGateway_1" default="SequenceFlow_23">
35       <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
36       <bpmn2:outgoing>SequenceFlow_17</bpmn2:outgoing>
37       <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>
38       <bpmn2:outgoing>SequenceFlow_24</bpmn2:outgoing>
39     </bpmn2:exclusiveGateway>
40     <bpmn2:sequenceFlow id="SequenceFlow_17" name="404" sourceRef="ExclusiveGateway_1" targetRef="ScriptTask_3">
41       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable("SDNCREST_sdncAdapterStatusCode") == '404'}</bpmn2:conditionExpression>
42     </bpmn2:sequenceFlow>
43     <bpmn2:sequenceFlow id="SequenceFlow_23" name="other" sourceRef="ExclusiveGateway_1" targetRef="ScriptTask_4" />
44     <bpmn2:sequenceFlow id="SequenceFlow_24" name="2xx" sourceRef="ExclusiveGateway_1" targetRef="SubProcess_2">
45       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable("SDNCREST_sdncAdapterStatusCode") == '200' || execution.getVariable("SDNCREST_sdncAdapterStatusCode") == '202'}</bpmn2:conditionExpression>
46     </bpmn2:sequenceFlow>
47     <bpmn2:sequenceFlow id="SequenceFlow_35" name="" sourceRef="ScriptTask_3" targetRef="EndEvent_9" />
48     <bpmn2:endEvent id="EndEvent_9">
49       <bpmn2:incoming>SequenceFlow_35</bpmn2:incoming>
50       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_22" errorRef="Error_1" />
51     </bpmn2:endEvent>
52     <bpmn2:endEvent id="EndEvent_10">
53       <bpmn2:incoming>SequenceFlow_36</bpmn2:incoming>
54       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_23" errorRef="Error_1" />
55     </bpmn2:endEvent>
56     <bpmn2:sequenceFlow id="SequenceFlow_36" name="" sourceRef="ScriptTask_4" targetRef="EndEvent_10" />
57     <bpmn2:scriptTask id="ScriptTask_7" name="Send Request to SDNC Adapter" scriptFormat="groovy">
58       <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
59       <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
60       <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
61 def sdncAdapterRestV1 = new SDNCAdapterRestV1()
62 sdncAdapterRestV1.sendRequestToSDNCAdapter(execution)</bpmn2:script>
63     </bpmn2:scriptTask>
64     <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="ScriptTask_7" targetRef="ScriptTask_2" />
65     <bpmn2:scriptTask id="ScriptTask_1" name="Pre-Process Request" scriptFormat="groovy">
66       <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
67       <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
68       <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
69 def sdncAdapterRestV1 = new SDNCAdapterRestV1()
70 sdncAdapterRestV1.preProcessRequest(execution)
71 </bpmn2:script>
72     </bpmn2:scriptTask>
73     <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="ScriptTask_1" targetRef="ScriptTask_7" />
74     <bpmn2:startEvent id="StartEvent_1" name="Start">
75       <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
76     </bpmn2:startEvent>
77     <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="StartEvent_1" targetRef="ScriptTask_1" />
78     <bpmn2:scriptTask id="ScriptTask_5" name="Workflow Exception (timeout)" scriptFormat="groovy">
79       <bpmn2:incoming>SequenceFlow_27</bpmn2:incoming>
80       <bpmn2:outgoing>SequenceFlow_34</bpmn2:outgoing>
81       <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
82 def exceptionUtil = new ExceptionUtil()
83 exceptionUtil.buildWorkflowException(execution, 5320, "SDNCAdapter Callback Timeout Error")</bpmn2:script>
84     </bpmn2:scriptTask>
85     <bpmn2:sequenceFlow id="SequenceFlow_34" name="" sourceRef="ScriptTask_5" targetRef="EndEvent_8" />
86     <bpmn2:endEvent id="EndEvent_8">
87       <bpmn2:incoming>SequenceFlow_34</bpmn2:incoming>
88       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_21" errorRef="Error_1" />
89     </bpmn2:endEvent>
90     <bpmn2:scriptTask id="ScriptTask_setSuccess" name="Set Success Indicator and WorkflowResponse" scriptFormat="groovy">
91       <bpmn2:incoming>SequenceFlow_44</bpmn2:incoming>
92       <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
93       <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
94 def sdncAdapterRestV1 = new SDNCAdapterRestV1()
95 sdncAdapterRestV1.setSuccessIndicator(execution, true)
96 execution.setVariable('WorkflowResponse', sdncAdapterRestV1.getLastCallback(execution))</bpmn2:script>
97     </bpmn2:scriptTask>
98     <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="ScriptTask_setSuccess" targetRef="EndEvent_6" />
99     <bpmn2:endEvent id="EndEvent_6" name="End">
100       <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
101     </bpmn2:endEvent>
102     <bpmn2:boundaryEvent id="BoundaryEvent_1" name="Timeout" attachedToRef="SubProcess_2">
103       <bpmn2:outgoing>SequenceFlow_27</bpmn2:outgoing>
104       <bpmn2:timerEventDefinition id="TimerEventDefinition_1">
105         <bpmn2:timeDuration xsi:type="bpmn2:tFormalExpression">${SDNCREST_timeout}</bpmn2:timeDuration>
106       </bpmn2:timerEventDefinition>
107     </bpmn2:boundaryEvent>
108     <bpmn2:sequenceFlow id="SequenceFlow_27" name="" sourceRef="BoundaryEvent_1" targetRef="ScriptTask_5" />
109     <bpmn2:subProcess id="SubProcess_2" name="Wait for Callbacks" camunda:asyncAfter="true">
110       <bpmn2:incoming>SequenceFlow_24</bpmn2:incoming>
111       <bpmn2:outgoing>SequenceFlow_44</bpmn2:outgoing>
112       <bpmn2:scriptTask id="ScriptTask_6" name="Process Callback" scriptFormat="groovy">
113         <bpmn2:incoming>SequenceFlow_41</bpmn2:incoming>
114         <bpmn2:outgoing>SequenceFlow_42</bpmn2:outgoing>
115         <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
116 def sdncAdapterRestV1 = new SDNCAdapterRestV1()
117 sdncAdapterRestV1.processCallback(execution)</bpmn2:script>
118       </bpmn2:scriptTask>
119       <bpmn2:sequenceFlow id="SequenceFlow_42" name="" sourceRef="ScriptTask_6" targetRef="ExclusiveGateway_3" />
120       <bpmn2:startEvent id="StartEvent_3">
121         <bpmn2:outgoing>SequenceFlow_25</bpmn2:outgoing>
122       </bpmn2:startEvent>
123       <bpmn2:sequenceFlow id="SequenceFlow_25" name="" sourceRef="StartEvent_3" targetRef="IntermediateCatchEvent_1" />
124       <bpmn2:exclusiveGateway id="ExclusiveGateway_7" name="ack-final-indicator" default="SequenceFlow_43">
125         <bpmn2:incoming>SequenceFlow_30</bpmn2:incoming>
126         <bpmn2:outgoing>SequenceFlow_39</bpmn2:outgoing>
127         <bpmn2:outgoing>SequenceFlow_43</bpmn2:outgoing>
128       </bpmn2:exclusiveGateway>
129       <bpmn2:sequenceFlow id="SequenceFlow_39" name="Y" sourceRef="ExclusiveGateway_7" targetRef="EndEvent_12">
130         <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable('SDNCREST_ackFinalIndicator')=="Y"}</bpmn2:conditionExpression>
131       </bpmn2:sequenceFlow>
132       <bpmn2:sequenceFlow id="SequenceFlow_43" name="N" sourceRef="ExclusiveGateway_7" targetRef="IntermediateCatchEvent_1" />
133       <bpmn2:exclusiveGateway id="ExclusiveGateway_3" name="Callback\r&#10;Exception?" default="SequenceFlow_30">
134         <bpmn2:incoming>SequenceFlow_42</bpmn2:incoming>
135         <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
136         <bpmn2:outgoing>SequenceFlow_30</bpmn2:outgoing>
137       </bpmn2:exclusiveGateway>
138       <bpmn2:sequenceFlow id="SequenceFlow_8" name="yes" sourceRef="ExclusiveGateway_3" targetRef="EndEvent_3">
139         <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable("WorkflowException") != null}</bpmn2:conditionExpression>
140       </bpmn2:sequenceFlow>
141       <bpmn2:sequenceFlow id="SequenceFlow_30" name="no" sourceRef="ExclusiveGateway_3" targetRef="ExclusiveGateway_7" />
142       <bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_1" name="Catch Event">
143         <bpmn2:incoming>SequenceFlow_25</bpmn2:incoming>
144         <bpmn2:incoming>SequenceFlow_43</bpmn2:incoming>
145         <bpmn2:outgoing>SequenceFlow_41</bpmn2:outgoing>
146         <bpmn2:messageEventDefinition id="MessageEventDefinition_1" messageRef="Message_1" />
147       </bpmn2:intermediateCatchEvent>
148       <bpmn2:sequenceFlow id="SequenceFlow_41" name="" sourceRef="IntermediateCatchEvent_1" targetRef="ScriptTask_6" />
149       <bpmn2:endEvent id="EndEvent_12">
150         <bpmn2:incoming>SequenceFlow_39</bpmn2:incoming>
151       </bpmn2:endEvent>
152       <bpmn2:endEvent id="EndEvent_3">
153         <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
154         <bpmn2:errorEventDefinition id="_ErrorEventDefinition_90" errorRef="Error_1" />
155       </bpmn2:endEvent>
156     </bpmn2:subProcess>
157     <bpmn2:sequenceFlow id="SequenceFlow_44" name="" sourceRef="SubProcess_2" targetRef="ScriptTask_setSuccess" />
158     <bpmn2:subProcess id="SubProcess_1" name="Error Handling Sub Process" triggeredByEvent="true">
159       <bpmn2:startEvent id="StartEvent_2">
160         <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
161         <bpmn2:errorEventDefinition id="_ErrorEventDefinition_89" />
162       </bpmn2:startEvent>
163       <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="StartEvent_2" targetRef="ScriptTask_8" />
164       <bpmn2:scriptTask id="ScriptTask_8" name="Process Error" scriptFormat="groovy">
165         <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
166         <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
167         <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
168 def exUtil = new ExceptionUtil()
169 exUtil.processSubflowsBPMNException(execution)
170 </bpmn2:script>
171       </bpmn2:scriptTask>
172       <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="ScriptTask_8" targetRef="EndEvent_2" />
173       <bpmn2:endEvent id="EndEvent_2">
174         <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
175       </bpmn2:endEvent>
176     </bpmn2:subProcess>
177   </bpmn2:process>
178   <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
179   <bpmn2:message id="Message_1" name="WorkflowMessage" />
180   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
181     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="SDNCAdapterRestV1">
182       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_56" bpmnElement="ScriptTask_1">
183         <dc:Bounds x="204" y="148" width="100" height="80" />
184       </bpmndi:BPMNShape>
185       <bpmndi:BPMNShape id="_BPMNShape_SubProcess_14" bpmnElement="SubProcess_2" isExpanded="true">
186         <dc:Bounds x="744" y="303" width="629" height="280" />
187       </bpmndi:BPMNShape>
188       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_58" bpmnElement="ScriptTask_6">
189         <dc:Bounds x="948" y="404" width="100" height="80" />
190       </bpmndi:BPMNShape>
191       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_59" bpmnElement="ScriptTask_5">
192         <dc:Bounds x="1418" y="624" width="100" height="80" />
193       </bpmndi:BPMNShape>
194       <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_24" bpmnElement="BoundaryEvent_1">
195         <dc:Bounds x="1300" y="565" width="36" height="36" />
196         <bpmndi:BPMNLabel>
197           <dc:Bounds x="1341" y="595" width="39" height="12" />
198         </bpmndi:BPMNLabel>
199       </bpmndi:BPMNShape>
200       <bpmndi:BPMNShape id="_BPMNShape_IntermediateCatchEvent_20" bpmnElement="IntermediateCatchEvent_1">
201         <dc:Bounds x="871" y="426" width="36" height="36" />
202         <bpmndi:BPMNLabel>
203           <dc:Bounds x="859" y="468" width="60" height="12" />
204         </bpmndi:BPMNLabel>
205       </bpmndi:BPMNShape>
206       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_78" bpmnElement="ScriptTask_4">
207         <dc:Bounds x="744" y="148" width="97" height="80" />
208       </bpmndi:BPMNShape>
209       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_79" bpmnElement="ScriptTask_2">
210         <dc:Bounds x="492" y="148" width="100" height="80" />
211       </bpmndi:BPMNShape>
212       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_54" bpmnElement="StartEvent_1">
213         <dc:Bounds x="130" y="170" width="36" height="36" />
214         <bpmndi:BPMNLabel>
215           <dc:Bounds x="131" y="211" width="34" height="22" />
216         </bpmndi:BPMNLabel>
217       </bpmndi:BPMNShape>
218       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_168" bpmnElement="ScriptTask_3">
219         <dc:Bounds x="744" y="24" width="97" height="80" />
220       </bpmndi:BPMNShape>
221       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_StartEvent_54" targetElement="_BPMNShape_ScriptTask_56">
222         <di:waypoint x="166" y="188" />
223         <di:waypoint x="204" y="188" />
224         <bpmndi:BPMNLabel>
225           <dc:Bounds x="176" y="188" width="6" height="6" />
226         </bpmndi:BPMNLabel>
227       </bpmndi:BPMNEdge>
228       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_105" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
229         <dc:Bounds x="624" y="162" width="50" height="50" />
230         <bpmndi:BPMNLabel>
231           <dc:Bounds x="649" y="217" width="0" height="0" />
232         </bpmndi:BPMNLabel>
233       </bpmndi:BPMNShape>
234       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_ScriptTask_79" targetElement="_BPMNShape_ExclusiveGateway_105">
235         <di:waypoint x="592" y="188" />
236         <di:waypoint x="624" y="187" />
237         <bpmndi:BPMNLabel>
238           <dc:Bounds x="611" y="187" width="6" height="6" />
239         </bpmndi:BPMNLabel>
240       </bpmndi:BPMNEdge>
241       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_17" sourceElement="_BPMNShape_ExclusiveGateway_105" targetElement="_BPMNShape_ScriptTask_168">
242         <di:waypoint x="649" y="162" />
243         <di:waypoint x="649" y="64" />
244         <di:waypoint x="744" y="64" />
245         <bpmndi:BPMNLabel>
246           <dc:Bounds x="688" y="64" width="27" height="22" />
247         </bpmndi:BPMNLabel>
248       </bpmndi:BPMNEdge>
249       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ExclusiveGateway_105" targetElement="_BPMNShape_ScriptTask_78">
250         <di:waypoint x="674" y="187" />
251         <di:waypoint x="709" y="187" />
252         <di:waypoint x="709" y="188" />
253         <di:waypoint x="744" y="188" />
254         <bpmndi:BPMNLabel>
255           <dc:Bounds x="684" y="188" width="35" height="22" />
256         </bpmndi:BPMNLabel>
257       </bpmndi:BPMNEdge>
258       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_25" bpmnElement="SequenceFlow_24" sourceElement="_BPMNShape_ExclusiveGateway_105" targetElement="_BPMNShape_SubProcess_14">
259         <di:waypoint x="649" y="212" />
260         <di:waypoint x="649" y="443" />
261         <di:waypoint x="744" y="443" />
262         <bpmndi:BPMNLabel>
263           <dc:Bounds x="689" y="443" width="18" height="12" />
264         </bpmndi:BPMNLabel>
265       </bpmndi:BPMNEdge>
266       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_55" bpmnElement="StartEvent_3">
267         <dc:Bounds x="776" y="426" width="36" height="36" />
268         <bpmndi:BPMNLabel>
269           <dc:Bounds x="794" y="467" width="0" height="0" />
270         </bpmndi:BPMNLabel>
271       </bpmndi:BPMNShape>
272       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_27" bpmnElement="SequenceFlow_25" sourceElement="_BPMNShape_StartEvent_55" targetElement="_BPMNShape_IntermediateCatchEvent_20">
273         <di:waypoint x="812" y="444" />
274         <di:waypoint x="871" y="444" />
275         <bpmndi:BPMNLabel>
276           <dc:Bounds x="1074" y="442" width="0" height="0" />
277         </bpmndi:BPMNLabel>
278       </bpmndi:BPMNEdge>
279       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_29" bpmnElement="SequenceFlow_27" sourceElement="_BPMNShape_BoundaryEvent_24" targetElement="_BPMNShape_ScriptTask_59">
280         <di:waypoint x="1318" y="601" />
281         <di:waypoint x="1318" y="664" />
282         <di:waypoint x="1418" y="664" />
283         <bpmndi:BPMNLabel>
284           <dc:Bounds x="1153" y="655" width="0" height="0" />
285         </bpmndi:BPMNLabel>
286       </bpmndi:BPMNEdge>
287       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_158" bpmnElement="EndEvent_6">
288         <dc:Bounds x="1562" y="425" width="36" height="36" />
289         <bpmndi:BPMNLabel>
290           <dc:Bounds x="1566" y="466" width="29" height="22" />
291         </bpmndi:BPMNLabel>
292       </bpmndi:BPMNShape>
293       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_8">
294         <dc:Bounds x="1562" y="646" width="36" height="36" />
295         <bpmndi:BPMNLabel>
296           <dc:Bounds x="1580" y="687" width="0" height="0" />
297         </bpmndi:BPMNLabel>
298       </bpmndi:BPMNShape>
299       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_36" bpmnElement="SequenceFlow_34" sourceElement="_BPMNShape_ScriptTask_59" targetElement="_BPMNShape_EndEvent_160">
300         <di:waypoint x="1518" y="664" />
301         <di:waypoint x="1562" y="664" />
302         <bpmndi:BPMNLabel>
303           <dc:Bounds x="1542" y="664" width="6" height="6" />
304         </bpmndi:BPMNLabel>
305       </bpmndi:BPMNEdge>
306       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_161" bpmnElement="EndEvent_9">
307         <dc:Bounds x="891" y="46" width="36" height="36" />
308         <bpmndi:BPMNLabel>
309           <dc:Bounds x="909" y="87" width="0" height="0" />
310         </bpmndi:BPMNLabel>
311       </bpmndi:BPMNShape>
312       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_37" bpmnElement="SequenceFlow_35" sourceElement="_BPMNShape_ScriptTask_168" targetElement="_BPMNShape_EndEvent_161">
313         <di:waypoint x="840" y="64" />
314         <di:waypoint x="891" y="64" />
315         <bpmndi:BPMNLabel>
316           <dc:Bounds x="865" y="64" width="6" height="6" />
317         </bpmndi:BPMNLabel>
318       </bpmndi:BPMNEdge>
319       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_162" bpmnElement="EndEvent_10">
320         <dc:Bounds x="892" y="170" width="36" height="36" />
321         <bpmndi:BPMNLabel>
322           <dc:Bounds x="910" y="211" width="0" height="0" />
323         </bpmndi:BPMNLabel>
324       </bpmndi:BPMNShape>
325       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_36" sourceElement="_BPMNShape_ScriptTask_78" targetElement="_BPMNShape_EndEvent_162">
326         <di:waypoint x="840" y="188" />
327         <di:waypoint x="892" y="188" />
328       </bpmndi:BPMNEdge>
329       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_236" bpmnElement="ScriptTask_setSuccess">
330         <dc:Bounds x="1419" y="401" width="97" height="83" />
331       </bpmndi:BPMNShape>
332       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_ScriptTask_236" targetElement="_BPMNShape_EndEvent_158">
333         <di:waypoint x="1515" y="442" />
334         <di:waypoint x="1562" y="443" />
335         <bpmndi:BPMNLabel>
336           <dc:Bounds x="1548" y="443" width="6" height="6" />
337         </bpmndi:BPMNLabel>
338       </bpmndi:BPMNEdge>
339       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_237" bpmnElement="ScriptTask_7">
340         <dc:Bounds x="360" y="146" width="97" height="83" />
341       </bpmndi:BPMNShape>
342       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_56" targetElement="_BPMNShape_ScriptTask_237">
343         <di:waypoint x="304" y="188" />
344         <di:waypoint x="344" y="188" />
345         <di:waypoint x="344" y="187" />
346         <di:waypoint x="360" y="187" />
347         <bpmndi:BPMNLabel>
348           <dc:Bounds x="317" y="188" width="6" height="6" />
349         </bpmndi:BPMNLabel>
350       </bpmndi:BPMNEdge>
351       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_237" targetElement="_BPMNShape_ScriptTask_79">
352         <di:waypoint x="456" y="187" />
353         <di:waypoint x="474" y="187" />
354         <di:waypoint x="474" y="188" />
355         <di:waypoint x="492" y="188" />
356       </bpmndi:BPMNEdge>
357       <bpmndi:BPMNShape id="_BPMNShape_SubProcess_24" bpmnElement="SubProcess_1" isExpanded="true">
358         <dc:Bounds x="156" y="516" width="382" height="181" />
359       </bpmndi:BPMNShape>
360       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_66" bpmnElement="StartEvent_2">
361         <dc:Bounds x="204" y="589" width="36" height="36" />
362         <bpmndi:BPMNLabel>
363           <dc:Bounds x="222" y="630" width="0" height="0" />
364         </bpmndi:BPMNLabel>
365       </bpmndi:BPMNShape>
366       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_266" bpmnElement="ScriptTask_8">
367         <dc:Bounds x="302" y="565" width="97" height="83" />
368       </bpmndi:BPMNShape>
369       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_StartEvent_66" targetElement="_BPMNShape_ScriptTask_266">
370         <di:waypoint x="240" y="607" />
371         <di:waypoint x="302" y="606" />
372         <bpmndi:BPMNLabel>
373           <dc:Bounds x="280" y="630" width="6" height="6" />
374         </bpmndi:BPMNLabel>
375       </bpmndi:BPMNEdge>
376       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_107" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">
377         <dc:Bounds x="1092" y="418" width="50" height="50" />
378         <bpmndi:BPMNLabel>
379           <dc:Bounds x="1093" y="381" width="54" height="24" />
380         </bpmndi:BPMNLabel>
381       </bpmndi:BPMNShape>
382       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_215" bpmnElement="EndEvent_3">
383         <dc:Bounds x="1100" y="516" width="36" height="36" />
384         <bpmndi:BPMNLabel>
385           <dc:Bounds x="1118" y="557" width="0" height="0" />
386         </bpmndi:BPMNLabel>
387       </bpmndi:BPMNShape>
388       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ExclusiveGateway_107" targetElement="_BPMNShape_EndEvent_215">
389         <di:waypoint x="1117" y="468" />
390         <di:waypoint x="1118" y="516" />
391         <bpmndi:BPMNLabel>
392           <dc:Bounds x="1122" y="468" width="18" height="12" />
393         </bpmndi:BPMNLabel>
394       </bpmndi:BPMNEdge>
395       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_111" bpmnElement="ExclusiveGateway_7" isMarkerVisible="true">
396         <dc:Bounds x="1204" y="418" width="50" height="50" />
397         <bpmndi:BPMNLabel>
398           <dc:Bounds x="1192" y="472" width="86" height="12" />
399         </bpmndi:BPMNLabel>
400       </bpmndi:BPMNShape>
401       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_26" bpmnElement="SequenceFlow_30" sourceElement="_BPMNShape_ExclusiveGateway_107" targetElement="_BPMNShape_ExclusiveGateway_111">
402         <di:waypoint x="1142" y="443" />
403         <di:waypoint x="1204" y="443" />
404         <bpmndi:BPMNLabel>
405           <dc:Bounds x="1156" y="443" width="12" height="12" />
406         </bpmndi:BPMNLabel>
407       </bpmndi:BPMNEdge>
408       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_39" bpmnElement="SequenceFlow_39" sourceElement="_BPMNShape_ExclusiveGateway_111" targetElement="_BPMNShape_EndEvent_219">
409         <di:waypoint x="1254" y="443" />
410         <di:waypoint x="1308" y="444" />
411         <bpmndi:BPMNLabel>
412           <dc:Bounds x="1276" y="418" width="7" height="12" />
413         </bpmndi:BPMNLabel>
414       </bpmndi:BPMNEdge>
415       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_41" bpmnElement="SequenceFlow_41" sourceElement="_BPMNShape_IntermediateCatchEvent_20" targetElement="_BPMNShape_ScriptTask_58">
416         <di:waypoint x="907" y="444" />
417         <di:waypoint x="948" y="444" />
418         <bpmndi:BPMNLabel>
419           <dc:Bounds x="763" y="475" width="0" height="0" />
420         </bpmndi:BPMNLabel>
421       </bpmndi:BPMNEdge>
422       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_219" bpmnElement="EndEvent_12">
423         <dc:Bounds x="1308" y="426" width="36" height="36" />
424         <bpmndi:BPMNLabel>
425           <dc:Bounds x="1326" y="467" width="0" height="0" />
426         </bpmndi:BPMNLabel>
427       </bpmndi:BPMNShape>
428       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_42" bpmnElement="SequenceFlow_42" sourceElement="_BPMNShape_ScriptTask_58" targetElement="_BPMNShape_ExclusiveGateway_107">
429         <di:waypoint x="1048" y="444" />
430         <di:waypoint x="1070" y="444" />
431         <di:waypoint x="1070" y="443" />
432         <di:waypoint x="1092" y="443" />
433         <bpmndi:BPMNLabel>
434           <dc:Bounds x="905" y="462" width="0" height="0" />
435         </bpmndi:BPMNLabel>
436       </bpmndi:BPMNEdge>
437       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_43" bpmnElement="SequenceFlow_43" sourceElement="_BPMNShape_ExclusiveGateway_111" targetElement="_BPMNShape_IntermediateCatchEvent_20">
438         <di:waypoint x="1229" y="418" />
439         <di:waypoint x="1229" y="351" />
440         <di:waypoint x="889" y="351" />
441         <di:waypoint x="889" y="426" />
442         <bpmndi:BPMNLabel>
443           <dc:Bounds x="1240" y="360" width="8" height="12" />
444         </bpmndi:BPMNLabel>
445       </bpmndi:BPMNEdge>
446       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_44" bpmnElement="SequenceFlow_44" sourceElement="_BPMNShape_SubProcess_14" targetElement="_BPMNShape_ScriptTask_236">
447         <di:waypoint x="1372" y="443" />
448         <di:waypoint x="1395" y="443" />
449         <di:waypoint x="1395" y="442" />
450         <di:waypoint x="1419" y="442" />
451         <bpmndi:BPMNLabel>
452           <dc:Bounds x="1404" y="462" width="0" height="0" />
453         </bpmndi:BPMNLabel>
454       </bpmndi:BPMNEdge>
455       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_220" bpmnElement="EndEvent_2">
456         <dc:Bounds x="444" y="589" width="36" height="36" />
457         <bpmndi:BPMNLabel>
458           <dc:Bounds x="462" y="630" width="0" height="0" />
459         </bpmndi:BPMNLabel>
460       </bpmndi:BPMNShape>
461       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ScriptTask_266" targetElement="_BPMNShape_EndEvent_220">
462         <di:waypoint x="398" y="606" />
463         <di:waypoint x="444" y="607" />
464         <bpmndi:BPMNLabel>
465           <dc:Bounds x="412" y="606" width="6" height="6" />
466         </bpmndi:BPMNLabel>
467       </bpmndi:BPMNEdge>
468     </bpmndi:BPMNPlane>
469   </bpmndi:BPMNDiagram>
470 </bpmn2:definitions>