Fix bugs found in TN Slicing integration involving OOF
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / subprocess / DoAllocateTransportNSSI.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: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" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1wio50w" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.12.0">
3   <bpmn:process id="DoAllocateTransportNSSI" name="DoAllocateTransportNSSI" isExecutable="true">
4     <bpmn:startEvent id="StartEvent_1nbljfd" name="Create Allocate TN NSSMF Work Flow">
5       <bpmn:outgoing>SequenceFlow_03s744c</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_0vilb24" name="OOF TN NSSI Selection">
8       <bpmn:outgoing>Flow_071hnt4</bpmn:outgoing>
9       <bpmn:linkEventDefinition id="LinkEventDefinition_197u5pe" name="OofTnNssiSelect" />
10     </bpmn:intermediateCatchEvent>
11     <bpmn:scriptTask id="ScriptTask_1tc44ge" name="PreProcess Incoming Request" scriptFormat="groovy">
12       <bpmn:incoming>SequenceFlow_03s744c</bpmn:incoming>
13       <bpmn:outgoing>SequenceFlow_07e12rt</bpmn:outgoing>
14       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
15 def css= new TnAllocateNssi()
16 css.preProcessRequest(execution)</bpmn:script>
17     </bpmn:scriptTask>
18     <bpmn:scriptTask id="ScriptTask_1jgtb0y" name="Process OOF Selection" scriptFormat="groovy">
19       <bpmn:incoming>SequenceFlow_1cv0wop</bpmn:incoming>
20       <bpmn:outgoing>SequenceFlow_197cm2e</bpmn:outgoing>
21       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
22 def css = new TnAllocateNssi()
23 css.processOofSelection(execution)</bpmn:script>
24     </bpmn:scriptTask>
25     <bpmn:exclusiveGateway id="ExclusiveGateway_0elbczl" name="Use Existing TN NSSI?">
26       <bpmn:incoming>SequenceFlow_197cm2e</bpmn:incoming>
27       <bpmn:outgoing>SequenceFlow_12t5exy</bpmn:outgoing>
28       <bpmn:outgoing>SequenceFlow_038lb9m</bpmn:outgoing>
29     </bpmn:exclusiveGateway>
30     <bpmn:scriptTask id="ScriptTask_0l3d1ai" name="Process Decomposition" scriptFormat="groovy">
31       <bpmn:incoming>SequenceFlow_1t19ips</bpmn:incoming>
32       <bpmn:outgoing>SequenceFlow_0jrclmc</bpmn:outgoing>
33       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
34 def runScript = new TnAllocateNssi()
35 runScript.processDecomposition(execution)</bpmn:script>
36     </bpmn:scriptTask>
37     <bpmn:exclusiveGateway id="ExclusiveGateway_18eld2o" name="Is Allocation Successful?" default="SequenceFlow_1c6ka9h">
38       <bpmn:incoming>SequenceFlow_0mlrlbv</bpmn:incoming>
39       <bpmn:outgoing>SequenceFlow_1c6ka9h</bpmn:outgoing>
40       <bpmn:outgoing>SequenceFlow_0n4xku8</bpmn:outgoing>
41     </bpmn:exclusiveGateway>
42     <bpmn:endEvent id="EndEvent_0x406rw">
43       <bpmn:incoming>SequenceFlow_1c6ka9h</bpmn:incoming>
44       <bpmn:errorEventDefinition id="ErrorEventDefinition_0mlneuw" errorRef="Error_03akl5v" />
45     </bpmn:endEvent>
46     <bpmn:subProcess id="SubProcess_1yv9i68" name="Sub-process for FalloutHandler and Rollback" triggeredByEvent="true">
47       <bpmn:startEvent id="StartEvent_1omdx56">
48         <bpmn:outgoing>SequenceFlow_1w67v6s</bpmn:outgoing>
49         <bpmn:errorEventDefinition id="ErrorEventDefinition_06xcioh" />
50       </bpmn:startEvent>
51       <bpmn:endEvent id="EndEvent_1jx3026">
52         <bpmn:incoming>SequenceFlow_08mlzwz</bpmn:incoming>
53       </bpmn:endEvent>
54       <bpmn:scriptTask id="ScriptTask_1swzdpw" name="Handle Unexpected Error" scriptFormat="groovy">
55         <bpmn:incoming>SequenceFlow_1w67v6s</bpmn:incoming>
56         <bpmn:outgoing>SequenceFlow_08mlzwz</bpmn:outgoing>
57         <bpmn:script>import org.onap.so.bpmn.common.scripts.*
58 ExceptionUtil ex = new ExceptionUtil()
59 ex.processJavaException(execution)</bpmn:script>
60       </bpmn:scriptTask>
61       <bpmn:sequenceFlow id="SequenceFlow_1w67v6s" sourceRef="StartEvent_1omdx56" targetRef="ScriptTask_1swzdpw" />
62       <bpmn:sequenceFlow id="SequenceFlow_08mlzwz" sourceRef="ScriptTask_1swzdpw" targetRef="EndEvent_1jx3026" />
63     </bpmn:subProcess>
64     <bpmn:endEvent id="EndEvent_05h01gx" name="End">
65       <bpmn:incoming>Flow_06rrcwf</bpmn:incoming>
66     </bpmn:endEvent>
67     <bpmn:scriptTask id="ScriptTask_1xxag1o" name="Prepare Init Service Operation Status" scriptFormat="groovy">
68       <bpmn:incoming>SequenceFlow_07e12rt</bpmn:incoming>
69       <bpmn:outgoing>SequenceFlow_0t094g7</bpmn:outgoing>
70       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
71 def runScript = new TnAllocateNssi()
72 runScript.prepareUpdateJobStatus(execution,"INPROGRESS","10","Allocate TN NSSI started")</bpmn:script>
73     </bpmn:scriptTask>
74     <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_1ex8ke9" name="Goto OOF TN NSSI Selection">
75       <bpmn:incoming>SequenceFlow_0jrclmc</bpmn:incoming>
76       <bpmn:linkEventDefinition id="LinkEventDefinition_0de65en" name="OofTnNssiSelect" />
77     </bpmn:intermediateThrowEvent>
78     <bpmn:scriptTask id="ScriptTask_1ssh2l9" name="Prepare Update Resource Oper Status((finish)" scriptFormat="groovy">
79       <bpmn:incoming>SequenceFlow_0kixzdj</bpmn:incoming>
80       <bpmn:outgoing>SequenceFlow_1qv8qw1</bpmn:outgoing>
81       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
82 def runScript = new TnAllocateNssi()
83 runScript.prepareUpdateJobStatus(execution,"FINISHED","100","Allocated TN NSSI successfully")</bpmn:script>
84     </bpmn:scriptTask>
85     <bpmn:callActivity id="CallActivity_1bnkmaz" name="Call Decompose Service" calledElement="DecomposeService">
86       <bpmn:extensionElements>
87         <camunda:in source="msoRequestId" target="msoRequestId" />
88         <camunda:in source="sliceServiceInstanceId" target="serviceInstanceId" />
89         <camunda:in source="serviceModelInfo" target="serviceModelInfo" />
90         <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
91         <camunda:out source="serviceDecomposition" target="tnNsstServiceDecomposition" />
92         <camunda:out source="WorkflowException" target="WorkflowException" />
93       </bpmn:extensionElements>
94       <bpmn:incoming>SequenceFlow_0q7yc2c</bpmn:incoming>
95       <bpmn:outgoing>SequenceFlow_1t19ips</bpmn:outgoing>
96     </bpmn:callActivity>
97     <bpmn:scriptTask id="ScriptTask_0o2r07o" name="Prepare&#10;Decompose&#10;Service&#10;" scriptFormat="groovy">
98       <bpmn:incoming>Flow_1k88aak</bpmn:incoming>
99       <bpmn:outgoing>SequenceFlow_0q7yc2c</bpmn:outgoing>
100       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
101 def runScript = new TnAllocateNssi()
102 runScript.prepareDecomposeService(execution)</bpmn:script>
103     </bpmn:scriptTask>
104     <bpmn:scriptTask id="ScriptTask_08wim95" name="Prepare OOF TN NSSI Selection" scriptFormat="groovy">
105       <bpmn:incoming>Flow_0nu9t8e</bpmn:incoming>
106       <bpmn:outgoing>SequenceFlow_0h2oree</bpmn:outgoing>
107       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
108 def css = new TnAllocateNssi()
109 css.prepareOofSelection(execution)</bpmn:script>
110     </bpmn:scriptTask>
111     <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_0pkvfun" name="Allocate TN NSSI">
112       <bpmn:outgoing>SequenceFlow_1bevt3a</bpmn:outgoing>
113       <bpmn:linkEventDefinition id="LinkEventDefinition_1vlfclx" name="TnAllocateNssi" />
114     </bpmn:intermediateCatchEvent>
115     <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_0ktwpki" name="Goto Allocate TN NSSI">
116       <bpmn:incoming>SequenceFlow_12t5exy</bpmn:incoming>
117       <bpmn:linkEventDefinition id="LinkEventDefinition_16f2ri9" name="TnAllocateNssi" />
118     </bpmn:intermediateThrowEvent>
119     <bpmn:endEvent id="EndEvent_1oouvuh" name="End">
120       <bpmn:incoming>Flow_13ikwvr</bpmn:incoming>
121     </bpmn:endEvent>
122     <bpmn:callActivity id="CallActivity_0cxst1i" name="Call DoCreateTnNssiInstance&#10;" calledElement="DoCreateTnNssiInstance">
123       <bpmn:extensionElements>
124         <camunda:in source="msoRequestId" target="msoRequestId" />
125         <camunda:in source="sliceServiceInstanceId" target="sliceServiceInstanceId" />
126         <camunda:in source="modelInvariantUuid" target="modelInvariantUuid" />
127         <camunda:in source="modelUuid" target="modelUuid" />
128         <camunda:in source="sliceServiceInstanceName" target="sliceServiceInstanceName" />
129         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
130         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
131         <camunda:in source="operationId" target="operationId" />
132         <camunda:in source="sliceProfile" target="sliceProfile" />
133         <camunda:in source="transportSliceNetworks" target="transportSliceNetworks" />
134         <camunda:in source="enableSdnc" target="enableSdnc" />
135         <camunda:in source="nsiInfo" target="nsiInfo" />
136         <camunda:out source="WorkflowException" target="WorkflowException" />
137         <camunda:out source="rollbackData" target="rollbackData" />
138         <camunda:out source="rolledBack" target="rolledBack" />
139         <camunda:in source="sst" target="sst" />
140       </bpmn:extensionElements>
141       <bpmn:incoming>SequenceFlow_1bevt3a</bpmn:incoming>
142       <bpmn:outgoing>SequenceFlow_0mlrlbv</bpmn:outgoing>
143     </bpmn:callActivity>
144     <bpmn:sequenceFlow id="SequenceFlow_03s744c" sourceRef="StartEvent_1nbljfd" targetRef="ScriptTask_1tc44ge" />
145     <bpmn:sequenceFlow id="SequenceFlow_07e12rt" sourceRef="ScriptTask_1tc44ge" targetRef="ScriptTask_1xxag1o" />
146     <bpmn:sequenceFlow id="SequenceFlow_1cv0wop" sourceRef="Activity_187hs2t" targetRef="ScriptTask_1jgtb0y" />
147     <bpmn:sequenceFlow id="SequenceFlow_197cm2e" sourceRef="ScriptTask_1jgtb0y" targetRef="ExclusiveGateway_0elbczl" />
148     <bpmn:sequenceFlow id="SequenceFlow_12t5exy" name="No" sourceRef="ExclusiveGateway_0elbczl" targetRef="IntermediateThrowEvent_0ktwpki">
149       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("isOofTnNssiSelected") == false}</bpmn:conditionExpression>
150     </bpmn:sequenceFlow>
151     <bpmn:sequenceFlow id="SequenceFlow_038lb9m" name="Yes" sourceRef="ExclusiveGateway_0elbczl" targetRef="Activity_07jtiau">
152       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("isOofTnNssiSelected") == true}</bpmn:conditionExpression>
153     </bpmn:sequenceFlow>
154     <bpmn:sequenceFlow id="SequenceFlow_1t19ips" sourceRef="CallActivity_1bnkmaz" targetRef="ScriptTask_0l3d1ai" />
155     <bpmn:sequenceFlow id="SequenceFlow_0mlrlbv" sourceRef="CallActivity_0cxst1i" targetRef="ExclusiveGateway_18eld2o" />
156     <bpmn:sequenceFlow id="SequenceFlow_1c6ka9h" name="No" sourceRef="ExclusiveGateway_18eld2o" targetRef="EndEvent_0x406rw" />
157     <bpmn:sequenceFlow id="SequenceFlow_0n4xku8" name="Yes" sourceRef="ExclusiveGateway_18eld2o" targetRef="ScriptTask_19uxoi8">
158       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("WorkflowException") == null}</bpmn:conditionExpression>
159     </bpmn:sequenceFlow>
160     <bpmn:sequenceFlow id="SequenceFlow_0t094g7" sourceRef="ScriptTask_1xxag1o" targetRef="Activity_14an583" />
161     <bpmn:sequenceFlow id="SequenceFlow_1qv8qw1" sourceRef="ScriptTask_1ssh2l9" targetRef="Activity_1xko5pk" />
162     <bpmn:sequenceFlow id="SequenceFlow_0q7yc2c" sourceRef="ScriptTask_0o2r07o" targetRef="CallActivity_1bnkmaz" />
163     <bpmn:sequenceFlow id="SequenceFlow_0h2oree" sourceRef="ScriptTask_08wim95" targetRef="Activity_187hs2t" />
164     <bpmn:sequenceFlow id="SequenceFlow_1bevt3a" sourceRef="IntermediateCatchEvent_0pkvfun" targetRef="CallActivity_0cxst1i" />
165     <bpmn:sequenceFlow id="SequenceFlow_0jrclmc" sourceRef="ScriptTask_0l3d1ai" targetRef="IntermediateThrowEvent_1ex8ke9" />
166     <bpmn:scriptTask id="ScriptTask_19uxoi8" name="Update AAI Status" scriptFormat="groovy">
167       <bpmn:incoming>SequenceFlow_0n4xku8</bpmn:incoming>
168       <bpmn:outgoing>SequenceFlow_0kixzdj</bpmn:outgoing>
169       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
170 execution.setVariable("orchestrationStatus", "deactivated")
171 def runScript = new TnAllocateNssi()
172 runScript.updateAAIOrchStatus(execution)</bpmn:script>
173     </bpmn:scriptTask>
174     <bpmn:sequenceFlow id="SequenceFlow_0kixzdj" sourceRef="ScriptTask_19uxoi8" targetRef="ScriptTask_1ssh2l9" />
175     <bpmn:callActivity id="Activity_187hs2t" name="Handle TN NSSI Selection OOF request" calledElement="DoHandleOofRequest">
176       <bpmn:extensionElements>
177         <camunda:in source="nssiSelection_Url" target="apiPath" />
178         <camunda:in source="nssiSelection_correlator" target="correlator" />
179         <camunda:in source="nssiSelection_messageType" target="messageType" />
180         <camunda:in source="nssiSelection_timeout" target="timeout" />
181         <camunda:in source="nssiSelection_oofRequest" target="oofRequest" />
182         <camunda:out source="WorkflowException" target="WorkflowException" />
183         <camunda:out source="asyncCallbackResponse" target="nssiSelection_asyncCallbackResponse" />
184       </bpmn:extensionElements>
185       <bpmn:incoming>SequenceFlow_0h2oree</bpmn:incoming>
186       <bpmn:outgoing>SequenceFlow_1cv0wop</bpmn:outgoing>
187     </bpmn:callActivity>
188     <bpmn:serviceTask id="Activity_14an583" name="Update Resource Operation Status">
189       <bpmn:extensionElements>
190         <camunda:connector>
191           <camunda:inputOutput>
192             <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
193             <camunda:inputParameter name="headers">
194               <camunda:map>
195                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
196                 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
197               </camunda:map>
198             </camunda:inputParameter>
199             <camunda:inputParameter name="payload">${updateResourceOperationStatus}</camunda:inputParameter>
200             <camunda:inputParameter name="method">POST</camunda:inputParameter>
201             <camunda:outputParameter name="NSSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
202             <camunda:outputParameter name="NSSMF_dbResponse">${response}</camunda:outputParameter>
203           </camunda:inputOutput>
204           <camunda:connectorId>http-connector</camunda:connectorId>
205         </camunda:connector>
206       </bpmn:extensionElements>
207       <bpmn:incoming>SequenceFlow_0t094g7</bpmn:incoming>
208       <bpmn:outgoing>Flow_1k88aak</bpmn:outgoing>
209     </bpmn:serviceTask>
210     <bpmn:sequenceFlow id="Flow_1k88aak" sourceRef="Activity_14an583" targetRef="ScriptTask_0o2r07o" />
211     <bpmn:serviceTask id="Activity_1xko5pk" name="Update Resource Operation Status">
212       <bpmn:extensionElements>
213         <camunda:connector>
214           <camunda:inputOutput>
215             <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
216             <camunda:inputParameter name="headers">
217               <camunda:map>
218                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
219                 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
220               </camunda:map>
221             </camunda:inputParameter>
222             <camunda:inputParameter name="payload">${updateResourceOperationStatus}</camunda:inputParameter>
223             <camunda:inputParameter name="method">POST</camunda:inputParameter>
224             <camunda:outputParameter name="NSSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
225             <camunda:outputParameter name="NSSMF_dbResponse">${response}</camunda:outputParameter>
226           </camunda:inputOutput>
227           <camunda:connectorId>http-connector</camunda:connectorId>
228         </camunda:connector>
229       </bpmn:extensionElements>
230       <bpmn:incoming>SequenceFlow_1qv8qw1</bpmn:incoming>
231       <bpmn:outgoing>Flow_06rrcwf</bpmn:outgoing>
232     </bpmn:serviceTask>
233     <bpmn:sequenceFlow id="Flow_06rrcwf" sourceRef="Activity_1xko5pk" targetRef="EndEvent_05h01gx" />
234     <bpmn:exclusiveGateway id="Gateway_08t9sts" name="Enable OOF?">
235       <bpmn:incoming>Flow_071hnt4</bpmn:incoming>
236       <bpmn:outgoing>Flow_0nu9t8e</bpmn:outgoing>
237       <bpmn:outgoing>Flow_0tz6v1f</bpmn:outgoing>
238     </bpmn:exclusiveGateway>
239     <bpmn:sequenceFlow id="Flow_0nu9t8e" name="yes" sourceRef="Gateway_08t9sts" targetRef="ScriptTask_08wim95">
240       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("enableOof") == true}</bpmn:conditionExpression>
241     </bpmn:sequenceFlow>
242     <bpmn:sequenceFlow id="Flow_071hnt4" sourceRef="IntermediateCatchEvent_0vilb24" targetRef="Gateway_08t9sts" />
243     <bpmn:sequenceFlow id="Flow_0tz6v1f" name="No" sourceRef="Gateway_08t9sts" targetRef="Event_0uq2hsq" />
244     <bpmn:intermediateThrowEvent id="Event_0uq2hsq" name="Goto Allocate TN NSSI">
245       <bpmn:incoming>Flow_0tz6v1f</bpmn:incoming>
246       <bpmn:linkEventDefinition id="LinkEventDefinition_0xfqvfe" name="TnAllocateNssi" />
247     </bpmn:intermediateThrowEvent>
248     <bpmn:scriptTask id="Activity_07jtiau" name="prepare Modify Tn NSSI inputs" scriptFormat="groovy">
249       <bpmn:incoming>SequenceFlow_038lb9m</bpmn:incoming>
250       <bpmn:outgoing>Flow_10etjmr</bpmn:outgoing>
251       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
252 def css = new TnAllocateNssi()
253 css.prepareModifyTnNssiInputs(execution)</bpmn:script>
254     </bpmn:scriptTask>
255     <bpmn:callActivity id="Activity_1mw6mcq" name="call DoModifyTransportNSSI" calledElement="DoModifyTransportNSSI">
256       <bpmn:extensionElements>
257         <camunda:in source="msoRequestId" target="msoRequestId" />
258         <camunda:in source="TnServiceInstanceId" target="serviceInstanceID" />
259         <camunda:in source="nsiId" target="nsiId" />
260         <camunda:in source="networkType" target="networkType" />
261         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
262         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
263         <camunda:in source="transportSliceNetworks" target="transportSliceNetworks" />
264         <camunda:in source="jobId" target="jobId" />
265         <camunda:in source="modifySliceParams" target="sliceParams" />
266         <camunda:in source="servicename" target="servicename" />
267         <camunda:out source="WorkflowException" target="WorkflowException" />
268         <camunda:in source="modelInvariantUuid" target="modelInvariantUuid" />
269         <camunda:in source="modelUuid" target="modelUuid" />
270         <camunda:in source="operationType" target="operationType" />
271         <camunda:in source="transportSliceNetworks" target="transportSliceNetworks" />
272       </bpmn:extensionElements>
273       <bpmn:incoming>Flow_10etjmr</bpmn:incoming>
274       <bpmn:outgoing>Flow_01bdm61</bpmn:outgoing>
275     </bpmn:callActivity>
276     <bpmn:scriptTask id="Activity_0wllwek" name="prepare query job status" scriptFormat="groovy">
277       <bpmn:incoming>Flow_01bdm61</bpmn:incoming>
278       <bpmn:outgoing>Flow_0tvh0t6</bpmn:outgoing>
279       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
280 def css = new TnAllocateNssi()
281 css.createModifyNssiQueryJobStatus(execution)</bpmn:script>
282     </bpmn:scriptTask>
283     <bpmn:sequenceFlow id="Flow_10etjmr" sourceRef="Activity_07jtiau" targetRef="Activity_1mw6mcq" />
284     <bpmn:sequenceFlow id="Flow_01bdm61" sourceRef="Activity_1mw6mcq" targetRef="Activity_0wllwek" />
285     <bpmn:callActivity id="Activity_0wx2ah5" name="Query Job status" calledElement="QueryJobStatus">
286       <bpmn:extensionElements>
287         <camunda:in source="serviceInfo" target="serviceInfo" />
288         <camunda:in source="modifyTnNssiJobId" target="jobId" />
289         <camunda:in source="responseId" target="responseId" />
290         <camunda:in source="job_timeout" target="timeout" />
291         <camunda:out source="responseDescriptor" target="jobResponse" />
292         <camunda:in source="msoRequestId" target="msoRequestId" />
293         <camunda:in source="esrInfo" target="esrInfo" />
294       </bpmn:extensionElements>
295       <bpmn:incoming>Flow_0tvh0t6</bpmn:incoming>
296       <bpmn:outgoing>Flow_0rt0mvl</bpmn:outgoing>
297     </bpmn:callActivity>
298     <bpmn:sequenceFlow id="Flow_0tvh0t6" sourceRef="Activity_0wllwek" targetRef="Activity_0wx2ah5" />
299     <bpmn:scriptTask id="Activity_1hhcncj" name="process Job status response" scriptFormat="groovy">
300       <bpmn:incoming>Flow_0rt0mvl</bpmn:incoming>
301       <bpmn:outgoing>Flow_13ikwvr</bpmn:outgoing>
302       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
303 def css = new TnAllocateNssi()
304 css.processModifyJobStatusRsp(execution)</bpmn:script>
305     </bpmn:scriptTask>
306     <bpmn:sequenceFlow id="Flow_0rt0mvl" sourceRef="Activity_0wx2ah5" targetRef="Activity_1hhcncj" />
307     <bpmn:sequenceFlow id="Flow_13ikwvr" sourceRef="Activity_1hhcncj" targetRef="EndEvent_1oouvuh" />
308   </bpmn:process>
309   <bpmn:message id="Message_0c4b2r5" name="SliceServiceTask" />
310   <bpmn:error id="Error_03akl5v" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
311   <bpmn:error id="Error_0p2naox" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
312   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
313     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoAllocateTransportNSSI">
314       <bpmndi:BPMNEdge id="Flow_13ikwvr_di" bpmnElement="Flow_13ikwvr">
315         <di:waypoint x="1380" y="490" />
316         <di:waypoint x="1452" y="490" />
317       </bpmndi:BPMNEdge>
318       <bpmndi:BPMNEdge id="Flow_0rt0mvl_di" bpmnElement="Flow_0rt0mvl">
319         <di:waypoint x="1240" y="490" />
320         <di:waypoint x="1280" y="490" />
321       </bpmndi:BPMNEdge>
322       <bpmndi:BPMNEdge id="Flow_0tvh0t6_di" bpmnElement="Flow_0tvh0t6">
323         <di:waypoint x="1110" y="490" />
324         <di:waypoint x="1140" y="490" />
325       </bpmndi:BPMNEdge>
326       <bpmndi:BPMNEdge id="Flow_01bdm61_di" bpmnElement="Flow_01bdm61">
327         <di:waypoint x="960" y="490" />
328         <di:waypoint x="1010" y="490" />
329       </bpmndi:BPMNEdge>
330       <bpmndi:BPMNEdge id="Flow_10etjmr_di" bpmnElement="Flow_10etjmr">
331         <di:waypoint x="800" y="490" />
332         <di:waypoint x="860" y="490" />
333       </bpmndi:BPMNEdge>
334       <bpmndi:BPMNEdge id="Flow_0tz6v1f_di" bpmnElement="Flow_0tz6v1f">
335         <di:waypoint x="320" y="355" />
336         <di:waypoint x="320" y="440" />
337         <di:waypoint x="342" y="440" />
338         <bpmndi:BPMNLabel>
339           <dc:Bounds x="328" y="395" width="15" height="14" />
340         </bpmndi:BPMNLabel>
341       </bpmndi:BPMNEdge>
342       <bpmndi:BPMNEdge id="Flow_071hnt4_di" bpmnElement="Flow_071hnt4">
343         <di:waypoint x="214" y="330" />
344         <di:waypoint x="295" y="330" />
345       </bpmndi:BPMNEdge>
346       <bpmndi:BPMNEdge id="Flow_0nu9t8e_di" bpmnElement="Flow_0nu9t8e">
347         <di:waypoint x="345" y="330" />
348         <di:waypoint x="463" y="330" />
349         <bpmndi:BPMNLabel>
350           <dc:Bounds x="395" y="312" width="18" height="14" />
351         </bpmndi:BPMNLabel>
352       </bpmndi:BPMNEdge>
353       <bpmndi:BPMNEdge id="Flow_06rrcwf_di" bpmnElement="Flow_06rrcwf">
354         <di:waypoint x="1140" y="680" />
355         <di:waypoint x="1252" y="680" />
356       </bpmndi:BPMNEdge>
357       <bpmndi:BPMNEdge id="Flow_1k88aak_di" bpmnElement="Flow_1k88aak">
358         <di:waypoint x="750" y="121" />
359         <di:waypoint x="850" y="121" />
360       </bpmndi:BPMNEdge>
361       <bpmndi:BPMNEdge id="SequenceFlow_0kixzdj_di" bpmnElement="SequenceFlow_0kixzdj">
362         <di:waypoint x="770" y="680" />
363         <di:waypoint x="860" y="680" />
364       </bpmndi:BPMNEdge>
365       <bpmndi:BPMNEdge id="SequenceFlow_0jrclmc_di" bpmnElement="SequenceFlow_0jrclmc">
366         <di:waypoint x="1420" y="121" />
367         <di:waypoint x="1532" y="121" />
368       </bpmndi:BPMNEdge>
369       <bpmndi:BPMNEdge id="SequenceFlow_1bevt3a_di" bpmnElement="SequenceFlow_1bevt3a">
370         <di:waypoint x="228" y="680" />
371         <di:waypoint x="320" y="680" />
372       </bpmndi:BPMNEdge>
373       <bpmndi:BPMNEdge id="SequenceFlow_0h2oree_di" bpmnElement="SequenceFlow_0h2oree">
374         <di:waypoint x="563" y="330" />
375         <di:waypoint x="630" y="330" />
376       </bpmndi:BPMNEdge>
377       <bpmndi:BPMNEdge id="SequenceFlow_0q7yc2c_di" bpmnElement="SequenceFlow_0q7yc2c">
378         <di:waypoint x="950" y="121" />
379         <di:waypoint x="1090" y="121" />
380       </bpmndi:BPMNEdge>
381       <bpmndi:BPMNEdge id="SequenceFlow_1qv8qw1_di" bpmnElement="SequenceFlow_1qv8qw1">
382         <di:waypoint x="960" y="680" />
383         <di:waypoint x="1040" y="680" />
384       </bpmndi:BPMNEdge>
385       <bpmndi:BPMNEdge id="SequenceFlow_0t094g7_di" bpmnElement="SequenceFlow_0t094g7">
386         <di:waypoint x="568" y="121" />
387         <di:waypoint x="650" y="121" />
388       </bpmndi:BPMNEdge>
389       <bpmndi:BPMNEdge id="SequenceFlow_0n4xku8_di" bpmnElement="SequenceFlow_0n4xku8">
390         <di:waypoint x="538" y="680" />
391         <di:waypoint x="670" y="680" />
392         <bpmndi:BPMNLabel>
393           <dc:Bounds x="585" y="662" width="19" height="14" />
394         </bpmndi:BPMNLabel>
395       </bpmndi:BPMNEdge>
396       <bpmndi:BPMNEdge id="SequenceFlow_1c6ka9h_di" bpmnElement="SequenceFlow_1c6ka9h">
397         <di:waypoint x="513" y="705" />
398         <di:waypoint x="513" y="762" />
399         <bpmndi:BPMNLabel>
400           <dc:Bounds x="522" y="705" width="14" height="14" />
401         </bpmndi:BPMNLabel>
402       </bpmndi:BPMNEdge>
403       <bpmndi:BPMNEdge id="SequenceFlow_0mlrlbv_di" bpmnElement="SequenceFlow_0mlrlbv">
404         <di:waypoint x="420" y="680" />
405         <di:waypoint x="488" y="680" />
406       </bpmndi:BPMNEdge>
407       <bpmndi:BPMNEdge id="SequenceFlow_1t19ips_di" bpmnElement="SequenceFlow_1t19ips">
408         <di:waypoint x="1190" y="121" />
409         <di:waypoint x="1320" y="121" />
410       </bpmndi:BPMNEdge>
411       <bpmndi:BPMNEdge id="SequenceFlow_038lb9m_di" bpmnElement="SequenceFlow_038lb9m">
412         <di:waypoint x="970" y="355" />
413         <di:waypoint x="970" y="400" />
414         <di:waypoint x="740" y="400" />
415         <di:waypoint x="740" y="450" />
416         <bpmndi:BPMNLabel>
417           <dc:Bounds x="981" y="368" width="18" height="14" />
418         </bpmndi:BPMNLabel>
419       </bpmndi:BPMNEdge>
420       <bpmndi:BPMNEdge id="SequenceFlow_12t5exy_di" bpmnElement="SequenceFlow_12t5exy">
421         <di:waypoint x="995" y="330" />
422         <di:waypoint x="1092" y="330" />
423         <bpmndi:BPMNLabel>
424           <dc:Bounds x="1029" y="313" width="15" height="14" />
425         </bpmndi:BPMNLabel>
426       </bpmndi:BPMNEdge>
427       <bpmndi:BPMNEdge id="SequenceFlow_197cm2e_di" bpmnElement="SequenceFlow_197cm2e">
428         <di:waypoint x="890" y="330" />
429         <di:waypoint x="945" y="330" />
430       </bpmndi:BPMNEdge>
431       <bpmndi:BPMNEdge id="SequenceFlow_1cv0wop_di" bpmnElement="SequenceFlow_1cv0wop">
432         <di:waypoint x="730" y="330" />
433         <di:waypoint x="790" y="330" />
434       </bpmndi:BPMNEdge>
435       <bpmndi:BPMNEdge id="SequenceFlow_07e12rt_di" bpmnElement="SequenceFlow_07e12rt">
436         <di:waypoint x="385" y="121" />
437         <di:waypoint x="468" y="121" />
438       </bpmndi:BPMNEdge>
439       <bpmndi:BPMNEdge id="SequenceFlow_03s744c_di" bpmnElement="SequenceFlow_03s744c">
440         <di:waypoint x="214" y="121" />
441         <di:waypoint x="285" y="121" />
442       </bpmndi:BPMNEdge>
443       <bpmndi:BPMNShape id="StartEvent_1nbljfd_di" bpmnElement="StartEvent_1nbljfd">
444         <dc:Bounds x="178" y="103" width="36" height="36" />
445         <bpmndi:BPMNLabel>
446           <dc:Bounds x="158" y="146" width="86" height="40" />
447         </bpmndi:BPMNLabel>
448       </bpmndi:BPMNShape>
449       <bpmndi:BPMNShape id="IntermediateCatchEvent_0vilb24_di" bpmnElement="IntermediateCatchEvent_0vilb24">
450         <dc:Bounds x="178" y="312" width="36" height="36" />
451         <bpmndi:BPMNLabel>
452           <dc:Bounds x="162" y="355" width="71" height="27" />
453         </bpmndi:BPMNLabel>
454       </bpmndi:BPMNShape>
455       <bpmndi:BPMNShape id="ScriptTask_1tc44ge_di" bpmnElement="ScriptTask_1tc44ge">
456         <dc:Bounds x="285" y="81" width="100" height="80" />
457       </bpmndi:BPMNShape>
458       <bpmndi:BPMNShape id="ScriptTask_1jgtb0y_di" bpmnElement="ScriptTask_1jgtb0y">
459         <dc:Bounds x="790" y="290" width="100" height="80" />
460       </bpmndi:BPMNShape>
461       <bpmndi:BPMNShape id="ExclusiveGateway_0elbczl_di" bpmnElement="ExclusiveGateway_0elbczl" isMarkerVisible="true">
462         <dc:Bounds x="945" y="305" width="50" height="50" />
463         <bpmndi:BPMNLabel>
464           <dc:Bounds x="930" y="276" width="79" height="27" />
465         </bpmndi:BPMNLabel>
466       </bpmndi:BPMNShape>
467       <bpmndi:BPMNShape id="ScriptTask_0l3d1ai_di" bpmnElement="ScriptTask_0l3d1ai">
468         <dc:Bounds x="1320" y="81" width="100" height="80" />
469       </bpmndi:BPMNShape>
470       <bpmndi:BPMNShape id="ExclusiveGateway_18eld2o_di" bpmnElement="ExclusiveGateway_18eld2o" isMarkerVisible="true">
471         <dc:Bounds x="488" y="655" width="50" height="50" />
472         <bpmndi:BPMNLabel>
473           <dc:Bounds x="482.5" y="617.5" width="61" height="27" />
474         </bpmndi:BPMNLabel>
475       </bpmndi:BPMNShape>
476       <bpmndi:BPMNShape id="EndEvent_0x406rw_di" bpmnElement="EndEvent_0x406rw">
477         <dc:Bounds x="495" y="762" width="36" height="36" />
478       </bpmndi:BPMNShape>
479       <bpmndi:BPMNShape id="EndEvent_1oouvuh_di" bpmnElement="EndEvent_1oouvuh">
480         <dc:Bounds x="1452" y="472" width="36" height="36" />
481         <bpmndi:BPMNLabel>
482           <dc:Bounds x="1460" y="515" width="20" height="14" />
483         </bpmndi:BPMNLabel>
484       </bpmndi:BPMNShape>
485       <bpmndi:BPMNShape id="Activity_0wllwek_di" bpmnElement="Activity_0wllwek">
486         <dc:Bounds x="1010" y="450" width="100" height="80" />
487       </bpmndi:BPMNShape>
488       <bpmndi:BPMNShape id="SubProcess_1yv9i68_di" bpmnElement="SubProcess_1yv9i68" isExpanded="true">
489         <dc:Bounds x="685" y="1080" width="781" height="196" />
490       </bpmndi:BPMNShape>
491       <bpmndi:BPMNEdge id="SequenceFlow_08mlzwz_di" bpmnElement="SequenceFlow_08mlzwz">
492         <di:waypoint x="1079" y="1184" />
493         <di:waypoint x="1353" y="1184" />
494       </bpmndi:BPMNEdge>
495       <bpmndi:BPMNEdge id="SequenceFlow_1w67v6s_di" bpmnElement="SequenceFlow_1w67v6s">
496         <di:waypoint x="751" y="1184" />
497         <di:waypoint x="979" y="1184" />
498       </bpmndi:BPMNEdge>
499       <bpmndi:BPMNShape id="StartEvent_1omdx56_di" bpmnElement="StartEvent_1omdx56">
500         <dc:Bounds x="715" y="1166" width="36" height="36" />
501       </bpmndi:BPMNShape>
502       <bpmndi:BPMNShape id="EndEvent_1jx3026_di" bpmnElement="EndEvent_1jx3026">
503         <dc:Bounds x="1353" y="1166" width="36" height="36" />
504       </bpmndi:BPMNShape>
505       <bpmndi:BPMNShape id="ScriptTask_1swzdpw_di" bpmnElement="ScriptTask_1swzdpw">
506         <dc:Bounds x="979" y="1144" width="100" height="80" />
507       </bpmndi:BPMNShape>
508       <bpmndi:BPMNShape id="EndEvent_05h01gx_di" bpmnElement="EndEvent_05h01gx">
509         <dc:Bounds x="1252" y="662" width="36" height="36" />
510         <bpmndi:BPMNLabel>
511           <dc:Bounds x="1260" y="705" width="20" height="14" />
512         </bpmndi:BPMNLabel>
513       </bpmndi:BPMNShape>
514       <bpmndi:BPMNShape id="ScriptTask_1xxag1o_di" bpmnElement="ScriptTask_1xxag1o">
515         <dc:Bounds x="468" y="81" width="100" height="80" />
516       </bpmndi:BPMNShape>
517       <bpmndi:BPMNShape id="IntermediateThrowEvent_1ex8ke9_di" bpmnElement="IntermediateThrowEvent_1ex8ke9">
518         <dc:Bounds x="1532" y="103" width="36" height="36" />
519         <bpmndi:BPMNLabel>
520           <dc:Bounds x="1522" y="144" width="74" height="27" />
521         </bpmndi:BPMNLabel>
522       </bpmndi:BPMNShape>
523       <bpmndi:BPMNShape id="ScriptTask_1ssh2l9_di" bpmnElement="ScriptTask_1ssh2l9">
524         <dc:Bounds x="860" y="640" width="100" height="80" />
525       </bpmndi:BPMNShape>
526       <bpmndi:BPMNShape id="CallActivity_1bnkmaz_di" bpmnElement="CallActivity_1bnkmaz">
527         <dc:Bounds x="1090" y="81" width="100" height="80" />
528       </bpmndi:BPMNShape>
529       <bpmndi:BPMNShape id="ScriptTask_0o2r07o_di" bpmnElement="ScriptTask_0o2r07o">
530         <dc:Bounds x="850" y="81" width="100" height="80" />
531       </bpmndi:BPMNShape>
532       <bpmndi:BPMNShape id="ScriptTask_08wim95_di" bpmnElement="ScriptTask_08wim95">
533         <dc:Bounds x="463" y="290" width="100" height="80" />
534       </bpmndi:BPMNShape>
535       <bpmndi:BPMNShape id="IntermediateCatchEvent_0pkvfun_di" bpmnElement="IntermediateCatchEvent_0pkvfun">
536         <dc:Bounds x="192" y="662" width="36" height="36" />
537         <bpmndi:BPMNLabel>
538           <dc:Bounds x="173" y="705" width="86" height="14" />
539         </bpmndi:BPMNLabel>
540       </bpmndi:BPMNShape>
541       <bpmndi:BPMNShape id="IntermediateThrowEvent_0ktwpki_di" bpmnElement="IntermediateThrowEvent_0ktwpki">
542         <dc:Bounds x="1092" y="312" width="36" height="36" />
543         <bpmndi:BPMNLabel>
544           <dc:Bounds x="1080" y="353" width="84" height="27" />
545         </bpmndi:BPMNLabel>
546       </bpmndi:BPMNShape>
547       <bpmndi:BPMNShape id="CallActivity_0cxst1i_di" bpmnElement="CallActivity_0cxst1i">
548         <dc:Bounds x="320" y="640" width="100" height="80" />
549       </bpmndi:BPMNShape>
550       <bpmndi:BPMNShape id="ScriptTask_19uxoi8_di" bpmnElement="ScriptTask_19uxoi8">
551         <dc:Bounds x="670" y="640" width="100" height="80" />
552       </bpmndi:BPMNShape>
553       <bpmndi:BPMNShape id="Activity_187hs2t_di" bpmnElement="Activity_187hs2t">
554         <dc:Bounds x="630" y="290" width="100" height="80" />
555       </bpmndi:BPMNShape>
556       <bpmndi:BPMNShape id="Activity_14an583_di" bpmnElement="Activity_14an583">
557         <dc:Bounds x="650" y="81" width="100" height="80" />
558       </bpmndi:BPMNShape>
559       <bpmndi:BPMNShape id="Activity_1xko5pk_di" bpmnElement="Activity_1xko5pk">
560         <dc:Bounds x="1040" y="640" width="100" height="80" />
561       </bpmndi:BPMNShape>
562       <bpmndi:BPMNShape id="Gateway_08t9sts_di" bpmnElement="Gateway_08t9sts" isMarkerVisible="true">
563         <dc:Bounds x="295" y="305" width="50" height="50" />
564         <bpmndi:BPMNLabel>
565           <dc:Bounds x="290" y="275" width="68" height="14" />
566         </bpmndi:BPMNLabel>
567       </bpmndi:BPMNShape>
568       <bpmndi:BPMNShape id="Event_0ltl0tk_di" bpmnElement="Event_0uq2hsq">
569         <dc:Bounds x="342" y="422" width="36" height="36" />
570         <bpmndi:BPMNLabel>
571           <dc:Bounds x="318" y="465" width="84" height="27" />
572         </bpmndi:BPMNLabel>
573       </bpmndi:BPMNShape>
574       <bpmndi:BPMNShape id="Activity_07jtiau_di" bpmnElement="Activity_07jtiau">
575         <dc:Bounds x="700" y="450" width="100" height="80" />
576       </bpmndi:BPMNShape>
577       <bpmndi:BPMNShape id="Activity_1mw6mcq_di" bpmnElement="Activity_1mw6mcq">
578         <dc:Bounds x="860" y="450" width="100" height="80" />
579       </bpmndi:BPMNShape>
580       <bpmndi:BPMNShape id="Activity_0wx2ah5_di" bpmnElement="Activity_0wx2ah5">
581         <dc:Bounds x="1140" y="450" width="100" height="80" />
582       </bpmndi:BPMNShape>
583       <bpmndi:BPMNShape id="Activity_1hhcncj_di" bpmnElement="Activity_1hhcncj">
584         <dc:Bounds x="1280" y="450" width="100" height="80" />
585       </bpmndi:BPMNShape>
586     </bpmndi:BPMNPlane>
587   </bpmndi:BPMNDiagram>
588 </bpmn:definitions>