1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="_9MhrcHqVEea26OhQB97uCQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="DeleteVnfInfra" name="DeleteVnfInfra" isExecutable="true">
4 <bpmn2:startEvent id="StartEvent_1">
5 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
7 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="intialization" />
8 <bpmn2:scriptTask id="sendSyncResponse" name="Send Sync Response" scriptFormat="groovy">
9 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
10 <bpmn2:outgoing>SequenceFlow_16ikne0</bpmn2:outgoing>
11 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
12 DeleteVnfInfra deleteVnf = new DeleteVnfInfra()
13 deleteVnf.sendSyncResponse(execution)]]></bpmn2:script>
15 <bpmn2:scriptTask id="intialization" name="Intialization" scriptFormat="groovy">
16 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
17 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
18 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
19 DeleteVnfInfra deleteVnf = new DeleteVnfInfra()
20 deleteVnf.preProcessRequest(execution)]]></bpmn2:script>
22 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="intialization" targetRef="sendSyncResponse" />
23 <bpmn2:subProcess id="bpmnErrorHandlingSubProcess" name="Error Handling Sub Process" triggeredByEvent="true">
24 <bpmn2:scriptTask id="prepareFalloutHandlerRequest" name="Prepare Fallout Request" scriptFormat="groovy">
25 <bpmn2:incoming>SequenceFlow_15</bpmn2:incoming>
26 <bpmn2:outgoing>SequenceFlow_16</bpmn2:outgoing>
27 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
29 String requestInfo = execution.getVariable("DELVI_requestInfo")
30 ExceptionUtil ex = new ExceptionUtil()
31 String falloutHandlerRequest = ex.processMainflowsBPMNException(execution, requestInfo)
33 execution.setVariable("DELVI_falloutHandlerRequest", falloutHandlerRequest )]]></bpmn2:script>
35 <bpmn2:sequenceFlow id="SequenceFlow_16" name="" sourceRef="prepareFalloutHandlerRequest" targetRef="callFalloutHandler" />
36 <bpmn2:callActivity id="callFalloutHandler" name="Fallout
\r Handler" calledElement="FalloutHandler">
37 <bpmn2:extensionElements>
38 <camunda:in source="DELVI_falloutHandlerRequest" target="FalloutHandlerRequest" />
39 <camunda:in source="DELVI_requestId" target="requestId" />
40 <camunda:in source="DELVI_serviceInstanceId" target="serviceInstanceId" />
41 </bpmn2:extensionElements>
42 <bpmn2:incoming>SequenceFlow_16</bpmn2:incoming>
43 <bpmn2:outgoing>SequenceFlow_17</bpmn2:outgoing>
45 <bpmn2:sequenceFlow id="SequenceFlow_17" name="" sourceRef="callFalloutHandler" targetRef="EndEvent_3" />
46 <bpmn2:endEvent id="EndEvent_3">
47 <bpmn2:incoming>SequenceFlow_17</bpmn2:incoming>
48 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_37" />
50 <bpmn2:startEvent id="StartEvent_2">
51 <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
52 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_94" />
54 <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="StartEvent_2" targetRef="sendErrorResponse" />
55 <bpmn2:scriptTask id="sendErrorResponse" name="Send Error Response" scriptFormat="groovy">
56 <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
57 <bpmn2:outgoing>SequenceFlow_15</bpmn2:outgoing>
58 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
59 DeleteVnfInfra deleteVnf = new DeleteVnfInfra()
60 deleteVnf.sendErrorResponse(execution)]]></bpmn2:script>
62 <bpmn2:sequenceFlow id="SequenceFlow_15" name="" sourceRef="sendErrorResponse" targetRef="prepareFalloutHandlerRequest" />
64 <bpmn2:subProcess id="javaErrorHandlingSubProcess" name="Java Exception Handling Sub Process" triggeredByEvent="true">
65 <bpmn2:endEvent id="EndEvent_4">
66 <bpmn2:incoming>SequenceFlow_19</bpmn2:incoming>
68 <bpmn2:startEvent id="StartEvent_3">
69 <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing>
70 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_95" errorRef="Error_2" />
72 <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="StartEvent_3" targetRef="processJavaException" />
73 <bpmn2:scriptTask id="processJavaException" name="Process Error" scriptFormat="groovy">
74 <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming>
75 <bpmn2:outgoing>SequenceFlow_19</bpmn2:outgoing>
76 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
77 ExceptionUtil exceptionUtil = new ExceptionUtil()
78 exceptionUtil.processJavaException(execution)]]></bpmn2:script>
80 <bpmn2:sequenceFlow id="SequenceFlow_19" name="" sourceRef="processJavaException" targetRef="EndEvent_4" />
82 <bpmn2:scriptTask id="postProcess" name="Prepare Completion Request" scriptFormat="groovy">
83 <bpmn2:incoming>SequenceFlow_0slfgmy</bpmn2:incoming>
84 <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
85 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
86 DeleteVnfInfra deleteVnf = new DeleteVnfInfra()
87 deleteVnf.prepareCompletionHandlerRequest(execution)]]></bpmn2:script>
89 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="postProcess" targetRef="callCompletionHandler" />
90 <bpmn2:callActivity id="callCompletionHandler" name="Completion
\r Handler" calledElement="CompleteMsoProcess">
91 <bpmn2:extensionElements>
92 <camunda:in source="DELVI_completionHandlerRequest" target="CompleteMsoProcessRequest" />
93 <camunda:in source="DELVI_requestId" target="mso-request-id" />
94 <camunda:in source="DELVI_serviceInstanceId" target="mso-service-instance-id" />
95 <camunda:out source="CompleteMsoProcessResponse" target="CompleteMsoProcessResponse" />
96 </bpmn2:extensionElements>
97 <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
98 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
100 <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="callCompletionHandler" targetRef="EndEvent_2" />
101 <bpmn2:endEvent id="EndEvent_2">
102 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
103 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_36" />
105 <bpmn2:callActivity id="DeleteVnf" name="Delete VNF" calledElement="DoDeleteVnf">
106 <bpmn2:extensionElements>
107 <camunda:out source="WorkflowException" target="WorkflowException" />
108 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
109 <camunda:in source="DELVI_vnfId" target="vnfId" />
110 </bpmn2:extensionElements>
111 <bpmn2:incoming>SequenceFlow_00bhxtl</bpmn2:incoming>
112 <bpmn2:outgoing>SequenceFlow_1f56g06</bpmn2:outgoing>
113 </bpmn2:callActivity>
114 <bpmn2:exclusiveGateway id="ExclusiveGateway_1kvxtnz">
115 <bpmn2:incoming>SequenceFlow_16ikne0</bpmn2:incoming>
116 <bpmn2:outgoing>SequenceFlow_00o02cv</bpmn2:outgoing>
117 <bpmn2:outgoing>SequenceFlow_00bhxtl</bpmn2:outgoing>
118 </bpmn2:exclusiveGateway>
119 <bpmn2:sequenceFlow id="SequenceFlow_16ikne0" sourceRef="sendSyncResponse" targetRef="ExclusiveGateway_1kvxtnz" />
120 <bpmn2:exclusiveGateway id="ExclusiveGateway_0r544im">
121 <bpmn2:incoming>SequenceFlow_1f56g06</bpmn2:incoming>
122 <bpmn2:incoming>SequenceFlow_0dy2xw0</bpmn2:incoming>
123 <bpmn2:outgoing>SequenceFlow_0slfgmy</bpmn2:outgoing>
124 </bpmn2:exclusiveGateway>
125 <bpmn2:sequenceFlow id="SequenceFlow_1f56g06" sourceRef="DeleteVnf" targetRef="ExclusiveGateway_0r544im" />
126 <bpmn2:sequenceFlow id="SequenceFlow_00o02cv" name="cascade delete" sourceRef="ExclusiveGateway_1kvxtnz" targetRef="Task_0ob25pp">
127 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DELVI_cascadeDelete")==true}]]></bpmn2:conditionExpression>
128 </bpmn2:sequenceFlow>
129 <bpmn2:callActivity id="Task_0ob25pp" name="Delete VNF and Modules" calledElement="DoDeleteVnfAndModules">
130 <bpmn2:extensionElements>
131 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
132 <camunda:in source="DELVI_requestId" target="msoRequestId" />
133 <camunda:in source="DELVI_vnfId" target="vnfId" />
134 <camunda:in source="DELVI_serviceInstanceId" target="serviceInstanceId" />
135 <camunda:in source="DELVI_cloudConfiguration" target="cloudConfiguration" />
136 <camunda:out source="WorkflowException" target="WorkflowException" />
137 </bpmn2:extensionElements>
138 <bpmn2:incoming>SequenceFlow_00o02cv</bpmn2:incoming>
139 <bpmn2:outgoing>SequenceFlow_0dy2xw0</bpmn2:outgoing>
140 </bpmn2:callActivity>
141 <bpmn2:sequenceFlow id="SequenceFlow_0dy2xw0" sourceRef="Task_0ob25pp" targetRef="ExclusiveGateway_0r544im" />
142 <bpmn2:sequenceFlow id="SequenceFlow_0slfgmy" sourceRef="ExclusiveGateway_0r544im" targetRef="postProcess" />
143 <bpmn2:sequenceFlow id="SequenceFlow_00bhxtl" sourceRef="ExclusiveGateway_1kvxtnz" targetRef="DeleteVnf" />
145 <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
146 <bpmn2:error id="Error_2" name="Java Lang Exception" errorCode="java.lang.Exception" />
147 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
148 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteVnfInfra">
149 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_79" bpmnElement="StartEvent_1">
150 <dc:Bounds x="90" y="210" width="36" height="36" />
152 <dc:Bounds x="108" y="251" width="0" height="0" />
155 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_311" bpmnElement="intialization">
156 <dc:Bounds x="216" y="188" width="100" height="80" />
158 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_79" targetElement="_BPMNShape_ScriptTask_311">
159 <di:waypoint xsi:type="dc:Point" x="126" y="228" />
160 <di:waypoint xsi:type="dc:Point" x="216" y="228" />
162 <dc:Bounds x="164" y="228" width="6" height="6" />
165 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_313" bpmnElement="sendSyncResponse">
166 <dc:Bounds x="364" y="188" width="100" height="80" />
168 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_311" targetElement="_BPMNShape_ScriptTask_313">
169 <di:waypoint xsi:type="dc:Point" x="316" y="228" />
170 <di:waypoint xsi:type="dc:Point" x="364" y="228" />
172 <dc:Bounds x="341" y="228" width="6" height="6" />
175 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_237" bpmnElement="EndEvent_2">
176 <dc:Bounds x="1074" y="210" width="36" height="36" />
178 <dc:Bounds x="1092" y="251" width="0" height="0" />
181 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_34" bpmnElement="bpmnErrorHandlingSubProcess" isExpanded="true">
182 <dc:Bounds x="132" y="442" width="589" height="207" />
184 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_80" bpmnElement="StartEvent_2">
185 <dc:Bounds x="144" y="528" width="36" height="36" />
187 <dc:Bounds x="162" y="569" width="0" height="0" />
190 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_238" bpmnElement="EndEvent_3">
191 <dc:Bounds x="672" y="528" width="36" height="36" />
193 <dc:Bounds x="690" y="569" width="0" height="0" />
196 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_66" bpmnElement="callFalloutHandler">
197 <dc:Bounds x="516" y="506" width="100" height="80" />
199 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_317" bpmnElement="sendErrorResponse">
200 <dc:Bounds x="240" y="506" width="100" height="80" />
202 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_318" bpmnElement="prepareFalloutHandlerRequest">
203 <dc:Bounds x="377" y="506" width="100" height="80" />
205 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_16" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_StartEvent_80" targetElement="_BPMNShape_ScriptTask_317">
206 <di:waypoint xsi:type="dc:Point" x="180" y="546" />
207 <di:waypoint xsi:type="dc:Point" x="240" y="546" />
209 <dc:Bounds x="201" y="546" width="6" height="6" />
212 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_17" bpmnElement="SequenceFlow_15" sourceElement="_BPMNShape_ScriptTask_317" targetElement="_BPMNShape_ScriptTask_318">
213 <di:waypoint xsi:type="dc:Point" x="340" y="546" />
214 <di:waypoint xsi:type="dc:Point" x="377" y="546" />
216 <dc:Bounds x="353" y="546" width="6" height="6" />
219 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_16" sourceElement="_BPMNShape_ScriptTask_318" targetElement="_BPMNShape_CallActivity_66">
220 <di:waypoint xsi:type="dc:Point" x="477" y="546" />
221 <di:waypoint xsi:type="dc:Point" x="516" y="546" />
223 <dc:Bounds x="491" y="546" width="6" height="6" />
226 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_17" sourceElement="_BPMNShape_CallActivity_66" targetElement="_BPMNShape_EndEvent_238">
227 <di:waypoint xsi:type="dc:Point" x="616" y="546" />
228 <di:waypoint xsi:type="dc:Point" x="672" y="546" />
230 <dc:Bounds x="635" y="546" width="6" height="6" />
233 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_35" bpmnElement="javaErrorHandlingSubProcess" isExpanded="true">
234 <dc:Bounds x="271" y="696" width="312" height="157" />
236 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_81" bpmnElement="StartEvent_3">
237 <dc:Bounds x="300" y="757" width="36" height="36" />
239 <dc:Bounds x="318" y="798" width="0" height="0" />
242 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_239" bpmnElement="EndEvent_4">
243 <dc:Bounds x="516" y="757" width="36" height="36" />
245 <dc:Bounds x="534" y="798" width="0" height="0" />
248 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_319" bpmnElement="processJavaException">
249 <dc:Bounds x="378" y="735" width="100" height="80" />
251 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_StartEvent_81" targetElement="_BPMNShape_ScriptTask_319">
252 <di:waypoint xsi:type="dc:Point" x="336" y="775" />
253 <di:waypoint xsi:type="dc:Point" x="378" y="775" />
255 <dc:Bounds x="354" y="775" width="6" height="6" />
258 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_21" bpmnElement="SequenceFlow_19" sourceElement="_BPMNShape_ScriptTask_319" targetElement="_BPMNShape_EndEvent_239">
259 <di:waypoint xsi:type="dc:Point" x="478" y="775" />
260 <di:waypoint xsi:type="dc:Point" x="516" y="775" />
262 <dc:Bounds x="494" y="775" width="6" height="6" />
265 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_326" bpmnElement="postProcess">
266 <dc:Bounds x="776" y="188" width="100" height="80" />
268 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_22" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ScriptTask_326" targetElement="_BPMNShape_CallActivity_71">
269 <di:waypoint xsi:type="dc:Point" x="876" y="228" />
270 <di:waypoint xsi:type="dc:Point" x="932" y="228" />
272 <dc:Bounds x="904" y="213" width="0" height="0" />
275 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_71" bpmnElement="callCompletionHandler">
276 <dc:Bounds x="932" y="188" width="100" height="80" />
278 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_CallActivity_71" targetElement="_BPMNShape_EndEvent_237">
279 <di:waypoint xsi:type="dc:Point" x="1032" y="228" />
280 <di:waypoint xsi:type="dc:Point" x="1074" y="228" />
282 <dc:Bounds x="1053" y="213" width="0" height="0" />
285 <bpmndi:BPMNShape id="_BPMNShape_CallActivity_63" bpmnElement="DeleteVnf">
286 <dc:Bounds x="571" y="292" width="100" height="80" />
288 <bpmndi:BPMNShape id="ExclusiveGateway_1kvxtnz_di" bpmnElement="ExclusiveGateway_1kvxtnz" isMarkerVisible="true">
289 <dc:Bounds x="514" y="203" width="50" height="50" />
291 <dc:Bounds x="539" y="253" width="0" height="0" />
294 <bpmndi:BPMNEdge id="SequenceFlow_16ikne0_di" bpmnElement="SequenceFlow_16ikne0">
295 <di:waypoint xsi:type="dc:Point" x="464" y="228" />
296 <di:waypoint xsi:type="dc:Point" x="489" y="228" />
297 <di:waypoint xsi:type="dc:Point" x="489" y="228" />
298 <di:waypoint xsi:type="dc:Point" x="514" y="228" />
300 <dc:Bounds x="504" y="228" width="0" height="0" />
303 <bpmndi:BPMNShape id="ExclusiveGateway_0r544im_di" bpmnElement="ExclusiveGateway_0r544im" isMarkerVisible="true">
304 <dc:Bounds x="677" y="203" width="50" height="50" />
306 <dc:Bounds x="702" y="253" width="0" height="0" />
309 <bpmndi:BPMNEdge id="SequenceFlow_1f56g06_di" bpmnElement="SequenceFlow_1f56g06">
310 <di:waypoint xsi:type="dc:Point" x="671" y="332" />
311 <di:waypoint xsi:type="dc:Point" x="702" y="332" />
312 <di:waypoint xsi:type="dc:Point" x="702" y="253" />
314 <dc:Bounds x="687" y="307" width="0" height="0" />
317 <bpmndi:BPMNEdge id="SequenceFlow_00o02cv_di" bpmnElement="SequenceFlow_00o02cv">
318 <di:waypoint xsi:type="dc:Point" x="539" y="203" />
319 <di:waypoint xsi:type="dc:Point" x="539" y="118" />
320 <di:waypoint xsi:type="dc:Point" x="571" y="118" />
322 <dc:Bounds x="461" y="157" width="74" height="12" />
325 <bpmndi:BPMNShape id="CallActivity_01wzpfb_di" bpmnElement="Task_0ob25pp">
326 <dc:Bounds x="571" y="78" width="100" height="80" />
328 <bpmndi:BPMNEdge id="SequenceFlow_0dy2xw0_di" bpmnElement="SequenceFlow_0dy2xw0">
329 <di:waypoint xsi:type="dc:Point" x="671" y="118" />
330 <di:waypoint xsi:type="dc:Point" x="702" y="118" />
331 <di:waypoint xsi:type="dc:Point" x="702" y="203" />
333 <dc:Bounds x="687" y="93" width="0" height="0" />
336 <bpmndi:BPMNEdge id="SequenceFlow_0slfgmy_di" bpmnElement="SequenceFlow_0slfgmy">
337 <di:waypoint xsi:type="dc:Point" x="727" y="228" />
338 <di:waypoint xsi:type="dc:Point" x="776" y="228" />
340 <dc:Bounds x="752" y="213" width="0" height="0" />
343 <bpmndi:BPMNEdge id="SequenceFlow_00bhxtl_di" bpmnElement="SequenceFlow_00bhxtl">
344 <di:waypoint xsi:type="dc:Point" x="539" y="253" />
345 <di:waypoint xsi:type="dc:Point" x="539" y="332" />
346 <di:waypoint xsi:type="dc:Point" x="571" y="332" />
348 <dc:Bounds x="554" y="283" width="0" height="0" />
352 </bpmndi:BPMNDiagram>