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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_0884541" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.2">
3 <bpmn:process id="DoDeallocateNSSIV1" name="DoDeallocateNSSIV1" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1" name="start">
5 <bpmn:outgoing>SequenceFlow_05jfhy6</bpmn:outgoing>
7 <bpmn:sequenceFlow id="SequenceFlow_05jfhy6" sourceRef="StartEvent_1" targetRef="Task_1vste9s" />
8 <bpmn:scriptTask id="Task_1m8upus" name="Prepare Decompose Service" scriptFormat="groovy">
9 <bpmn:incoming>SequenceFlow_0eug5nv</bpmn:incoming>
10 <bpmn:outgoing>SequenceFlow_0wlyy5i</bpmn:outgoing>
11 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
12 def dnssi= new DoDeallocateNSSI()
13 dnssi.prepareDecomposeService(execution)</bpmn:script>
15 <bpmn:sequenceFlow id="SequenceFlow_0wlyy5i" sourceRef="Task_1m8upus" targetRef="Task_1giechg" />
16 <bpmn:callActivity id="Task_1giechg" name="Call Decompose Service" calledElement="DecomposeService">
17 <bpmn:extensionElements>
18 <camunda:in source="msoRequestId" target="msoRequestId" />
19 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
20 <camunda:in source="serviceModelInfo" target="serviceModelInfo" />
21 <camunda:out source="serviceDecomposition" target="serviceDecomposition" />
22 <camunda:out source="serviceDecompositionString" target="serviceDecompositionString" />
23 </bpmn:extensionElements>
24 <bpmn:incoming>SequenceFlow_0wlyy5i</bpmn:incoming>
25 <bpmn:outgoing>SequenceFlow_1e451y9</bpmn:outgoing>
27 <bpmn:sequenceFlow id="SequenceFlow_1e451y9" sourceRef="Task_1giechg" targetRef="Task_15ut397" />
28 <bpmn:scriptTask id="Task_15ut397" name="processDecomposition" scriptFormat="groovy">
29 <bpmn:incoming>SequenceFlow_1e451y9</bpmn:incoming>
30 <bpmn:outgoing>SequenceFlow_1e7o57n</bpmn:outgoing>
31 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
32 def dnssi= new DoDeallocateNSSI()
33 dnssi.processDecomposition(execution)</bpmn:script>
35 <bpmn:sequenceFlow id="SequenceFlow_1e7o57n" sourceRef="Task_15ut397" targetRef="Task_0vi4ijv" />
36 <bpmn:scriptTask id="Task_0vi4ijv" name="Send deallocate request to NSSMF" scriptFormat="groovy">
37 <bpmn:incoming>SequenceFlow_1e7o57n</bpmn:incoming>
38 <bpmn:outgoing>SequenceFlow_1wj89r5</bpmn:outgoing>
39 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
40 def dnssi= new DoDeallocateNSSI()
41 dnssi.sendRequestToNSSMF(execution)</bpmn:script>
43 <bpmn:exclusiveGateway id="ExclusiveGateway_0nhfsui" name="Is deallocate finish?">
44 <bpmn:incoming>SequenceFlow_02327ff</bpmn:incoming>
45 <bpmn:outgoing>SequenceFlow_0xq380j</bpmn:outgoing>
46 <bpmn:outgoing>SequenceFlow_1wpbkt9</bpmn:outgoing>
47 </bpmn:exclusiveGateway>
48 <bpmn:scriptTask id="Task_13vaezk" name="Delete Slice Profile From AAI" scriptFormat="groovy">
49 <bpmn:incoming>SequenceFlow_0xq380j</bpmn:incoming>
50 <bpmn:outgoing>SequenceFlow_1ii5002</bpmn:outgoing>
51 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
52 def dnssi= new DoDeallocateNSSI()
53 dnssi.delSliceProfileFromAAI(execution)</bpmn:script>
55 <bpmn:endEvent id="EndEvent_1f579t4" name="end">
56 <bpmn:incoming>SequenceFlow_1ii5002</bpmn:incoming>
58 <bpmn:sequenceFlow id="SequenceFlow_1ii5002" sourceRef="Task_13vaezk" targetRef="EndEvent_1f579t4" />
59 <bpmn:sequenceFlow id="SequenceFlow_0xq380j" name="yes" sourceRef="ExclusiveGateway_0nhfsui" targetRef="Task_13vaezk">
60 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isNSSIDeAllocated" ) == true)}</bpmn:conditionExpression>
62 <bpmn:sequenceFlow id="SequenceFlow_0eug5nv" sourceRef="Task_1vste9s" targetRef="Task_1m8upus" />
63 <bpmn:scriptTask id="Task_1vste9s" name="PreProcess Incoming Request" scriptFormat="groovy">
64 <bpmn:incoming>SequenceFlow_05jfhy6</bpmn:incoming>
65 <bpmn:outgoing>SequenceFlow_0eug5nv</bpmn:outgoing>
66 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
67 def dnssi= new DoDeallocateNSSI()
68 dnssi.preProcessRequest(execution)</bpmn:script>
70 <bpmn:serviceTask id="Task_0amt4hu" name="Update Service Operation Status">
71 <bpmn:extensionElements>
74 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
75 <camunda:inputParameter name="headers">
77 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
78 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
80 </camunda:inputParameter>
81 <camunda:inputParameter name="payload">${updateOperationStatus}</camunda:inputParameter>
82 <camunda:inputParameter name="method">POST</camunda:inputParameter>
83 <camunda:outputParameter name="DeNSSI_dbResponseCode">${statusCode}</camunda:outputParameter>
84 <camunda:outputParameter name="DeNSSI_dbResponse">${response}</camunda:outputParameter>
85 </camunda:inputOutput>
86 <camunda:connectorId>http-connector</camunda:connectorId>
88 </bpmn:extensionElements>
89 <bpmn:incoming>SequenceFlow_19cdxhv</bpmn:incoming>
90 <bpmn:outgoing>SequenceFlow_02327ff</bpmn:outgoing>
92 <bpmn:scriptTask id="Task_1renmzf" name="Prepare Update Operation Status" scriptFormat="groovy">
93 <bpmn:incoming>SequenceFlow_0o7qjoo</bpmn:incoming>
94 <bpmn:outgoing>SequenceFlow_19cdxhv</bpmn:outgoing>
95 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
96 def dnssi= new DoDeallocateNSSI()
97 dnssi.prepareUpdateOperationStatus(execution)</bpmn:script>
99 <bpmn:callActivity id="Task_1x3et9h" name="Query Job Status" calledElement="QueryJobStatus">
100 <bpmn:extensionElements>
101 <camunda:in source="msoRequestId" target="msoRequestId" />
102 <camunda:in source="esrInfo" target="esrInfo" />
103 <camunda:in source="serviceInfo" target="serviceInfo" />
104 <camunda:in source="jobId" target="jobId" />
105 <camunda:in source="responseId" target="responseId" />
106 <camunda:out source="responseDescriptor" target="responseDescriptor" />
107 </bpmn:extensionElements>
108 <bpmn:incoming>SequenceFlow_0w01l14</bpmn:incoming>
109 <bpmn:outgoing>SequenceFlow_10nogqz</bpmn:outgoing>
111 <bpmn:sequenceFlow id="SequenceFlow_10nogqz" sourceRef="Task_1x3et9h" targetRef="Task_1v3sdzq" />
112 <bpmn:sequenceFlow id="SequenceFlow_1wj89r5" sourceRef="Task_0vi4ijv" targetRef="Task_1vt5xaa" />
113 <bpmn:scriptTask id="Task_1v3sdzq" name="Handle Job Status" scriptFormat="groovy">
114 <bpmn:incoming>SequenceFlow_10nogqz</bpmn:incoming>
115 <bpmn:outgoing>SequenceFlow_0o7qjoo</bpmn:outgoing>
116 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
117 def dnssi= new DoDeallocateNSSI()
118 dnssi.handleJobStatus(execution)</bpmn:script>
120 <bpmn:sequenceFlow id="SequenceFlow_0o7qjoo" sourceRef="Task_1v3sdzq" targetRef="Task_1renmzf" />
121 <bpmn:scriptTask id="Task_1vt5xaa" name="prepare QueryJobStatus Request" scriptFormat="groovy">
122 <bpmn:incoming>SequenceFlow_1wj89r5</bpmn:incoming>
123 <bpmn:outgoing>SequenceFlow_0w01l14</bpmn:outgoing>
124 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
125 def dnssi= new DoDeallocateNSSI()
126 dnssi.prepareJobStatusRequest(execution)</bpmn:script>
128 <bpmn:sequenceFlow id="SequenceFlow_0w01l14" sourceRef="Task_1vt5xaa" targetRef="Task_1x3et9h" />
129 <bpmn:sequenceFlow id="SequenceFlow_19cdxhv" sourceRef="Task_1renmzf" targetRef="Task_0amt4hu" />
130 <bpmn:sequenceFlow id="SequenceFlow_02327ff" sourceRef="Task_0amt4hu" targetRef="ExclusiveGateway_0nhfsui" />
131 <bpmn:endEvent id="Event_11u9vp2">
132 <bpmn:incoming>SequenceFlow_1wpbkt9</bpmn:incoming>
133 <bpmn:errorEventDefinition id="ErrorEventDefinition_11pdh1q" errorRef="Error_1o5kb95" />
135 <bpmn:sequenceFlow id="SequenceFlow_1wpbkt9" name="no" sourceRef="ExclusiveGateway_0nhfsui" targetRef="Event_11u9vp2" />
137 <bpmn:error id="Error_1o5kb95" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
138 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
139 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoDeallocateNSSIV1">
140 <bpmndi:BPMNEdge id="Flow_1wpbkt9_di" bpmnElement="SequenceFlow_1wpbkt9">
141 <di:waypoint x="1860" y="155" />
142 <di:waypoint x="1860" y="212" />
144 <dc:Bounds x="1869" y="165" width="13" height="14" />
147 <bpmndi:BPMNEdge id="Flow_02327ff_di" bpmnElement="SequenceFlow_02327ff">
148 <di:waypoint x="1770" y="130" />
149 <di:waypoint x="1835" y="130" />
151 <bpmndi:BPMNEdge id="Flow_19cdxhv_di" bpmnElement="SequenceFlow_19cdxhv">
152 <di:waypoint x="1610" y="130" />
153 <di:waypoint x="1670" y="130" />
155 <bpmndi:BPMNEdge id="Flow_0w01l14_di" bpmnElement="SequenceFlow_0w01l14">
156 <di:waypoint x="1120" y="130" />
157 <di:waypoint x="1190" y="130" />
159 <bpmndi:BPMNEdge id="Flow_0o7qjoo_di" bpmnElement="SequenceFlow_0o7qjoo">
160 <di:waypoint x="1450" y="130" />
161 <di:waypoint x="1510" y="130" />
163 <bpmndi:BPMNEdge id="Flow_1wj89r5_di" bpmnElement="SequenceFlow_1wj89r5">
164 <di:waypoint x="970" y="130" />
165 <di:waypoint x="1020" y="130" />
167 <bpmndi:BPMNEdge id="Flow_10nogqz_di" bpmnElement="SequenceFlow_10nogqz">
168 <di:waypoint x="1290" y="130" />
169 <di:waypoint x="1350" y="130" />
171 <bpmndi:BPMNEdge id="SequenceFlow_0eug5nv_di" bpmnElement="SequenceFlow_0eug5nv">
172 <di:waypoint x="340" y="130" />
173 <di:waypoint x="390" y="130" />
175 <bpmndi:BPMNEdge id="SequenceFlow_0xq380j_di" bpmnElement="SequenceFlow_0xq380j">
176 <di:waypoint x="1885" y="130" />
177 <di:waypoint x="1940" y="130" />
179 <dc:Bounds x="1904" y="112" width="17" height="14" />
182 <bpmndi:BPMNEdge id="SequenceFlow_1ii5002_di" bpmnElement="SequenceFlow_1ii5002">
183 <di:waypoint x="2040" y="130" />
184 <di:waypoint x="2102" y="130" />
186 <bpmndi:BPMNEdge id="SequenceFlow_1e7o57n_di" bpmnElement="SequenceFlow_1e7o57n">
187 <di:waypoint x="800" y="130" />
188 <di:waypoint x="870" y="130" />
190 <bpmndi:BPMNEdge id="SequenceFlow_1e451y9_di" bpmnElement="SequenceFlow_1e451y9">
191 <di:waypoint x="650" y="130" />
192 <di:waypoint x="700" y="130" />
194 <bpmndi:BPMNEdge id="SequenceFlow_0wlyy5i_di" bpmnElement="SequenceFlow_0wlyy5i">
195 <di:waypoint x="490" y="130" />
196 <di:waypoint x="550" y="130" />
198 <bpmndi:BPMNEdge id="SequenceFlow_05jfhy6_di" bpmnElement="SequenceFlow_05jfhy6">
199 <di:waypoint x="188" y="130" />
200 <di:waypoint x="240" y="130" />
202 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
203 <dc:Bounds x="152" y="112" width="36" height="36" />
205 <dc:Bounds x="159" y="155" width="23" height="14" />
208 <bpmndi:BPMNShape id="ScriptTask_159g5ey_di" bpmnElement="Task_1m8upus">
209 <dc:Bounds x="390" y="90" width="100" height="80" />
211 <bpmndi:BPMNShape id="CallActivity_1ep4ama_di" bpmnElement="Task_1giechg">
212 <dc:Bounds x="550" y="90" width="100" height="80" />
214 <bpmndi:BPMNShape id="ScriptTask_1yt5s46_di" bpmnElement="Task_15ut397">
215 <dc:Bounds x="700" y="90" width="100" height="80" />
217 <bpmndi:BPMNShape id="ScriptTask_16dxpvz_di" bpmnElement="Task_0vi4ijv">
218 <dc:Bounds x="870" y="90" width="100" height="80" />
220 <bpmndi:BPMNShape id="ExclusiveGateway_0nhfsui_di" bpmnElement="ExclusiveGateway_0nhfsui" isMarkerVisible="true">
221 <dc:Bounds x="1835" y="105" width="50" height="50" />
223 <dc:Bounds x="1831" y="75" width="63" height="27" />
226 <bpmndi:BPMNShape id="ScriptTask_1rfdrw3_di" bpmnElement="Task_13vaezk">
227 <dc:Bounds x="1940" y="90" width="100" height="80" />
229 <bpmndi:BPMNShape id="EndEvent_1f579t4_di" bpmnElement="EndEvent_1f579t4">
230 <dc:Bounds x="2102" y="112" width="36" height="36" />
232 <dc:Bounds x="2111" y="155" width="19" height="14" />
235 <bpmndi:BPMNShape id="ScriptTask_1dytya8_di" bpmnElement="Task_1vste9s">
236 <dc:Bounds x="240" y="90" width="100" height="80" />
238 <bpmndi:BPMNShape id="ServiceTask_0vegqix_di" bpmnElement="Task_0amt4hu">
239 <dc:Bounds x="1670" y="90" width="100" height="80" />
241 <bpmndi:BPMNShape id="ScriptTask_10pw6ot_di" bpmnElement="Task_1renmzf">
242 <dc:Bounds x="1510" y="90" width="100" height="80" />
244 <bpmndi:BPMNShape id="Activity_1x3et9h_di" bpmnElement="Task_1x3et9h">
245 <dc:Bounds x="1190" y="90" width="100" height="80" />
247 <bpmndi:BPMNShape id="Activity_1v3sdzq_di" bpmnElement="Task_1v3sdzq">
248 <dc:Bounds x="1350" y="90" width="100" height="80" />
250 <bpmndi:BPMNShape id="Activity_1vt5xaa_di" bpmnElement="Task_1vt5xaa">
251 <dc:Bounds x="1020" y="90" width="100" height="80" />
253 <bpmndi:BPMNShape id="Event_11u9vp2_di" bpmnElement="Event_11u9vp2">
254 <dc:Bounds x="1842" y="212" width="36" height="36" />
257 </bpmndi:BPMNDiagram>