Merge "Adding more unit tests in Deallocate Core NSSMF workflow"
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / subprocess / DoAllocateNSIandNSSI.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1">
3   <bpmn:process id="DoAllocateNSIandNSSI" name="DoAllocateNSIandNSSI" isExecutable="true">
4     <bpmn:startEvent id="StartEvent_1ym3sha" name="Start">
5       <bpmn:outgoing>SequenceFlow_0xgfj7z</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:sequenceFlow id="SequenceFlow_0xgfj7z" sourceRef="StartEvent_1ym3sha" targetRef="Task_027u6m6" />
8     <bpmn:scriptTask id="Task_027u6m6" name="Preprocess Request" scriptFormat="groovy">
9       <bpmn:incoming>SequenceFlow_0xgfj7z</bpmn:incoming>
10       <bpmn:outgoing>SequenceFlow_00aukg6</bpmn:outgoing>
11       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
12 def dansi = new DoAllocateNSIandNSSI()
13 dansi.preProcessRequest(execution)</bpmn:script>
14     </bpmn:scriptTask>
15     <bpmn:scriptTask id="ScriptTask_0qorxd9" name="Process NSI options" scriptFormat="groovy">
16       <bpmn:incoming>SequenceFlow_00aukg6</bpmn:incoming>
17       <bpmn:outgoing>SequenceFlow_1ggo6s5</bpmn:outgoing>
18       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
19 def dansi = new DoAllocateNSIandNSSI()
20 dansi.retriveSliceOption(execution)</bpmn:script>
21     </bpmn:scriptTask>
22     <bpmn:sequenceFlow id="SequenceFlow_00aukg6" sourceRef="Task_027u6m6" targetRef="ScriptTask_0qorxd9" />
23     <bpmn:exclusiveGateway id="ExclusiveGateway_00pt1ek" name="Is nsi option available?" default="SequenceFlow_0c986i9">
24       <bpmn:incoming>SequenceFlow_1ggo6s5</bpmn:incoming>
25       <bpmn:outgoing>SequenceFlow_0c986i9</bpmn:outgoing>
26       <bpmn:outgoing>SequenceFlow_03ye8m4</bpmn:outgoing>
27     </bpmn:exclusiveGateway>
28     <bpmn:sequenceFlow id="SequenceFlow_1ggo6s5" sourceRef="ScriptTask_0qorxd9" targetRef="ExclusiveGateway_00pt1ek" />
29     <bpmn:sequenceFlow id="SequenceFlow_0c986i9" sourceRef="ExclusiveGateway_00pt1ek" targetRef="ScriptTask_1tizl6b" />
30     <bpmn:scriptTask id="ScriptTask_1tizl6b" name="create NSI in AAI and Update relationship" scriptFormat="groovy">
31       <bpmn:incoming>SequenceFlow_0c986i9</bpmn:incoming>
32       <bpmn:outgoing>SequenceFlow_1k3cspv</bpmn:outgoing>
33       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
34 def dcnsio = new DoAllocateNSIandNSSI()
35 dcnsio.createNSIinAAI(execution)</bpmn:script>
36     </bpmn:scriptTask>
37     <bpmn:sequenceFlow id="SequenceFlow_1k3cspv" sourceRef="ScriptTask_1tizl6b" targetRef="ScriptTask_1r6kuwy" />
38     <bpmn:sequenceFlow id="SequenceFlow_03ye8m4" sourceRef="ExclusiveGateway_00pt1ek" targetRef="ScriptTask_07sgklo">
39       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isNSIOptionAvailable" )  == true)}</bpmn:conditionExpression>
40     </bpmn:sequenceFlow>
41     <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_0fx1nyj" name="GoTo Create Slice Profile">
42       <bpmn:incoming>SequenceFlow_0t0wddg</bpmn:incoming>
43       <bpmn:incoming>SequenceFlow_05ovikm</bpmn:incoming>
44       <bpmn:linkEventDefinition name="CreateSliceProfile" />
45     </bpmn:intermediateThrowEvent>
46     <bpmn:intermediateCatchEvent id="IntermediateThrowEvent_0k54pph" name="Create Slice Profile">
47       <bpmn:outgoing>SequenceFlow_0ct8yh4</bpmn:outgoing>
48       <bpmn:linkEventDefinition name="CreateSliceProfile" />
49     </bpmn:intermediateCatchEvent>
50     <bpmn:sequenceFlow id="SequenceFlow_0ct8yh4" sourceRef="IntermediateThrowEvent_0k54pph" targetRef="ExclusiveGateway_00ufetn" />
51     <bpmn:parallelGateway id="ExclusiveGateway_00ufetn">
52       <bpmn:incoming>SequenceFlow_0ct8yh4</bpmn:incoming>
53       <bpmn:outgoing>SequenceFlow_1m68yca</bpmn:outgoing>
54       <bpmn:outgoing>SequenceFlow_0k5iu2n</bpmn:outgoing>
55     </bpmn:parallelGateway>
56     <bpmn:sequenceFlow id="SequenceFlow_1m68yca" sourceRef="ExclusiveGateway_00ufetn" targetRef="Task_1tv7jy5" />
57     <bpmn:sequenceFlow id="SequenceFlow_0k5iu2n" sourceRef="ExclusiveGateway_00ufetn" targetRef="Task_1en3luv" />
58     <bpmn:callActivity id="CallActivity_1yh9tiq" name="Call DoAllocateNSSI(RAN)" calledElement="DoAllocateNSSI">
59       <bpmn:extensionElements>
60         <camunda:in source="msoRequestId" target="msoRequestId" />
61         <camunda:out source="serviceDecomposition" target="serviceDecomposition" />
62         <camunda:out source="WorkflowException" target="WorkflowException" />
63         <camunda:in source="nsstInput" target="nsstInput" />
64         <camunda:in source="serviceProfile" target="serviceProfile" />
65         <camunda:in source="sliceProfileTn" target="sliceProfileTn" />
66         <camunda:in source="sliceProfileCn" target="sliceProfileCn" />
67         <camunda:in source="sliceProfileAn" target="sliceProfileAn" />
68         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
69         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
70         <camunda:in source="uuiRequest" target="uuiRequest" />
71         <camunda:in source="nsiServiceInstanceId" target="nsiServiceInstanceId" />
72         <camunda:in source="nsiServiceInstanceName" target="nsiServiceInstanceName" />
73         <camunda:in source="nssiserviceModelInfo" target="nssiserviceModelInfo" />
74         <camunda:in source="sliceTaskParams" target="sliceTaskParams" />
75         <camunda:in source="taskId" target="CSSOT_taskId" />
76         <camunda:in source="taskName" target="CSSOT_name" />
77         <camunda:in source="taskStatus" target="CSSOT_status" />
78         <camunda:in source="isManual" target="CSSOT_isManual" />
79         <camunda:in source="isNSIOptionAvailable" target="isNSIOptionAvailable" />
80         <camunda:in source="anSliceTaskInfo" target="sliceTaskInfo" />
81         <camunda:out source="nssiAllocateResult" target="anNssiAllocateResult" />
82         <camunda:in source="AnAllocateNssiNbiRequest" target="nbiRequest" />
83       </bpmn:extensionElements>
84       <bpmn:incoming>SequenceFlow_0npsyye</bpmn:incoming>
85       <bpmn:outgoing>SequenceFlow_1xb5nx1</bpmn:outgoing>
86     </bpmn:callActivity>
87     <bpmn:sequenceFlow id="SequenceFlow_1hfjn79" sourceRef="Task_1tv7jy5" targetRef="ScriptTask_1r2li91" />
88     <bpmn:callActivity id="CallActivity_1ixah3o" name="Call DoAllocateNSSI(Core)" calledElement="DoAllocateNSSI">
89       <bpmn:extensionElements>
90         <camunda:in source="msoRequestId" target="msoRequestId" />
91         <camunda:out source="serviceDecomposition" target="serviceDecomposition" />
92         <camunda:out source="WorkflowException" target="WorkflowException" />
93         <camunda:in source="nsstInput" target="nsstInput" />
94         <camunda:in source="serviceProfile" target="serviceProfile" />
95         <camunda:in source="sliceProfileTn" target="sliceProfileTn" />
96         <camunda:in source="sliceProfileCn" target="sliceProfileCn" />
97         <camunda:in source="sliceProfileAn" target="sliceProfileAn" />
98         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
99         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
100         <camunda:in source="uuiRequest" target="uuiRequest" />
101         <camunda:in source="nsiServiceInstanceId" target="nsiServiceInstanceId" />
102         <camunda:in source="nsiServiceInstanceName" target="nsiServiceInstanceName" />
103         <camunda:in source="nssiserviceModelInfo" target="nssiserviceModelInfo" />
104         <camunda:in source="sliceTaskParams" target="sliceTaskParams" />
105         <camunda:in source="taskId" target="CSSOT_taskId" />
106         <camunda:in source="taskName" target="CSSOT_name" />
107         <camunda:in source="taskStatus" target="CSSOT_status" />
108         <camunda:in source="isManual" target="CSSOT_isManual" />
109         <camunda:in source="isNSIOptionAvailable" target="isNSIOptionAvailable" />
110         <camunda:in source="cnSliceTaskInfo" target="sliceTaskInfo" />
111         <camunda:in source="domainType" target="domainType" />
112         <camunda:out source="nssiAllocateResult" target="cnNssiAllocateResult" />
113         <camunda:in source="CnAllocateNssiNbiRequest" target="nbiRequest" />
114       </bpmn:extensionElements>
115       <bpmn:incoming>SequenceFlow_0cwbtmr</bpmn:incoming>
116       <bpmn:outgoing>SequenceFlow_1l74seh</bpmn:outgoing>
117     </bpmn:callActivity>
118     <bpmn:sequenceFlow id="SequenceFlow_0f36cu2" sourceRef="Task_1en3luv" targetRef="Task_1g8n8iz" />
119     <bpmn:sequenceFlow id="SequenceFlow_1xb5nx1" sourceRef="CallActivity_1yh9tiq" targetRef="ScriptTask_0mls87v" />
120     <bpmn:parallelGateway id="ExclusiveGateway_19ru3hp">
121       <bpmn:incoming>SequenceFlow_0xx5bwa</bpmn:incoming>
122       <bpmn:incoming>SequenceFlow_0jqxxjq</bpmn:incoming>
123       <bpmn:outgoing>SequenceFlow_0ax2c4p</bpmn:outgoing>
124     </bpmn:parallelGateway>
125     <bpmn:scriptTask id="ScriptTask_07sgklo" name="Update relationship between NSI and Service Profile" scriptFormat="groovy">
126       <bpmn:incoming>SequenceFlow_03ye8m4</bpmn:incoming>
127       <bpmn:outgoing>SequenceFlow_0t0wddg</bpmn:outgoing>
128       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
129 def dcnsio = new DoAllocateNSIandNSSI()
130 dcnsio.updateRelationship(execution)</bpmn:script>
131     </bpmn:scriptTask>
132     <bpmn:sequenceFlow id="SequenceFlow_0t0wddg" sourceRef="ScriptTask_07sgklo" targetRef="IntermediateThrowEvent_0fx1nyj" />
133     <bpmn:scriptTask id="ScriptTask_1r6kuwy" name="create relationship between nsi and SP" scriptFormat="groovy">
134       <bpmn:incoming>SequenceFlow_1k3cspv</bpmn:incoming>
135       <bpmn:outgoing>SequenceFlow_05ovikm</bpmn:outgoing>
136       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
137 def dcnsio = new DoAllocateNSIandNSSI()
138 dcnsio.createRelationship(execution)</bpmn:script>
139     </bpmn:scriptTask>
140     <bpmn:sequenceFlow id="SequenceFlow_05ovikm" sourceRef="ScriptTask_1r6kuwy" targetRef="IntermediateThrowEvent_0fx1nyj" />
141     <bpmn:scriptTask id="Task_1tv7jy5" name="Create RAN Slice Profile Instance" scriptFormat="groovy">
142       <bpmn:incoming>SequenceFlow_1m68yca</bpmn:incoming>
143       <bpmn:outgoing>SequenceFlow_1hfjn79</bpmn:outgoing>
144       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
145 def dcnsio = new DoAllocateNSIandNSSI()
146 dcnsio.createAnSliceProfileInstance(execution)</bpmn:script>
147     </bpmn:scriptTask>
148     <bpmn:scriptTask id="ScriptTask_1r2li91" name="Create RAN Slice Profile" scriptFormat="groovy">
149       <bpmn:incoming>SequenceFlow_1hfjn79</bpmn:incoming>
150       <bpmn:outgoing>SequenceFlow_0zbd2tq</bpmn:outgoing>
151       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
152 def dcnsio = new DoAllocateNSIandNSSI()
153 dcnsio.createAnSliceProfile(execution)</bpmn:script>
154     </bpmn:scriptTask>
155     <bpmn:sequenceFlow id="SequenceFlow_0zbd2tq" sourceRef="ScriptTask_1r2li91" targetRef="ScriptTask_0s8vhha" />
156     <bpmn:scriptTask id="Task_1en3luv" name="Create Core Slice Profile Instance" scriptFormat="groovy">
157       <bpmn:incoming>SequenceFlow_0k5iu2n</bpmn:incoming>
158       <bpmn:outgoing>SequenceFlow_0f36cu2</bpmn:outgoing>
159       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
160 def dcnsio = new DoAllocateNSIandNSSI()
161 dcnsio.createCnSliceProfileInstance(execution)</bpmn:script>
162     </bpmn:scriptTask>
163     <bpmn:scriptTask id="Task_1g8n8iz" name="Create Core Slice Profile" scriptFormat="groovy">
164       <bpmn:incoming>SequenceFlow_0f36cu2</bpmn:incoming>
165       <bpmn:outgoing>SequenceFlow_1wffel4</bpmn:outgoing>
166       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
167 def dcnsio = new DoAllocateNSIandNSSI()
168 dcnsio.createCnSliceProfile(execution)</bpmn:script>
169     </bpmn:scriptTask>
170     <bpmn:sequenceFlow id="SequenceFlow_0ax2c4p" sourceRef="ExclusiveGateway_19ru3hp" targetRef="EndEvent_02c8wsp" />
171     <bpmn:scriptTask id="ScriptTask_0stnvp3" name="Create TN (BH) Slice Profile" scriptFormat="groovy">
172       <bpmn:incoming>SequenceFlow_0paqrtx</bpmn:incoming>
173       <bpmn:outgoing>SequenceFlow_1d48cil</bpmn:outgoing>
174       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
175 def dcnsio = new DoAllocateNSIandNSSI()
176 dcnsio.createTnBHSliceProfileInstance(execution)</bpmn:script>
177     </bpmn:scriptTask>
178     <bpmn:scriptTask id="ScriptTask_1f4o46q" name="Create TN(BH) Slice Profile" scriptFormat="groovy">
179       <bpmn:incoming>SequenceFlow_1d48cil</bpmn:incoming>
180       <bpmn:outgoing>SequenceFlow_00dexhy</bpmn:outgoing>
181       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
182 def dcnsio = new DoAllocateNSIandNSSI()
183 dcnsio.createTnBHSliceProfile(execution)</bpmn:script>
184     </bpmn:scriptTask>
185     <bpmn:callActivity id="CallActivity_0b28wlb" name="Call DoAllocateNSSI(TN)" calledElement="DoAllocateNSSI">
186       <bpmn:extensionElements>
187         <camunda:in source="msoRequestId" target="msoRequestId" />
188         <camunda:out source="serviceDecomposition" target="serviceDecomposition" />
189         <camunda:out source="WorkflowException" target="WorkflowException" />
190         <camunda:in source="nsstInput" target="nsstInput" />
191         <camunda:in source="serviceProfile" target="serviceProfile" />
192         <camunda:in source="sliceProfileTn" target="sliceProfileTn" />
193         <camunda:in source="sliceProfileCn" target="sliceProfileCn" />
194         <camunda:in source="sliceProfileAn" target="sliceProfileAn" />
195         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
196         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
197         <camunda:in source="uuiRequest" target="uuiRequest" />
198         <camunda:in source="nsiServiceInstanceId" target="nsiServiceInstanceId" />
199         <camunda:in source="nsiServiceInstanceName" target="nsiServiceInstanceName" />
200         <camunda:in source="nssiserviceModelInfo" target="nssiserviceModelInfo" />
201         <camunda:in source="sliceTaskParams" target="sliceTaskParams" />
202         <camunda:in source="taskId" target="CSSOT_taskId" />
203         <camunda:in source="taskName" target="CSSOT_name" />
204         <camunda:in source="taskStatus" target="CSSOT_status" />
205         <camunda:in source="isManual" target="CSSOT_isManual" />
206         <camunda:in source="isNSIOptionAvailable" target="isNSIOptionAvailable" />
207         <camunda:in source="tnBHSliceTaskInfo" target="sliceTaskInfo" />
208         <camunda:out source="nssiAllocateResult" target="tnBHNssiAllocateResult" />
209         <camunda:in source="TnBHAllocateNssiNbiRequest" target="nbiRequest" />
210       </bpmn:extensionElements>
211       <bpmn:incoming>SequenceFlow_01isn2q</bpmn:incoming>
212       <bpmn:outgoing>SequenceFlow_1omynpt</bpmn:outgoing>
213     </bpmn:callActivity>
214     <bpmn:sequenceFlow id="SequenceFlow_1d48cil" sourceRef="ScriptTask_0stnvp3" targetRef="ScriptTask_1f4o46q" />
215     <bpmn:sequenceFlow id="SequenceFlow_00dexhy" sourceRef="ScriptTask_1f4o46q" targetRef="ScriptTask_0ci5g6y" />
216     <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_08wpvhs" name="Create Tn SliceProfile">
217       <bpmn:outgoing>SequenceFlow_0paqrtx</bpmn:outgoing>
218       <bpmn:linkEventDefinition id="LinkEventDefinition_1beugxy" name="CreateTnSliceProfile" />
219     </bpmn:intermediateCatchEvent>
220     <bpmn:sequenceFlow id="SequenceFlow_0paqrtx" sourceRef="IntermediateCatchEvent_08wpvhs" targetRef="ScriptTask_0stnvp3" />
221     <bpmn:scriptTask id="ScriptTask_0sssiii" name="Update relationship between NSI and NSSI" scriptFormat="groovy">
222       <bpmn:incoming>SequenceFlow_1omynpt</bpmn:incoming>
223       <bpmn:outgoing>SequenceFlow_150xio1</bpmn:outgoing>
224       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
225 def dcnsio = new DoAllocateNSIandNSSI()
226 dcnsio.updateTnBHRelationship(execution)</bpmn:script>
227     </bpmn:scriptTask>
228     <bpmn:sequenceFlow id="SequenceFlow_150xio1" sourceRef="ScriptTask_0sssiii" targetRef="EndEvent_0elqlhv" />
229     <bpmn:scriptTask id="ScriptTask_0mls87v" name="Update relationship between NSI and NSSI" scriptFormat="groovy">
230       <bpmn:incoming>SequenceFlow_1xb5nx1</bpmn:incoming>
231       <bpmn:outgoing>SequenceFlow_0xx5bwa</bpmn:outgoing>
232       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
233 def dcnsio = new DoAllocateNSIandNSSI()
234 dcnsio.updateAnRelationship(execution)</bpmn:script>
235     </bpmn:scriptTask>
236     <bpmn:sequenceFlow id="SequenceFlow_0xx5bwa" sourceRef="ScriptTask_0mls87v" targetRef="ExclusiveGateway_19ru3hp" />
237     <bpmn:scriptTask id="ScriptTask_0z9x5uh" name="Update relationship between NSI and NSSI" scriptFormat="groovy">
238       <bpmn:incoming>SequenceFlow_1l74seh</bpmn:incoming>
239       <bpmn:outgoing>SequenceFlow_0jqxxjq</bpmn:outgoing>
240       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
241 def dcnsio = new DoAllocateNSIandNSSI()
242 dcnsio.updateCnRelationship(execution)</bpmn:script>
243     </bpmn:scriptTask>
244     <bpmn:sequenceFlow id="SequenceFlow_1l74seh" sourceRef="CallActivity_1ixah3o" targetRef="ScriptTask_0z9x5uh" />
245     <bpmn:sequenceFlow id="SequenceFlow_0jqxxjq" sourceRef="ScriptTask_0z9x5uh" targetRef="ExclusiveGateway_19ru3hp" />
246     <bpmn:sequenceFlow id="SequenceFlow_1omynpt" sourceRef="CallActivity_0b28wlb" targetRef="ScriptTask_0sssiii" />
247     <bpmn:endEvent id="EndEvent_0elqlhv">
248       <bpmn:incoming>SequenceFlow_150xio1</bpmn:incoming>
249     </bpmn:endEvent>
250     <bpmn:intermediateThrowEvent id="EndEvent_02c8wsp" name="GoTo Create Tn SliceProfile">
251       <bpmn:incoming>SequenceFlow_0ax2c4p</bpmn:incoming>
252       <bpmn:linkEventDefinition name="CreateTnSliceProfile" />
253     </bpmn:intermediateThrowEvent>
254     <bpmn:scriptTask id="ScriptTask_0s8vhha" name="prepare Allocate An Nssi" scriptFormat="groovy">
255       <bpmn:incoming>SequenceFlow_0zbd2tq</bpmn:incoming>
256       <bpmn:outgoing>SequenceFlow_0npsyye</bpmn:outgoing>
257       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
258 def dcnsio = new DoAllocateNSIandNSSI()
259 dcnsio.prepareAllocateAnNssi(execution)</bpmn:script>
260     </bpmn:scriptTask>
261     <bpmn:sequenceFlow id="SequenceFlow_0npsyye" sourceRef="ScriptTask_0s8vhha" targetRef="CallActivity_1yh9tiq" />
262     <bpmn:scriptTask id="ScriptTask_0z0ec5b" name="prepare Allocate Cn Nssi" scriptFormat="groovy">
263       <bpmn:incoming>SequenceFlow_1wffel4</bpmn:incoming>
264       <bpmn:outgoing>SequenceFlow_0cwbtmr</bpmn:outgoing>
265       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
266 def dcnsio = new DoAllocateNSIandNSSI()
267 dcnsio.prepareAllocateCnNssi(execution)</bpmn:script>
268     </bpmn:scriptTask>
269     <bpmn:sequenceFlow id="SequenceFlow_0cwbtmr" sourceRef="ScriptTask_0z0ec5b" targetRef="CallActivity_1ixah3o" />
270     <bpmn:sequenceFlow id="SequenceFlow_1wffel4" sourceRef="Task_1g8n8iz" targetRef="ScriptTask_0z0ec5b" />
271     <bpmn:scriptTask id="ScriptTask_0ci5g6y" name="prepare Allocate Tn-BH Nssi" scriptFormat="groovy">
272       <bpmn:incoming>SequenceFlow_00dexhy</bpmn:incoming>
273       <bpmn:outgoing>SequenceFlow_01isn2q</bpmn:outgoing>
274       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
275 def dcnsio = new DoAllocateNSIandNSSI()
276 dcnsio.prepareAllocateTnBHNssi(execution)</bpmn:script>
277     </bpmn:scriptTask>
278     <bpmn:sequenceFlow id="SequenceFlow_01isn2q" sourceRef="ScriptTask_0ci5g6y" targetRef="CallActivity_0b28wlb" />
279   </bpmn:process>
280   <bpmn:message id="Message_1i10pf1" name="Message_2mc69tg" />
281   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
282     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoAllocateNSIandNSSIV2">
283       <bpmndi:BPMNShape id="StartEvent_1ym3sha_di" bpmnElement="StartEvent_1ym3sha">
284         <dc:Bounds x="138" y="122" width="36" height="36" />
285         <bpmndi:BPMNLabel>
286           <dc:Bounds x="144" y="165" width="25" height="14" />
287         </bpmndi:BPMNLabel>
288       </bpmndi:BPMNShape>
289       <bpmndi:BPMNEdge id="SequenceFlow_0xgfj7z_di" bpmnElement="SequenceFlow_0xgfj7z">
290         <di:waypoint x="174" y="140" />
291         <di:waypoint x="224" y="140" />
292       </bpmndi:BPMNEdge>
293       <bpmndi:BPMNShape id="ScriptTask_0q0td74_di" bpmnElement="Task_027u6m6">
294         <dc:Bounds x="224" y="100" width="100" height="80" />
295       </bpmndi:BPMNShape>
296       <bpmndi:BPMNShape id="ScriptTask_0qorxd9_di" bpmnElement="ScriptTask_0qorxd9">
297         <dc:Bounds x="404" y="100" width="100" height="80" />
298       </bpmndi:BPMNShape>
299       <bpmndi:BPMNEdge id="SequenceFlow_00aukg6_di" bpmnElement="SequenceFlow_00aukg6">
300         <di:waypoint x="324" y="140" />
301         <di:waypoint x="404" y="140" />
302       </bpmndi:BPMNEdge>
303       <bpmndi:BPMNShape id="ExclusiveGateway_00pt1ek_di" bpmnElement="ExclusiveGateway_00pt1ek" isMarkerVisible="true">
304         <dc:Bounds x="609" y="115" width="50" height="50" />
305         <bpmndi:BPMNLabel>
306           <dc:Bounds x="604" y="78" width="59" height="27" />
307         </bpmndi:BPMNLabel>
308       </bpmndi:BPMNShape>
309       <bpmndi:BPMNEdge id="SequenceFlow_1ggo6s5_di" bpmnElement="SequenceFlow_1ggo6s5">
310         <di:waypoint x="504" y="140" />
311         <di:waypoint x="609" y="140" />
312       </bpmndi:BPMNEdge>
313       <bpmndi:BPMNEdge id="SequenceFlow_0c986i9_di" bpmnElement="SequenceFlow_0c986i9">
314         <di:waypoint x="659" y="140" />
315         <di:waypoint x="800" y="140" />
316       </bpmndi:BPMNEdge>
317       <bpmndi:BPMNShape id="ScriptTask_1tizl6b_di" bpmnElement="ScriptTask_1tizl6b">
318         <dc:Bounds x="800" y="100" width="100" height="80" />
319       </bpmndi:BPMNShape>
320       <bpmndi:BPMNEdge id="SequenceFlow_1k3cspv_di" bpmnElement="SequenceFlow_1k3cspv">
321         <di:waypoint x="900" y="140" />
322         <di:waypoint x="970" y="140" />
323       </bpmndi:BPMNEdge>
324       <bpmndi:BPMNEdge id="SequenceFlow_03ye8m4_di" bpmnElement="SequenceFlow_03ye8m4">
325         <di:waypoint x="634" y="165" />
326         <di:waypoint x="634" y="260" />
327         <di:waypoint x="930" y="260" />
328       </bpmndi:BPMNEdge>
329       <bpmndi:BPMNShape id="IntermediateThrowEvent_0zuxkap_di" bpmnElement="IntermediateThrowEvent_0fx1nyj">
330         <dc:Bounds x="1412" y="122" width="36" height="36" />
331         <bpmndi:BPMNLabel>
332           <dc:Bounds x="1388" y="92" width="90" height="27" />
333         </bpmndi:BPMNLabel>
334       </bpmndi:BPMNShape>
335       <bpmndi:BPMNShape id="IntermediateCatchEvent_1u7g80x_di" bpmnElement="IntermediateThrowEvent_0k54pph">
336         <dc:Bounds x="138" y="502" width="36" height="36" />
337         <bpmndi:BPMNLabel>
338           <dc:Bounds x="126" y="545" width="60" height="27" />
339         </bpmndi:BPMNLabel>
340       </bpmndi:BPMNShape>
341       <bpmndi:BPMNEdge id="SequenceFlow_0ct8yh4_di" bpmnElement="SequenceFlow_0ct8yh4">
342         <di:waypoint x="174" y="520" />
343         <di:waypoint x="239" y="520" />
344       </bpmndi:BPMNEdge>
345       <bpmndi:BPMNShape id="ParallelGateway_0q9h79n_di" bpmnElement="ExclusiveGateway_00ufetn">
346         <dc:Bounds x="239" y="495" width="50" height="50" />
347       </bpmndi:BPMNShape>
348       <bpmndi:BPMNEdge id="SequenceFlow_1m68yca_di" bpmnElement="SequenceFlow_1m68yca">
349         <di:waypoint x="264" y="495" />
350         <di:waypoint x="264" y="440" />
351         <di:waypoint x="310" y="440" />
352       </bpmndi:BPMNEdge>
353       <bpmndi:BPMNEdge id="SequenceFlow_0k5iu2n_di" bpmnElement="SequenceFlow_0k5iu2n">
354         <di:waypoint x="264" y="545" />
355         <di:waypoint x="264" y="630" />
356         <di:waypoint x="310" y="630" />
357       </bpmndi:BPMNEdge>
358       <bpmndi:BPMNShape id="CallActivity_1yh9tiq_di" bpmnElement="CallActivity_1yh9tiq">
359         <dc:Bounds x="930" y="400" width="100" height="80" />
360       </bpmndi:BPMNShape>
361       <bpmndi:BPMNEdge id="SequenceFlow_1hfjn79_di" bpmnElement="SequenceFlow_1hfjn79">
362         <di:waypoint x="410" y="440" />
363         <di:waypoint x="530" y="440" />
364       </bpmndi:BPMNEdge>
365       <bpmndi:BPMNShape id="CallActivity_1ixah3o_di" bpmnElement="CallActivity_1ixah3o">
366         <dc:Bounds x="930" y="590" width="100" height="80" />
367       </bpmndi:BPMNShape>
368       <bpmndi:BPMNEdge id="SequenceFlow_0f36cu2_di" bpmnElement="SequenceFlow_0f36cu2">
369         <di:waypoint x="410" y="630" />
370         <di:waypoint x="530" y="630" />
371       </bpmndi:BPMNEdge>
372       <bpmndi:BPMNEdge id="SequenceFlow_1xb5nx1_di" bpmnElement="SequenceFlow_1xb5nx1">
373         <di:waypoint x="1030" y="440" />
374         <di:waypoint x="1140" y="440" />
375       </bpmndi:BPMNEdge>
376       <bpmndi:BPMNShape id="ParallelGateway_15vgf7c_di" bpmnElement="ExclusiveGateway_19ru3hp">
377         <dc:Bounds x="1325" y="505" width="50" height="50" />
378       </bpmndi:BPMNShape>
379       <bpmndi:BPMNShape id="ScriptTask_07sgklo_di" bpmnElement="ScriptTask_07sgklo">
380         <dc:Bounds x="930" y="220" width="100" height="80" />
381       </bpmndi:BPMNShape>
382       <bpmndi:BPMNEdge id="SequenceFlow_0t0wddg_di" bpmnElement="SequenceFlow_0t0wddg">
383         <di:waypoint x="1030" y="260" />
384         <di:waypoint x="1430" y="260" />
385         <di:waypoint x="1430" y="158" />
386       </bpmndi:BPMNEdge>
387       <bpmndi:BPMNShape id="ScriptTask_1r6kuwy_di" bpmnElement="ScriptTask_1r6kuwy">
388         <dc:Bounds x="970" y="100" width="100" height="80" />
389       </bpmndi:BPMNShape>
390       <bpmndi:BPMNEdge id="SequenceFlow_05ovikm_di" bpmnElement="SequenceFlow_05ovikm">
391         <di:waypoint x="1070" y="140" />
392         <di:waypoint x="1412" y="140" />
393       </bpmndi:BPMNEdge>
394       <bpmndi:BPMNShape id="ScriptTask_17cq3xj_di" bpmnElement="Task_1tv7jy5">
395         <dc:Bounds x="310" y="400" width="100" height="80" />
396       </bpmndi:BPMNShape>
397       <bpmndi:BPMNShape id="ScriptTask_1r2li91_di" bpmnElement="ScriptTask_1r2li91">
398         <dc:Bounds x="530" y="400" width="100" height="80" />
399       </bpmndi:BPMNShape>
400       <bpmndi:BPMNEdge id="SequenceFlow_0zbd2tq_di" bpmnElement="SequenceFlow_0zbd2tq">
401         <di:waypoint x="630" y="440" />
402         <di:waypoint x="730" y="440" />
403       </bpmndi:BPMNEdge>
404       <bpmndi:BPMNShape id="ScriptTask_01n5nmt_di" bpmnElement="Task_1en3luv">
405         <dc:Bounds x="310" y="590" width="100" height="80" />
406       </bpmndi:BPMNShape>
407       <bpmndi:BPMNShape id="ScriptTask_0juh1xy_di" bpmnElement="Task_1g8n8iz">
408         <dc:Bounds x="530" y="590" width="100" height="80" />
409       </bpmndi:BPMNShape>
410       <bpmndi:BPMNEdge id="SequenceFlow_0ax2c4p_di" bpmnElement="SequenceFlow_0ax2c4p">
411         <di:waypoint x="1375" y="530" />
412         <di:waypoint x="1412" y="530" />
413       </bpmndi:BPMNEdge>
414       <bpmndi:BPMNShape id="ScriptTask_0stnvp3_di" bpmnElement="ScriptTask_0stnvp3">
415         <dc:Bounds x="310" y="840" width="100" height="80" />
416       </bpmndi:BPMNShape>
417       <bpmndi:BPMNShape id="ScriptTask_1f4o46q_di" bpmnElement="ScriptTask_1f4o46q">
418         <dc:Bounds x="530" y="840" width="100" height="80" />
419       </bpmndi:BPMNShape>
420       <bpmndi:BPMNShape id="CallActivity_0b28wlb_di" bpmnElement="CallActivity_0b28wlb">
421         <dc:Bounds x="930" y="840" width="100" height="80" />
422       </bpmndi:BPMNShape>
423       <bpmndi:BPMNEdge id="SequenceFlow_1d48cil_di" bpmnElement="SequenceFlow_1d48cil">
424         <di:waypoint x="410" y="880" />
425         <di:waypoint x="530" y="880" />
426       </bpmndi:BPMNEdge>
427       <bpmndi:BPMNEdge id="SequenceFlow_00dexhy_di" bpmnElement="SequenceFlow_00dexhy">
428         <di:waypoint x="630" y="880" />
429         <di:waypoint x="730" y="880" />
430       </bpmndi:BPMNEdge>
431       <bpmndi:BPMNShape id="IntermediateCatchEvent_08wpvhs_di" bpmnElement="IntermediateCatchEvent_08wpvhs">
432         <dc:Bounds x="138" y="862" width="36" height="36" />
433         <bpmndi:BPMNLabel>
434           <dc:Bounds x="129" y="905" width="56" height="27" />
435         </bpmndi:BPMNLabel>
436       </bpmndi:BPMNShape>
437       <bpmndi:BPMNEdge id="SequenceFlow_0paqrtx_di" bpmnElement="SequenceFlow_0paqrtx">
438         <di:waypoint x="174" y="880" />
439         <di:waypoint x="310" y="880" />
440       </bpmndi:BPMNEdge>
441       <bpmndi:BPMNShape id="ScriptTask_0sssiii_di" bpmnElement="ScriptTask_0sssiii">
442         <dc:Bounds x="1140" y="840" width="100" height="80" />
443       </bpmndi:BPMNShape>
444       <bpmndi:BPMNEdge id="SequenceFlow_150xio1_di" bpmnElement="SequenceFlow_150xio1">
445         <di:waypoint x="1240" y="880" />
446         <di:waypoint x="1412" y="880" />
447       </bpmndi:BPMNEdge>
448       <bpmndi:BPMNShape id="ScriptTask_0mls87v_di" bpmnElement="ScriptTask_0mls87v">
449         <dc:Bounds x="1140" y="400" width="100" height="80" />
450       </bpmndi:BPMNShape>
451       <bpmndi:BPMNEdge id="SequenceFlow_0xx5bwa_di" bpmnElement="SequenceFlow_0xx5bwa">
452         <di:waypoint x="1240" y="440" />
453         <di:waypoint x="1350" y="440" />
454         <di:waypoint x="1350" y="505" />
455       </bpmndi:BPMNEdge>
456       <bpmndi:BPMNShape id="ScriptTask_0z9x5uh_di" bpmnElement="ScriptTask_0z9x5uh">
457         <dc:Bounds x="1140" y="590" width="100" height="80" />
458       </bpmndi:BPMNShape>
459       <bpmndi:BPMNEdge id="SequenceFlow_1l74seh_di" bpmnElement="SequenceFlow_1l74seh">
460         <di:waypoint x="1030" y="630" />
461         <di:waypoint x="1140" y="630" />
462       </bpmndi:BPMNEdge>
463       <bpmndi:BPMNEdge id="SequenceFlow_0jqxxjq_di" bpmnElement="SequenceFlow_0jqxxjq">
464         <di:waypoint x="1240" y="630" />
465         <di:waypoint x="1350" y="630" />
466         <di:waypoint x="1350" y="555" />
467       </bpmndi:BPMNEdge>
468       <bpmndi:BPMNEdge id="SequenceFlow_1omynpt_di" bpmnElement="SequenceFlow_1omynpt">
469         <di:waypoint x="1030" y="880" />
470         <di:waypoint x="1140" y="880" />
471       </bpmndi:BPMNEdge>
472       <bpmndi:BPMNShape id="EndEvent_0elqlhv_di" bpmnElement="EndEvent_0elqlhv">
473         <dc:Bounds x="1412" y="862" width="36" height="36" />
474       </bpmndi:BPMNShape>
475       <bpmndi:BPMNShape id="IntermediateThrowEvent_0gz4vi6_di" bpmnElement="EndEvent_02c8wsp">
476         <dc:Bounds x="1412" y="512" width="36" height="36" />
477         <bpmndi:BPMNLabel>
478           <dc:Bounds x="1392" y="555" width="79" height="27" />
479         </bpmndi:BPMNLabel>
480       </bpmndi:BPMNShape>
481       <bpmndi:BPMNShape id="ScriptTask_0s8vhha_di" bpmnElement="ScriptTask_0s8vhha">
482         <dc:Bounds x="730" y="400" width="100" height="80" />
483       </bpmndi:BPMNShape>
484       <bpmndi:BPMNEdge id="SequenceFlow_0npsyye_di" bpmnElement="SequenceFlow_0npsyye">
485         <di:waypoint x="830" y="440" />
486         <di:waypoint x="930" y="440" />
487       </bpmndi:BPMNEdge>
488       <bpmndi:BPMNShape id="ScriptTask_0z0ec5b_di" bpmnElement="ScriptTask_0z0ec5b">
489         <dc:Bounds x="730" y="590" width="100" height="80" />
490       </bpmndi:BPMNShape>
491       <bpmndi:BPMNEdge id="SequenceFlow_0cwbtmr_di" bpmnElement="SequenceFlow_0cwbtmr">
492         <di:waypoint x="830" y="630" />
493         <di:waypoint x="930" y="630" />
494       </bpmndi:BPMNEdge>
495       <bpmndi:BPMNEdge id="SequenceFlow_1wffel4_di" bpmnElement="SequenceFlow_1wffel4">
496         <di:waypoint x="630" y="630" />
497         <di:waypoint x="730" y="630" />
498       </bpmndi:BPMNEdge>
499       <bpmndi:BPMNShape id="ScriptTask_0ci5g6y_di" bpmnElement="ScriptTask_0ci5g6y">
500         <dc:Bounds x="730" y="840" width="100" height="80" />
501       </bpmndi:BPMNShape>
502       <bpmndi:BPMNEdge id="SequenceFlow_01isn2q_di" bpmnElement="SequenceFlow_01isn2q">
503         <di:waypoint x="830" y="880" />
504         <di:waypoint x="930" y="880" />
505       </bpmndi:BPMNEdge>
506     </bpmndi:BPMNPlane>
507   </bpmndi:BPMNDiagram>
508 </bpmn:definitions>