replace all fixed wiremock ports
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / SDNCAdapterRestV2.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="SDNCAdapterRestV2" name="SDNCAdapterRestV2" isExecutable="true">
4     <bpmn2:documentation>This version of SDNCAdapterRest allows for interim notifications to be sent for any non-final response received from SDNC.</bpmn2:documentation>
5     <bpmn2:scriptTask id="ScriptTask_2" name="Log Response" scriptFormat="groovy">
6       <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
7       <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
8       <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
9 def sdncAdapterRestV2 = new SDNCAdapterRestV2()
10 def statusCode = execution.getVariable('SDNCREST_sdncAdapterStatusCode')
11 String response = String.valueOf(execution.getVariable('SDNCREST_sdncAdapterResponse'))
12 def isDebugLogEnabled = execution.getVariable('isDebugLogEnabled')
13 def processKey = sdncAdapterRestV2.getProcessKey(execution)
14 sdncAdapterRestV2.getLogger().debug("{} received response from SDNCAdapter: statusCode= {} response={}", processKey, statusCode, (response.isEmpty() ? "" : "\n" + response))</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 sdncAdapterRestV2 = new SDNCAdapterRestV2()
31 sdncAdapterRestV2.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 sdncAdapterRestV2 = new SDNCAdapterRestV2()
62 sdncAdapterRestV2.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 sdncAdapterRestV2 = new SDNCAdapterRestV2()
70 sdncAdapterRestV2.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 sdncAdapterRestV2 = new SDNCAdapterRestV2()
95 sdncAdapterRestV2.setSuccessIndicator(execution, true)
96 execution.setVariable('WorkflowResponse', sdncAdapterRestV2.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 sdncAdapterRestV2 = new SDNCAdapterRestV2()
117 sdncAdapterRestV2.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="ExclusiveGateway_1611bnb" />
133       <bpmn2:exclusiveGateway id="ExclusiveGateway_3" name="Callback&#10;&#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_0u48ihb</bpmn2:incoming>
145         <bpmn2:incoming>SequenceFlow_0vluoaq</bpmn2:incoming>
146         <bpmn2:outgoing>SequenceFlow_41</bpmn2:outgoing>
147         <bpmn2:messageEventDefinition id="MessageEventDefinition_1" messageRef="Message_1" />
148       </bpmn2:intermediateCatchEvent>
149       <bpmn2:sequenceFlow id="SequenceFlow_41" name="" sourceRef="IntermediateCatchEvent_1" targetRef="ScriptTask_6" />
150       <bpmn2:endEvent id="EndEvent_12">
151         <bpmn2:incoming>SequenceFlow_39</bpmn2:incoming>
152       </bpmn2:endEvent>
153       <bpmn2:endEvent id="EndEvent_3">
154         <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
155         <bpmn2:errorEventDefinition id="_ErrorEventDefinition_90" errorRef="Error_1" />
156       </bpmn2:endEvent>
157       <bpmn2:exclusiveGateway id="ExclusiveGateway_1611bnb" name="Do Interim Notification?" default="SequenceFlow_0u48ihb">
158         <bpmn2:incoming>SequenceFlow_43</bpmn2:incoming>
159         <bpmn2:outgoing>SequenceFlow_0u48ihb</bpmn2:outgoing>
160         <bpmn2:outgoing>SequenceFlow_1g8pswz</bpmn2:outgoing>
161       </bpmn2:exclusiveGateway>
162       <bpmn2:scriptTask id="Task_0pe8nq9" name="Prepare Interim Notification" scriptFormat="groovy">
163         <bpmn2:incoming>SequenceFlow_1g8pswz</bpmn2:incoming>
164         <bpmn2:outgoing>SequenceFlow_0my3p6y</bpmn2:outgoing>
165         <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
166 def sdncAdapterRestV2 = new SDNCAdapterRestV2()
167 sdncAdapterRestV2.prepareInterimNotification(execution)</bpmn2:script>
168       </bpmn2:scriptTask>
169       <bpmn2:sequenceFlow id="SequenceFlow_0u48ihb" name="N" sourceRef="ExclusiveGateway_1611bnb" targetRef="IntermediateCatchEvent_1" />
170       <bpmn2:sequenceFlow id="SequenceFlow_1g8pswz" name="Y" sourceRef="ExclusiveGateway_1611bnb" targetRef="Task_0pe8nq9">
171         <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable("SDNCREST_doInterimNotification") != null &amp;&amp; execution.getVariable("SDNCREST_doInterimNotification") == true}</bpmn2:conditionExpression>
172       </bpmn2:sequenceFlow>
173       <bpmn2:sequenceFlow id="SequenceFlow_0my3p6y" sourceRef="Task_0pe8nq9" targetRef="Task_1ashvem" />
174       <bpmn2:sequenceFlow id="SequenceFlow_0vluoaq" sourceRef="Task_1ashvem" targetRef="IntermediateCatchEvent_1" />
175       <bpmn2:callActivity id="Task_1ashvem" name="Call Notification Service" calledElement="${UrnPropertiesReader.getVariable(&#34;mso.workflow.notification.name&#34;, execution)}">
176         <bpmn2:extensionElements>
177           <camunda:in target="all" variables="all" />
178           <camunda:out variables="all" />
179         </bpmn2:extensionElements>
180         <bpmn2:incoming>SequenceFlow_0my3p6y</bpmn2:incoming>
181         <bpmn2:outgoing>SequenceFlow_0vluoaq</bpmn2:outgoing>
182       </bpmn2:callActivity>
183     </bpmn2:subProcess>
184     <bpmn2:sequenceFlow id="SequenceFlow_44" name="" sourceRef="SubProcess_2" targetRef="ScriptTask_setSuccess" />
185     <bpmn2:subProcess id="SubProcess_1" name="Error Handling Sub Process" triggeredByEvent="true">
186       <bpmn2:startEvent id="StartEvent_2">
187         <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
188         <bpmn2:errorEventDefinition id="_ErrorEventDefinition_89" />
189       </bpmn2:startEvent>
190       <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="StartEvent_2" targetRef="ScriptTask_8" />
191       <bpmn2:scriptTask id="ScriptTask_8" name="Process Error" scriptFormat="groovy">
192         <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
193         <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
194         <bpmn2:script>import org.onap.so.bpmn.common.scripts.*
195 def exUtil = new ExceptionUtil()
196 exUtil.processSubflowsBPMNException(execution)
197 </bpmn2:script>
198       </bpmn2:scriptTask>
199       <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="ScriptTask_8" targetRef="EndEvent_2" />
200       <bpmn2:endEvent id="EndEvent_2">
201         <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
202       </bpmn2:endEvent>
203     </bpmn2:subProcess>
204   </bpmn2:process>
205   <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
206   <bpmn2:message id="Message_1" name="WorkflowMessage" />
207   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
208     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="SDNCAdapterRestV2">
209       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_56" bpmnElement="ScriptTask_1">
210         <dc:Bounds x="204" y="148" width="100" height="80" />
211       </bpmndi:BPMNShape>
212       <bpmndi:BPMNShape id="_BPMNShape_SubProcess_14" bpmnElement="SubProcess_2" isExpanded="true">
213         <dc:Bounds x="745" y="236" width="633" height="440" />
214       </bpmndi:BPMNShape>
215       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_58" bpmnElement="ScriptTask_6">
216         <dc:Bounds x="949" y="494" width="100" height="80" />
217       </bpmndi:BPMNShape>
218       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_59" bpmnElement="ScriptTask_5">
219         <dc:Bounds x="1418" y="726" width="100" height="80" />
220       </bpmndi:BPMNShape>
221       <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_24" bpmnElement="BoundaryEvent_1">
222         <dc:Bounds x="1305" y="658" width="36" height="36" />
223         <bpmndi:BPMNLabel>
224           <dc:Bounds x="1346" y="688" width="39" height="12" />
225         </bpmndi:BPMNLabel>
226       </bpmndi:BPMNShape>
227       <bpmndi:BPMNShape id="_BPMNShape_IntermediateCatchEvent_20" bpmnElement="IntermediateCatchEvent_1">
228         <dc:Bounds x="874" y="516" width="36" height="36" />
229         <bpmndi:BPMNLabel>
230           <dc:Bounds x="862" y="558" width="60" height="12" />
231         </bpmndi:BPMNLabel>
232       </bpmndi:BPMNShape>
233       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_78" bpmnElement="ScriptTask_4">
234         <dc:Bounds x="744" y="148" width="97" height="80" />
235       </bpmndi:BPMNShape>
236       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_79" bpmnElement="ScriptTask_2">
237         <dc:Bounds x="492" y="148" width="100" height="80" />
238       </bpmndi:BPMNShape>
239       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_54" bpmnElement="StartEvent_1">
240         <dc:Bounds x="130" y="170" width="36" height="36" />
241         <bpmndi:BPMNLabel>
242           <dc:Bounds x="131" y="211" width="34" height="22" />
243         </bpmndi:BPMNLabel>
244       </bpmndi:BPMNShape>
245       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_168" bpmnElement="ScriptTask_3">
246         <dc:Bounds x="744" y="24" width="97" height="80" />
247       </bpmndi:BPMNShape>
248       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_StartEvent_54" targetElement="_BPMNShape_ScriptTask_56">
249         <di:waypoint x="166" y="188" />
250         <di:waypoint x="204" y="188" />
251         <bpmndi:BPMNLabel>
252           <dc:Bounds x="176" y="188" width="6" height="6" />
253         </bpmndi:BPMNLabel>
254       </bpmndi:BPMNEdge>
255       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_105" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
256         <dc:Bounds x="624" y="162" width="50" height="50" />
257         <bpmndi:BPMNLabel>
258           <dc:Bounds x="649" y="217" width="0" height="0" />
259         </bpmndi:BPMNLabel>
260       </bpmndi:BPMNShape>
261       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_ScriptTask_79" targetElement="_BPMNShape_ExclusiveGateway_105">
262         <di:waypoint x="592" y="188" />
263         <di:waypoint x="624" y="187" />
264         <bpmndi:BPMNLabel>
265           <dc:Bounds x="611" y="187" width="6" height="6" />
266         </bpmndi:BPMNLabel>
267       </bpmndi:BPMNEdge>
268       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_17" sourceElement="_BPMNShape_ExclusiveGateway_105" targetElement="_BPMNShape_ScriptTask_168">
269         <di:waypoint x="649" y="162" />
270         <di:waypoint x="649" y="64" />
271         <di:waypoint x="744" y="64" />
272         <bpmndi:BPMNLabel>
273           <dc:Bounds x="688" y="64" width="27" height="22" />
274         </bpmndi:BPMNLabel>
275       </bpmndi:BPMNEdge>
276       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ExclusiveGateway_105" targetElement="_BPMNShape_ScriptTask_78">
277         <di:waypoint x="674" y="187" />
278         <di:waypoint x="709" y="187" />
279         <di:waypoint x="709" y="188" />
280         <di:waypoint x="744" y="188" />
281         <bpmndi:BPMNLabel>
282           <dc:Bounds x="684" y="188" width="35" height="22" />
283         </bpmndi:BPMNLabel>
284       </bpmndi:BPMNEdge>
285       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_25" bpmnElement="SequenceFlow_24" sourceElement="_BPMNShape_ExclusiveGateway_105" targetElement="_BPMNShape_SubProcess_14">
286         <di:waypoint x="649" y="212" />
287         <di:waypoint x="649" y="457" />
288         <di:waypoint x="745" y="457" />
289         <bpmndi:BPMNLabel>
290           <dc:Bounds x="691" y="457" width="18" height="12" />
291         </bpmndi:BPMNLabel>
292       </bpmndi:BPMNEdge>
293       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_55" bpmnElement="StartEvent_3">
294         <dc:Bounds x="777" y="516" width="36" height="36" />
295         <bpmndi:BPMNLabel>
296           <dc:Bounds x="795" y="557" width="0" height="0" />
297         </bpmndi:BPMNLabel>
298       </bpmndi:BPMNShape>
299       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_27" bpmnElement="SequenceFlow_25" sourceElement="_BPMNShape_StartEvent_55" targetElement="_BPMNShape_IntermediateCatchEvent_20">
300         <di:waypoint x="813" y="534" />
301         <di:waypoint x="842" y="534" />
302         <di:waypoint x="842" y="534" />
303         <di:waypoint x="874" y="534" />
304         <bpmndi:BPMNLabel>
305           <dc:Bounds x="857" y="534" width="0" height="0" />
306         </bpmndi:BPMNLabel>
307       </bpmndi:BPMNEdge>
308       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_29" bpmnElement="SequenceFlow_27" sourceElement="_BPMNShape_BoundaryEvent_24" targetElement="_BPMNShape_ScriptTask_59">
309         <di:waypoint x="1323" y="694" />
310         <di:waypoint x="1323" y="766" />
311         <di:waypoint x="1418" y="766" />
312         <bpmndi:BPMNLabel>
313           <dc:Bounds x="1338" y="730" width="0" height="0" />
314         </bpmndi:BPMNLabel>
315       </bpmndi:BPMNEdge>
316       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_158" bpmnElement="EndEvent_6">
317         <dc:Bounds x="1603" y="440" width="36" height="36" />
318         <bpmndi:BPMNLabel>
319           <dc:Bounds x="1612" y="481" width="19" height="12" />
320         </bpmndi:BPMNLabel>
321       </bpmndi:BPMNShape>
322       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_8">
323         <dc:Bounds x="1573" y="748" width="36" height="36" />
324         <bpmndi:BPMNLabel>
325           <dc:Bounds x="1591" y="789" width="0" height="0" />
326         </bpmndi:BPMNLabel>
327       </bpmndi:BPMNShape>
328       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_36" bpmnElement="SequenceFlow_34" sourceElement="_BPMNShape_ScriptTask_59" targetElement="_BPMNShape_EndEvent_160">
329         <di:waypoint x="1518" y="766" />
330         <di:waypoint x="1540" y="766" />
331         <di:waypoint x="1540" y="766" />
332         <di:waypoint x="1573" y="766" />
333         <bpmndi:BPMNLabel>
334           <dc:Bounds x="1555" y="766" width="0" height="0" />
335         </bpmndi:BPMNLabel>
336       </bpmndi:BPMNEdge>
337       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_161" bpmnElement="EndEvent_9">
338         <dc:Bounds x="891" y="46" width="36" height="36" />
339         <bpmndi:BPMNLabel>
340           <dc:Bounds x="909" y="87" width="0" height="0" />
341         </bpmndi:BPMNLabel>
342       </bpmndi:BPMNShape>
343       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_37" bpmnElement="SequenceFlow_35" sourceElement="_BPMNShape_ScriptTask_168" targetElement="_BPMNShape_EndEvent_161">
344         <di:waypoint x="840" y="64" />
345         <di:waypoint x="891" y="64" />
346         <bpmndi:BPMNLabel>
347           <dc:Bounds x="865" y="64" width="6" height="6" />
348         </bpmndi:BPMNLabel>
349       </bpmndi:BPMNEdge>
350       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_162" bpmnElement="EndEvent_10">
351         <dc:Bounds x="892" y="170" width="36" height="36" />
352         <bpmndi:BPMNLabel>
353           <dc:Bounds x="910" y="211" width="0" height="0" />
354         </bpmndi:BPMNLabel>
355       </bpmndi:BPMNShape>
356       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_36" sourceElement="_BPMNShape_ScriptTask_78" targetElement="_BPMNShape_EndEvent_162">
357         <di:waypoint x="840" y="188" />
358         <di:waypoint x="892" y="188" />
359       </bpmndi:BPMNEdge>
360       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_236" bpmnElement="ScriptTask_setSuccess">
361         <dc:Bounds x="1455" y="416" width="97" height="83" />
362       </bpmndi:BPMNShape>
363       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_ScriptTask_236" targetElement="_BPMNShape_EndEvent_158">
364         <di:waypoint x="1552" y="457" />
365         <di:waypoint x="1603" y="458" />
366         <bpmndi:BPMNLabel>
367           <dc:Bounds x="1578" y="442.5" width="0" height="0" />
368         </bpmndi:BPMNLabel>
369       </bpmndi:BPMNEdge>
370       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_237" bpmnElement="ScriptTask_7">
371         <dc:Bounds x="360" y="146" width="97" height="83" />
372       </bpmndi:BPMNShape>
373       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_56" targetElement="_BPMNShape_ScriptTask_237">
374         <di:waypoint x="304" y="188" />
375         <di:waypoint x="344" y="188" />
376         <di:waypoint x="344" y="187" />
377         <di:waypoint x="360" y="187" />
378         <bpmndi:BPMNLabel>
379           <dc:Bounds x="317" y="188" width="6" height="6" />
380         </bpmndi:BPMNLabel>
381       </bpmndi:BPMNEdge>
382       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_237" targetElement="_BPMNShape_ScriptTask_79">
383         <di:waypoint x="456" y="187" />
384         <di:waypoint x="474" y="187" />
385         <di:waypoint x="474" y="188" />
386         <di:waypoint x="492" y="188" />
387       </bpmndi:BPMNEdge>
388       <bpmndi:BPMNShape id="_BPMNShape_SubProcess_24" bpmnElement="SubProcess_1" isExpanded="true">
389         <dc:Bounds x="156" y="516" width="382" height="181" />
390       </bpmndi:BPMNShape>
391       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_66" bpmnElement="StartEvent_2">
392         <dc:Bounds x="204" y="589" width="36" height="36" />
393         <bpmndi:BPMNLabel>
394           <dc:Bounds x="222" y="630" width="0" height="0" />
395         </bpmndi:BPMNLabel>
396       </bpmndi:BPMNShape>
397       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_266" bpmnElement="ScriptTask_8">
398         <dc:Bounds x="302" y="565" width="97" height="83" />
399       </bpmndi:BPMNShape>
400       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_StartEvent_66" targetElement="_BPMNShape_ScriptTask_266">
401         <di:waypoint x="240" y="607" />
402         <di:waypoint x="302" y="606" />
403         <bpmndi:BPMNLabel>
404           <dc:Bounds x="280" y="630" width="6" height="6" />
405         </bpmndi:BPMNLabel>
406       </bpmndi:BPMNEdge>
407       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_107" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">
408         <dc:Bounds x="1105" y="509" width="50" height="50" />
409         <bpmndi:BPMNLabel>
410           <dc:Bounds x="1068" y="544" width="54" height="24" />
411         </bpmndi:BPMNLabel>
412       </bpmndi:BPMNShape>
413       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_215" bpmnElement="EndEvent_3">
414         <dc:Bounds x="1112" y="619" width="36" height="36" />
415         <bpmndi:BPMNLabel>
416           <dc:Bounds x="1130" y="660" width="0" height="0" />
417         </bpmndi:BPMNLabel>
418       </bpmndi:BPMNShape>
419       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ExclusiveGateway_107" targetElement="_BPMNShape_EndEvent_215">
420         <di:waypoint x="1129" y="558" />
421         <di:waypoint x="1130" y="619" />
422         <bpmndi:BPMNLabel>
423           <dc:Bounds x="1135" y="575.0654163104991" width="18" height="12" />
424         </bpmndi:BPMNLabel>
425       </bpmndi:BPMNEdge>
426       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_111" bpmnElement="ExclusiveGateway_7" isMarkerVisible="true">
427         <dc:Bounds x="1205" y="508" width="50" height="50" />
428         <bpmndi:BPMNLabel>
429           <dc:Bounds x="1193" y="562" width="86" height="12" />
430         </bpmndi:BPMNLabel>
431       </bpmndi:BPMNShape>
432       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_26" bpmnElement="SequenceFlow_30" sourceElement="_BPMNShape_ExclusiveGateway_107" targetElement="_BPMNShape_ExclusiveGateway_111">
433         <di:waypoint x="1155" y="534" />
434         <di:waypoint x="1205" y="533" />
435         <bpmndi:BPMNLabel>
436           <dc:Bounds x="1166" y="533.6762115651724" width="12" height="12" />
437         </bpmndi:BPMNLabel>
438       </bpmndi:BPMNEdge>
439       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_39" bpmnElement="SequenceFlow_39" sourceElement="_BPMNShape_ExclusiveGateway_111" targetElement="_BPMNShape_EndEvent_219">
440         <di:waypoint x="1255" y="533" />
441         <di:waypoint x="1309" y="534" />
442         <bpmndi:BPMNLabel>
443           <dc:Bounds x="1277" y="508" width="7" height="12" />
444         </bpmndi:BPMNLabel>
445       </bpmndi:BPMNEdge>
446       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_41" bpmnElement="SequenceFlow_41" sourceElement="_BPMNShape_IntermediateCatchEvent_20" targetElement="_BPMNShape_ScriptTask_58">
447         <di:waypoint x="910" y="534" />
448         <di:waypoint x="949" y="534" />
449         <bpmndi:BPMNLabel>
450           <dc:Bounds x="930" y="519" width="0" height="0" />
451         </bpmndi:BPMNLabel>
452       </bpmndi:BPMNEdge>
453       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_219" bpmnElement="EndEvent_12">
454         <dc:Bounds x="1309" y="516" width="36" height="36" />
455         <bpmndi:BPMNLabel>
456           <dc:Bounds x="1327" y="557" width="0" height="0" />
457         </bpmndi:BPMNLabel>
458       </bpmndi:BPMNShape>
459       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_42" bpmnElement="SequenceFlow_42" sourceElement="_BPMNShape_ScriptTask_58" targetElement="_BPMNShape_ExclusiveGateway_107">
460         <di:waypoint x="1049" y="534" />
461         <di:waypoint x="1105" y="534" />
462         <bpmndi:BPMNLabel>
463           <dc:Bounds x="1077" y="519" width="0" height="0" />
464         </bpmndi:BPMNLabel>
465       </bpmndi:BPMNEdge>
466       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_43" bpmnElement="SequenceFlow_43" sourceElement="_BPMNShape_ExclusiveGateway_111" targetElement="_BPMNShape_IntermediateCatchEvent_20">
467         <di:waypoint x="1230" y="508" />
468         <di:waypoint x="1230" y="444" />
469         <bpmndi:BPMNLabel>
470           <dc:Bounds x="1236" y="478.9261883440748" width="8" height="12" />
471         </bpmndi:BPMNLabel>
472       </bpmndi:BPMNEdge>
473       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_44" bpmnElement="SequenceFlow_44" sourceElement="_BPMNShape_SubProcess_14" targetElement="_BPMNShape_ScriptTask_236">
474         <di:waypoint x="1378" y="457" />
475         <di:waypoint x="1455" y="457" />
476         <bpmndi:BPMNLabel>
477           <dc:Bounds x="1417" y="442" width="0" height="0" />
478         </bpmndi:BPMNLabel>
479       </bpmndi:BPMNEdge>
480       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_220" bpmnElement="EndEvent_2">
481         <dc:Bounds x="444" y="589" width="36" height="36" />
482         <bpmndi:BPMNLabel>
483           <dc:Bounds x="462" y="630" width="0" height="0" />
484         </bpmndi:BPMNLabel>
485       </bpmndi:BPMNShape>
486       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ScriptTask_266" targetElement="_BPMNShape_EndEvent_220">
487         <di:waypoint x="398" y="606" />
488         <di:waypoint x="444" y="607" />
489         <bpmndi:BPMNLabel>
490           <dc:Bounds x="412" y="606" width="6" height="6" />
491         </bpmndi:BPMNLabel>
492       </bpmndi:BPMNEdge>
493       <bpmndi:BPMNShape id="ExclusiveGateway_1611bnb_di" bpmnElement="ExclusiveGateway_1611bnb" isMarkerVisible="true">
494         <dc:Bounds x="1205" y="394" width="50" height="50" />
495         <bpmndi:BPMNLabel>
496           <dc:Bounds x="1258" y="407" width="59" height="24" />
497         </bpmndi:BPMNLabel>
498       </bpmndi:BPMNShape>
499       <bpmndi:BPMNShape id="ScriptTask_0czuzgs_di" bpmnElement="Task_0pe8nq9">
500         <dc:Bounds x="1092" y="293" width="100" height="80" />
501       </bpmndi:BPMNShape>
502       <bpmndi:BPMNEdge id="SequenceFlow_0u48ihb_di" bpmnElement="SequenceFlow_0u48ihb">
503         <di:waypoint x="1205" y="419" />
504         <di:waypoint x="892" y="419" />
505         <di:waypoint x="892" y="516" />
506         <bpmndi:BPMNLabel>
507           <dc:Bounds x="1174" y="402" width="8" height="12" />
508         </bpmndi:BPMNLabel>
509       </bpmndi:BPMNEdge>
510       <bpmndi:BPMNEdge id="SequenceFlow_1g8pswz_di" bpmnElement="SequenceFlow_1g8pswz">
511         <di:waypoint x="1230" y="394" />
512         <di:waypoint x="1230" y="333" />
513         <di:waypoint x="1192" y="333" />
514         <bpmndi:BPMNLabel>
515           <dc:Bounds x="1239" y="364.76190476190476" width="7" height="12" />
516         </bpmndi:BPMNLabel>
517       </bpmndi:BPMNEdge>
518       <bpmndi:BPMNEdge id="SequenceFlow_0my3p6y_di" bpmnElement="SequenceFlow_0my3p6y">
519         <di:waypoint x="1092" y="333" />
520         <di:waypoint x="1039" y="333" />
521         <bpmndi:BPMNLabel>
522           <dc:Bounds x="1066" y="318" width="0" height="0" />
523         </bpmndi:BPMNLabel>
524       </bpmndi:BPMNEdge>
525       <bpmndi:BPMNEdge id="SequenceFlow_0vluoaq_di" bpmnElement="SequenceFlow_0vluoaq">
526         <di:waypoint x="939" y="333" />
527         <di:waypoint x="892" y="333" />
528         <di:waypoint x="892" y="516" />
529         <bpmndi:BPMNLabel>
530           <dc:Bounds x="916" y="318" width="0" height="0" />
531         </bpmndi:BPMNLabel>
532       </bpmndi:BPMNEdge>
533       <bpmndi:BPMNShape id="CallActivity_1rlfstt_di" bpmnElement="Task_1ashvem">
534         <dc:Bounds x="939" y="293" width="100" height="80" />
535       </bpmndi:BPMNShape>
536     </bpmndi:BPMNPlane>
537   </bpmndi:BPMNDiagram>
538 </bpmn2:definitions>