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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_0prw6yo" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="2.2.3">
3 <bpmn:process id="DeleteSliceService" name="DeleteSliceService" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1" name="start">
5 <bpmn:outgoing>SequenceFlow_1ti9sxe</bpmn:outgoing>
7 <bpmn:sequenceFlow id="SequenceFlow_0xmiev9" sourceRef="Task_1f3k0gq" targetRef="Task_0gsr9fu" />
8 <bpmn:sequenceFlow id="SequenceFlow_1ti9sxe" sourceRef="StartEvent_1" targetRef="Task_1f3k0gq" />
9 <bpmn:scriptTask id="Task_1f3k0gq" name="PreProcess Incoming Request" scriptFormat="groovy">
10 <bpmn:incoming>SequenceFlow_1ti9sxe</bpmn:incoming>
11 <bpmn:outgoing>SequenceFlow_0xmiev9</bpmn:outgoing>
12 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
13 def dss= new DeleteSliceService()
14 dss.preProcessRequest(execution)</bpmn:script>
16 <bpmn:serviceTask id="Task_0gsr9fu" name="Init Service Operation Status">
17 <bpmn:extensionElements>
20 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
21 <camunda:inputParameter name="headers">
23 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
24 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
26 </camunda:inputParameter>
27 <camunda:inputParameter name="payload">${updateOperationStatus}</camunda:inputParameter>
28 <camunda:inputParameter name="method">POST</camunda:inputParameter>
29 <camunda:outputParameter name="NSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
30 <camunda:outputParameter name="NSMF_dbResponse">${response}</camunda:outputParameter>
31 </camunda:inputOutput>
32 <camunda:connectorId>http-connector</camunda:connectorId>
34 </bpmn:extensionElements>
35 <bpmn:incoming>SequenceFlow_0xmiev9</bpmn:incoming>
36 <bpmn:outgoing>SequenceFlow_0uehx9h</bpmn:outgoing>
38 <bpmn:sequenceFlow id="SequenceFlow_0uehx9h" sourceRef="Task_0gsr9fu" targetRef="Task_0walqr6" />
39 <bpmn:scriptTask id="Task_0walqr6" name="Send Async Ack Response" scriptFormat="groovy">
40 <bpmn:incoming>SequenceFlow_0uehx9h</bpmn:incoming>
41 <bpmn:outgoing>SequenceFlow_16lh6o6</bpmn:outgoing>
42 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
43 def dss= new DeleteSliceService()
44 dss.sendAsyncResponse(execution)</bpmn:script>
46 <bpmn:sequenceFlow id="SequenceFlow_16lh6o6" sourceRef="Task_0walqr6" targetRef="Task_04n2tl9" />
47 <bpmn:exclusiveGateway id="ExclusiveGateway_1mcgr3m" name="success?">
48 <bpmn:incoming>SequenceFlow_0nl4kfh</bpmn:incoming>
49 <bpmn:outgoing>SequenceFlow_0wel7ie</bpmn:outgoing>
50 <bpmn:outgoing>SequenceFlow_0eqx2y2</bpmn:outgoing>
51 </bpmn:exclusiveGateway>
52 <bpmn:sequenceFlow id="SequenceFlow_0nl4kfh" sourceRef="Task_04n2tl9" targetRef="ExclusiveGateway_1mcgr3m" />
53 <bpmn:sequenceFlow id="SequenceFlow_0wel7ie" name="yes" sourceRef="ExclusiveGateway_1mcgr3m" targetRef="Task_01siwzc">
54 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("WorkflowException") == null}</bpmn:conditionExpression>
56 <bpmn:sequenceFlow id="SequenceFlow_0eqx2y2" name="no" sourceRef="ExclusiveGateway_1mcgr3m" targetRef="EndEvent_02ix4tc" />
57 <bpmn:endEvent id="EndEvent_02ix4tc">
58 <bpmn:incoming>SequenceFlow_0eqx2y2</bpmn:incoming>
59 <bpmn:errorEventDefinition errorRef="Error_1jz8wj7" />
61 <bpmn:sequenceFlow id="SequenceFlow_18oizb2" sourceRef="Task_0k1pi3g" targetRef="Task_1vklzip" />
62 <bpmn:scriptTask id="Task_0k1pi3g" name="Delete slice service From AAI" scriptFormat="groovy">
63 <bpmn:incoming>SequenceFlow_0wel7ie</bpmn:incoming>
64 <bpmn:outgoing>SequenceFlow_18oizb2</bpmn:outgoing>
65 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
66 def dss= new DeleteSliceService()
67 dss.deleteSliceServiceInstance(execution)</bpmn:script>
69 <bpmn:serviceTask id="Task_1vklzip" name="Update Service Operation Status to Success">
70 <bpmn:extensionElements>
73 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
74 <camunda:inputParameter name="headers">
76 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
77 <camunda:entry key="Authorization">${UrnPropertiesReader.getVariable("mso.adapters.requestDb.auth", execution)}</camunda:entry>
79 </camunda:inputParameter>
80 <camunda:inputParameter name="payload">${updateOperationStatus}</camunda:inputParameter>
81 <camunda:inputParameter name="method">POST</camunda:inputParameter>
82 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
83 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
84 </camunda:inputOutput>
85 <camunda:connectorId>http-connector</camunda:connectorId>
87 </bpmn:extensionElements>
88 <bpmn:incoming>SequenceFlow_18oizb2</bpmn:incoming>
89 <bpmn:outgoing>SequenceFlow_1oxmm7d</bpmn:outgoing>
91 <bpmn:endEvent id="EndEvent_0tyqdpw" name="End">
92 <bpmn:incoming>SequenceFlow_1oxmm7d</bpmn:incoming>
94 <bpmn:sequenceFlow id="SequenceFlow_1oxmm7d" sourceRef="Task_1vklzip" targetRef="EndEvent_0tyqdpw" />
95 <bpmn:callActivity id="Task_04n2tl9" name="Do Delete SliceServiceV1" calledElement="DoDeleteSliceServiceV1">
96 <bpmn:extensionElements>
97 <camunda:in source="msoRequestId" target="msoRequestId" />
98 <camunda:in source="serviceInstanceId" target="serviceInstanceId" />
99 <camunda:in source="serviceModelInfo" target="serviceModelInfo" />
100 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
101 <camunda:in source="serviceType" target="serviceType" />
102 <camunda:in source="operationId" target="operationId" />
103 <camunda:in source="operationType" target="operationType" />
104 <camunda:out source="WorkflowException" target="WorkflowException" />
105 <camunda:in source="scriptName" target="scriptName" />
106 </bpmn:extensionElements>
107 <bpmn:incoming>SequenceFlow_16lh6o6</bpmn:incoming>
108 <bpmn:outgoing>SequenceFlow_0nl4kfh</bpmn:outgoing>
110 <bpmn:scriptTask id="Task_01siwzc" name="Delete Service Profile From AAI" scriptFormat="groovy">
111 <bpmn:incoming>SequenceFlow_0wel7ie</bpmn:incoming>
112 <bpmn:outgoing>SequenceFlow_142j1q2</bpmn:outgoing>
113 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
114 def dss= new DeleteSliceService()
115 dss.delServiceProfileFromAAI(execution)</bpmn:script>
117 <bpmn:sequenceFlow id="SequenceFlow_142j1q2" sourceRef="Task_01siwzc" targetRef="Task_0k1pi3g" />
118 <bpmn:subProcess id="SubProcess_07kf25g" name="Java Exception Handling Sub Process" triggeredByEvent="true">
119 <bpmn:startEvent id="StartEvent_1qskwib">
120 <bpmn:outgoing>SequenceFlow_0x8msq9</bpmn:outgoing>
121 <bpmn:errorEventDefinition id="ErrorEventDefinition_1mmlos4" />
123 <bpmn:endEvent id="EndEvent_086jahv">
124 <bpmn:incoming>SequenceFlow_10lwgo7</bpmn:incoming>
126 <bpmn:sequenceFlow id="SequenceFlow_0x8msq9" sourceRef="StartEvent_1qskwib" targetRef="ScriptTask_19sjlk2" />
127 <bpmn:scriptTask id="ScriptTask_19sjlk2" name="Send Error Response" scriptFormat="groovy">
128 <bpmn:incoming>SequenceFlow_0x8msq9</bpmn:incoming>
129 <bpmn:outgoing>SequenceFlow_1ihiv5k</bpmn:outgoing>
130 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
131 def dss = new DeleteCustomE2EServiceInstance()
132 dss.sendSyncError(execution)</bpmn:script>
134 <bpmn:sequenceFlow id="SequenceFlow_1ihiv5k" sourceRef="ScriptTask_19sjlk2" targetRef="Task_1fxg7am" />
135 <bpmn:sequenceFlow id="SequenceFlow_0zvzs12" sourceRef="Task_1fxg7am" targetRef="ServiceTask_17jq3cx" />
136 <bpmn:scriptTask id="Task_1fxg7am" name="Termination Service Operation Status" scriptFormat="groovy">
137 <bpmn:incoming>SequenceFlow_1ihiv5k</bpmn:incoming>
138 <bpmn:outgoing>SequenceFlow_0zvzs12</bpmn:outgoing>
139 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
140 def dss = new DeleteSliceService()
141 dss.prepareEndOperationStatus(execution)</bpmn:script>
143 <bpmn:serviceTask id="ServiceTask_17jq3cx" name="Update Service Operation Status To Terminate">
144 <bpmn:extensionElements>
146 <camunda:inputOutput>
147 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
148 <camunda:inputParameter name="headers">
150 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
151 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
153 </camunda:inputParameter>
154 <camunda:inputParameter name="payload">${updateOperationStatus}
155 </camunda:inputParameter>
156 <camunda:inputParameter name="method">POST</camunda:inputParameter>
157 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
158 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
159 </camunda:inputOutput>
160 <camunda:connectorId>http-connector</camunda:connectorId>
162 </bpmn:extensionElements>
163 <bpmn:incoming>SequenceFlow_0zvzs12</bpmn:incoming>
164 <bpmn:outgoing>SequenceFlow_10lwgo7</bpmn:outgoing>
166 <bpmn:sequenceFlow id="SequenceFlow_10lwgo7" sourceRef="ServiceTask_17jq3cx" targetRef="EndEvent_086jahv" />
168 <bpmn:subProcess id="SubProcess_0so7l00" name="Sub-process for UnexpectedErrors" triggeredByEvent="true">
169 <bpmn:startEvent id="StartEvent_1jknl5k">
170 <bpmn:outgoing>SequenceFlow_0rasmiu</bpmn:outgoing>
171 <bpmn:errorEventDefinition />
173 <bpmn:sequenceFlow id="SequenceFlow_0rasmiu" sourceRef="StartEvent_1jknl5k" targetRef="Task_0c422xd" />
174 <bpmn:endEvent id="EndEvent_1vr9nc9">
175 <bpmn:incoming>SequenceFlow_1jipldf</bpmn:incoming>
177 <bpmn:sequenceFlow id="SequenceFlow_1jipldf" sourceRef="Task_0c422xd" targetRef="EndEvent_1vr9nc9" />
178 <bpmn:scriptTask id="Task_0c422xd" name="Handle Unexpected Error" scriptFormat="groovy">
179 <bpmn:incoming>SequenceFlow_0rasmiu</bpmn:incoming>
180 <bpmn:outgoing>SequenceFlow_1jipldf</bpmn:outgoing>
181 <bpmn:script>import org.onap.so.bpmn.common.scripts.*
182 ExceptionUtil ex = new ExceptionUtil()
183 ex.processJavaException(execution)</bpmn:script>
187 <bpmn:error id="Error_1jz8wj7" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
188 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
189 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteSliceService">
190 <bpmndi:BPMNEdge id="SequenceFlow_1ti9sxe_di" bpmnElement="SequenceFlow_1ti9sxe">
191 <di:waypoint x="188" y="117" />
192 <di:waypoint x="290" y="117" />
194 <bpmndi:BPMNEdge id="SequenceFlow_0xmiev9_di" bpmnElement="SequenceFlow_0xmiev9">
195 <di:waypoint x="390" y="117" />
196 <di:waypoint x="480" y="117" />
198 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
199 <dc:Bounds x="152" y="99" width="36" height="36" />
201 <dc:Bounds x="159" y="142" width="23" height="14" />
204 <bpmndi:BPMNShape id="ScriptTask_0aqhg4z_di" bpmnElement="Task_1f3k0gq">
205 <dc:Bounds x="290" y="77" width="100" height="80" />
207 <bpmndi:BPMNShape id="ServiceTask_1n9ja9t_di" bpmnElement="Task_0gsr9fu">
208 <dc:Bounds x="480" y="77" width="100" height="80" />
210 <bpmndi:BPMNEdge id="SequenceFlow_0uehx9h_di" bpmnElement="SequenceFlow_0uehx9h">
211 <di:waypoint x="580" y="117" />
212 <di:waypoint x="660" y="117" />
214 <bpmndi:BPMNShape id="ScriptTask_13qpvgg_di" bpmnElement="Task_0walqr6">
215 <dc:Bounds x="660" y="77" width="100" height="80" />
217 <bpmndi:BPMNEdge id="SequenceFlow_16lh6o6_di" bpmnElement="SequenceFlow_16lh6o6">
218 <di:waypoint x="760" y="117" />
219 <di:waypoint x="840" y="117" />
221 <bpmndi:BPMNShape id="ExclusiveGateway_1mcgr3m_di" bpmnElement="ExclusiveGateway_1mcgr3m" isMarkerVisible="true">
222 <dc:Bounds x="1025" y="92" width="50" height="50" />
224 <dc:Bounds x="1026" y="73" width="47" height="14" />
227 <bpmndi:BPMNEdge id="SequenceFlow_0nl4kfh_di" bpmnElement="SequenceFlow_0nl4kfh">
228 <di:waypoint x="940" y="117" />
229 <di:waypoint x="1025" y="117" />
231 <bpmndi:BPMNEdge id="SequenceFlow_0wel7ie_di" bpmnElement="SequenceFlow_0wel7ie">
232 <di:waypoint x="1075" y="117" />
233 <di:waypoint x="1164" y="117" />
235 <dc:Bounds x="1100" y="98" width="17" height="14" />
238 <bpmndi:BPMNEdge id="SequenceFlow_0eqx2y2_di" bpmnElement="SequenceFlow_0eqx2y2">
239 <di:waypoint x="1050" y="142" />
240 <di:waypoint x="1050" y="202" />
242 <dc:Bounds x="1059" y="169" width="13" height="14" />
245 <bpmndi:BPMNShape id="EndEvent_169jlln_di" bpmnElement="EndEvent_02ix4tc">
246 <dc:Bounds x="1032" y="202" width="36" height="36" />
248 <bpmndi:BPMNEdge id="SequenceFlow_18oizb2_di" bpmnElement="SequenceFlow_18oizb2">
249 <di:waypoint x="1440" y="117" />
250 <di:waypoint x="1530" y="117" />
252 <bpmndi:BPMNShape id="ScriptTask_10g3cz7_di" bpmnElement="Task_0k1pi3g">
253 <dc:Bounds x="1340" y="77" width="100" height="80" />
255 <bpmndi:BPMNShape id="ServiceTask_0pct2ne_di" bpmnElement="Task_1vklzip">
256 <dc:Bounds x="1530" y="77" width="100" height="80" />
258 <bpmndi:BPMNShape id="EndEvent_0tyqdpw_di" bpmnElement="EndEvent_0tyqdpw">
259 <dc:Bounds x="1562" y="202" width="36" height="36" />
261 <dc:Bounds x="1570" y="245" width="20" height="14" />
264 <bpmndi:BPMNEdge id="SequenceFlow_1oxmm7d_di" bpmnElement="SequenceFlow_1oxmm7d">
265 <di:waypoint x="1580" y="157" />
266 <di:waypoint x="1580" y="202" />
268 <bpmndi:BPMNShape id="CallActivity_1igxzig_di" bpmnElement="Task_04n2tl9">
269 <dc:Bounds x="840" y="77" width="100" height="80" />
271 <bpmndi:BPMNShape id="ScriptTask_0qqsp7x_di" bpmnElement="Task_01siwzc">
272 <dc:Bounds x="1164" y="77" width="100" height="80" />
274 <bpmndi:BPMNEdge id="SequenceFlow_142j1q2_di" bpmnElement="SequenceFlow_142j1q2">
275 <di:waypoint x="1264" y="117" />
276 <di:waypoint x="1340" y="117" />
278 <bpmndi:BPMNShape id="SubProcess_07kf25g_di" bpmnElement="SubProcess_07kf25g" isExpanded="true">
279 <dc:Bounds x="340" y="430" width="637" height="162" />
281 <bpmndi:BPMNShape id="StartEvent_1qskwib_di" bpmnElement="StartEvent_1qskwib">
282 <dc:Bounds x="377" y="497" width="36" height="36" />
284 <bpmndi:BPMNShape id="EndEvent_086jahv_di" bpmnElement="EndEvent_086jahv">
285 <dc:Bounds x="902" y="497" width="36" height="36" />
287 <bpmndi:BPMNEdge id="SequenceFlow_0x8msq9_di" bpmnElement="SequenceFlow_0x8msq9">
288 <di:waypoint x="413" y="515" />
289 <di:waypoint x="456" y="515" />
291 <bpmndi:BPMNShape id="ScriptTask_19sjlk2_di" bpmnElement="ScriptTask_19sjlk2">
292 <dc:Bounds x="456" y="475" width="100" height="80" />
294 <bpmndi:BPMNEdge id="SequenceFlow_1ihiv5k_di" bpmnElement="SequenceFlow_1ihiv5k">
295 <di:waypoint x="556" y="515" />
296 <di:waypoint x="615" y="515" />
298 <bpmndi:BPMNEdge id="SequenceFlow_0zvzs12_di" bpmnElement="SequenceFlow_0zvzs12">
299 <di:waypoint x="715" y="515" />
300 <di:waypoint x="765" y="515" />
302 <bpmndi:BPMNShape id="ScriptTask_0bjcnd3_di" bpmnElement="Task_1fxg7am">
303 <dc:Bounds x="615" y="475" width="100" height="80" />
305 <bpmndi:BPMNShape id="ServiceTask_17jq3cx_di" bpmnElement="ServiceTask_17jq3cx">
306 <dc:Bounds x="765" y="475" width="100" height="80" />
308 <bpmndi:BPMNEdge id="SequenceFlow_10lwgo7_di" bpmnElement="SequenceFlow_10lwgo7">
309 <di:waypoint x="865" y="515" />
310 <di:waypoint x="902" y="515" />
312 <bpmndi:BPMNShape id="SubProcess_1dd77tu_di" bpmnElement="SubProcess_0so7l00" isExpanded="true">
313 <dc:Bounds x="470" y="650" width="350" height="200" />
315 <bpmndi:BPMNShape id="StartEvent_14mwxm0_di" bpmnElement="StartEvent_1jknl5k">
316 <dc:Bounds x="510" y="732" width="36" height="36" />
318 <bpmndi:BPMNEdge id="SequenceFlow_0rasmiu_di" bpmnElement="SequenceFlow_0rasmiu">
319 <di:waypoint x="546" y="750" />
320 <di:waypoint x="600" y="750" />
322 <bpmndi:BPMNShape id="EndEvent_1vr9nc9_di" bpmnElement="EndEvent_1vr9nc9">
323 <dc:Bounds x="762" y="732" width="36" height="36" />
325 <bpmndi:BPMNEdge id="SequenceFlow_1jipldf_di" bpmnElement="SequenceFlow_1jipldf">
326 <di:waypoint x="700" y="750" />
327 <di:waypoint x="762" y="750" />
329 <bpmndi:BPMNShape id="ScriptTask_0vb5d51_di" bpmnElement="Task_0c422xd">
330 <dc:Bounds x="600" y="710" width="100" height="80" />
333 </bpmndi:BPMNDiagram>