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:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="_oBLSkHqWEea26OhQB97uCQ" 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="GenericDeleteVnf" name="GenericDeleteVnf" isExecutable="true">
4 <bpmn2:startEvent id="StartEvent_1">
5 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
7 <bpmn2:scriptTask id="initialization" name="Initialization" scriptFormat="groovy">
8 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
9 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
10 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
11 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
12 deleteVnf.preProcessRequest(execution)]]></bpmn2:script>
14 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="initialization" />
15 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="initialization" targetRef="resourceVersionCheck" />
16 <bpmn2:exclusiveGateway id="resourceVersionCheck" name="Resource Version Provided?" default="resourceVersionProvided">
17 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
18 <bpmn2:outgoing>resourceVariableNotProvided</bpmn2:outgoing>
19 <bpmn2:outgoing>resourceVersionProvided</bpmn2:outgoing>
20 </bpmn2:exclusiveGateway>
21 <bpmn2:sequenceFlow id="resourceVariableNotProvided" name="No" sourceRef="resourceVersionCheck" targetRef="queryForResourceVersion">
22 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDV_resourceVersionProvided") == false}]]></bpmn2:conditionExpression>
24 <bpmn2:sequenceFlow id="resourceVersionProvided" name="Yes" sourceRef="resourceVersionCheck" targetRef="ExclusiveGateway_2" />
25 <bpmn2:subProcess id="bpmnExceptionHandlingSubProcess" name="Error Handling Sub Process" triggeredByEvent="true">
26 <bpmn2:scriptTask id="processBPMNError" name="Process Error" scriptFormat="groovy">
27 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
28 <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
29 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
31 ExceptionUtil ex = new ExceptionUtil()
32 ex.processSubflowsBPMNException(execution)]]></bpmn2:script>
34 <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="processBPMNError" targetRef="EndEvent_2" />
35 <bpmn2:startEvent id="StartEvent_2">
36 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
37 <bpmn2:errorEventDefinition id="ErrorEventDefinition_1" />
39 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="StartEvent_2" targetRef="processBPMNError" />
40 <bpmn2:endEvent id="EndEvent_2">
41 <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
42 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_40" />
45 <bpmn2:scriptTask id="queryForResourceVersion" name="Query SI Resource Version" scriptFormat="groovy">
46 <bpmn2:incoming>resourceVariableNotProvided</bpmn2:incoming>
47 <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
48 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
49 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
50 deleteVnf.getVnfResourceVersion(execution)]]></bpmn2:script>
52 <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="queryForResourceVersion" targetRef="vnfFoundCheck" />
53 <bpmn2:scriptTask id="toggleSuccess" name="Toggle Success Indicator" scriptFormat="groovy">
54 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
55 <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
56 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
57 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
58 deleteVnf.setSuccessIndicator(execution, true)
60 execution.setVariable("WorkflowResponse", " ") //for junits]]></bpmn2:script>
62 <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="toggleSuccess" targetRef="EndEvent_1" />
63 <bpmn2:scriptTask id="deleteVnf" name="DELETE
64 Vnf" scriptFormat="groovy">
65 <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
66 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
67 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
68 GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
69 deleteVnf.deleteVnf(execution)]]></bpmn2:script>
71 <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="deleteVnf" targetRef="toggleSuccess" />
72 <bpmn2:endEvent id="EndEvent_3">
73 <bpmn2:incoming>vnfFoundNo</bpmn2:incoming>
74 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_41" />
76 <bpmn2:exclusiveGateway id="vnfFoundCheck" name="Vnf Found?" default="vnfFoundNo">
77 <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
78 <bpmn2:outgoing>vnfFoundYes</bpmn2:outgoing>
79 <bpmn2:outgoing>vnfFoundNo</bpmn2:outgoing>
80 </bpmn2:exclusiveGateway>
81 <bpmn2:sequenceFlow id="vnfFoundYes" name="Yes" sourceRef="vnfFoundCheck" targetRef="ExclusiveGateway_2">
82 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDV_FoundIndicator") == true}]]></bpmn2:conditionExpression>
84 <bpmn2:sequenceFlow id="vnfFoundNo" name="No" sourceRef="vnfFoundCheck" targetRef="EndEvent_3" />
85 <bpmn2:exclusiveGateway id="ExclusiveGateway_2">
86 <bpmn2:incoming>resourceVersionProvided</bpmn2:incoming>
87 <bpmn2:incoming>vnfFoundYes</bpmn2:incoming>
88 <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
89 </bpmn2:exclusiveGateway>
90 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="ExclusiveGateway_2" targetRef="deleteVnf" />
91 <bpmn2:endEvent id="EndEvent_1">
92 <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
93 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_39" />
96 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
97 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericDeleteVnf">
98 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_78" bpmnElement="StartEvent_1">
99 <dc:Bounds x="74" y="216" width="36" height="36" />
101 <dc:Bounds x="92" y="257" width="0" height="0" />
104 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_310" bpmnElement="initialization">
105 <dc:Bounds x="192" y="194" width="100" height="80" />
107 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_78" targetElement="_BPMNShape_ScriptTask_310">
108 <di:waypoint xsi:type="dc:Point" x="110" y="234" />
109 <di:waypoint xsi:type="dc:Point" x="192" y="234" />
111 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_239" bpmnElement="resourceVersionCheck" isMarkerVisible="true">
112 <dc:Bounds x="326" y="208" width="50" height="50" />
114 <dc:Bounds x="360" y="238" width="169" height="22" />
117 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_310" targetElement="_BPMNShape_ExclusiveGateway_239">
118 <di:waypoint xsi:type="dc:Point" x="236" y="476" />
119 <di:waypoint xsi:type="dc:Point" x="288" y="476" />
121 <dc:Bounds x="262" y="476" width="0" height="0" />
124 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_320" bpmnElement="queryForResourceVersion">
125 <dc:Bounds x="408" y="96" width="100" height="80" />
127 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_321" bpmnElement="deleteVnf">
128 <dc:Bounds x="658" y="194" width="100" height="80" />
130 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_240" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">
131 <dc:Bounds x="562" y="208" width="50" height="50" />
133 <dc:Bounds x="587" y="263" width="0" height="0" />
136 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_322" bpmnElement="toggleSuccess">
137 <dc:Bounds x="802" y="194" width="100" height="80" />
139 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_240" bpmnElement="EndEvent_1">
140 <dc:Bounds x="1001" y="216" width="36" height="36" />
142 <dc:Bounds x="1019" y="257" width="0" height="0" />
145 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="resourceVariableNotProvided" sourceElement="_BPMNShape_ExclusiveGateway_239" targetElement="_BPMNShape_ScriptTask_320">
146 <di:waypoint xsi:type="dc:Point" x="351" y="208" />
147 <di:waypoint xsi:type="dc:Point" x="351" y="136" />
148 <di:waypoint xsi:type="dc:Point" x="408" y="136" />
150 <dc:Bounds x="354" y="165" width="22" height="22" />
153 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="resourceVersionProvided" sourceElement="_BPMNShape_ExclusiveGateway_239" targetElement="_BPMNShape_ExclusiveGateway_240">
154 <di:waypoint xsi:type="dc:Point" x="351" y="258" />
155 <di:waypoint xsi:type="dc:Point" x="351" y="312" />
156 <di:waypoint xsi:type="dc:Point" x="459" y="312" />
157 <di:waypoint xsi:type="dc:Point" x="587" y="312" />
158 <di:waypoint xsi:type="dc:Point" x="587" y="258" />
160 <dc:Bounds x="351" y="276" width="29" height="22" />
163 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ScriptTask_320" targetElement="_BPMNShape_ExclusiveGateway_242">
164 <di:waypoint xsi:type="dc:Point" x="508" y="136" />
165 <di:waypoint xsi:type="dc:Point" x="562" y="135" />
167 <dc:Bounds x="558" y="135" width="6" height="6" />
170 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ExclusiveGateway_240" targetElement="_BPMNShape_ScriptTask_321">
171 <di:waypoint xsi:type="dc:Point" x="612" y="233" />
172 <di:waypoint xsi:type="dc:Point" x="658" y="234" />
174 <dc:Bounds x="633" y="234" width="6" height="6" />
177 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_321" targetElement="_BPMNShape_ScriptTask_322">
178 <di:waypoint xsi:type="dc:Point" x="758" y="234" />
179 <di:waypoint xsi:type="dc:Point" x="802" y="234" />
181 <dc:Bounds x="777" y="234" width="6" height="6" />
184 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_322" targetElement="_BPMNShape_EndEvent_240">
185 <di:waypoint xsi:type="dc:Point" x="902" y="234" />
186 <di:waypoint xsi:type="dc:Point" x="1001" y="234" />
188 <dc:Bounds x="949" y="234" width="6" height="6" />
191 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_310" targetElement="_BPMNShape_ExclusiveGateway_239">
192 <di:waypoint xsi:type="dc:Point" x="292" y="234" />
193 <di:waypoint xsi:type="dc:Point" x="326" y="233" />
195 <dc:Bounds x="311" y="233" width="6" height="6" />
198 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_36" bpmnElement="bpmnExceptionHandlingSubProcess" isExpanded="true">
199 <dc:Bounds x="185" y="397" width="304" height="157" />
201 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_82" bpmnElement="StartEvent_2">
202 <dc:Bounds x="200" y="458" width="36" height="36" />
204 <dc:Bounds x="218" y="499" width="0" height="0" />
207 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_242" bpmnElement="EndEvent_2">
208 <dc:Bounds x="440" y="458" width="36" height="36" />
210 <dc:Bounds x="458" y="499" width="0" height="0" />
213 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_323" bpmnElement="processBPMNError">
214 <dc:Bounds x="288" y="436" width="100" height="80" />
216 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_323" targetElement="_BPMNShape_EndEvent_242">
217 <di:waypoint xsi:type="dc:Point" x="388" y="476" />
218 <di:waypoint xsi:type="dc:Point" x="440" y="476" />
220 <dc:Bounds x="414" y="476" width="0" height="0" />
223 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_242" bpmnElement="vnfFoundCheck" isMarkerVisible="true">
224 <dc:Bounds x="562" y="110" width="50" height="50" />
226 <dc:Bounds x="552" y="90" width="72" height="22" />
229 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_243" bpmnElement="EndEvent_3">
230 <dc:Bounds x="708" y="118" width="36" height="36" />
232 <dc:Bounds x="726" y="159" width="0" height="0" />
235 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="vnfFoundYes" sourceElement="_BPMNShape_ExclusiveGateway_242" targetElement="_BPMNShape_ExclusiveGateway_240">
236 <di:waypoint xsi:type="dc:Point" x="587" y="160" />
237 <di:waypoint xsi:type="dc:Point" x="587" y="208" />
239 <dc:Bounds x="587" y="165" width="29" height="22" />
242 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="vnfFoundNo" sourceElement="_BPMNShape_ExclusiveGateway_242" targetElement="_BPMNShape_EndEvent_243">
243 <di:waypoint xsi:type="dc:Point" x="612" y="135" />
244 <di:waypoint xsi:type="dc:Point" x="708" y="136" />
246 <dc:Bounds x="637" y="135" width="22" height="22" />
250 </bpmndi:BPMNDiagram>