blob: f46f86613f9e53e3ab58276451764081a42e415b [file] [log] [blame]
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -07001<?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>
6 </bpmn2:startEvent>
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.*
11GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
12deleteVnf.preProcessRequest(execution)]]></bpmn2:script>
13 </bpmn2:scriptTask>
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>
23 </bpmn2:sequenceFlow>
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.*
30
31ExceptionUtil ex = new ExceptionUtil()
32ex.processSubflowsBPMNException(execution)]]></bpmn2:script>
33 </bpmn2:scriptTask>
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" />
38 </bpmn2:startEvent>
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" />
43 </bpmn2:endEvent>
44 </bpmn2:subProcess>
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.*
49GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
50deleteVnf.getVnfResourceVersion(execution)]]></bpmn2:script>
51 </bpmn2:scriptTask>
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.*
57GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
58deleteVnf.setSuccessIndicator(execution, true)
59
60execution.setVariable("WorkflowResponse", " ") //for junits]]></bpmn2:script>
61 </bpmn2:scriptTask>
62 <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="toggleSuccess" targetRef="EndEvent_1" />
63 <bpmn2:scriptTask id="deleteVnf" name="DELETE
64&#10;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.*
68GenericDeleteVnf deleteVnf= new GenericDeleteVnf()
69deleteVnf.deleteVnf(execution)]]></bpmn2:script>
70 </bpmn2:scriptTask>
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" />
75 </bpmn2:endEvent>
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>
83 </bpmn2:sequenceFlow>
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" />
94 </bpmn2:endEvent>
95 </bpmn2:process>
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" />
100 <bpmndi:BPMNLabel>
101 <dc:Bounds x="92" y="257" width="0" height="0" />
102 </bpmndi:BPMNLabel>
103 </bpmndi:BPMNShape>
104 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_310" bpmnElement="initialization">
105 <dc:Bounds x="192" y="194" width="100" height="80" />
106 </bpmndi:BPMNShape>
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" />
110 </bpmndi:BPMNEdge>
111 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_239" bpmnElement="resourceVersionCheck" isMarkerVisible="true">
112 <dc:Bounds x="326" y="208" width="50" height="50" />
113 <bpmndi:BPMNLabel>
114 <dc:Bounds x="360" y="238" width="169" height="22" />
115 </bpmndi:BPMNLabel>
116 </bpmndi:BPMNShape>
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" />
120 <bpmndi:BPMNLabel>
121 <dc:Bounds x="262" y="476" width="0" height="0" />
122 </bpmndi:BPMNLabel>
123 </bpmndi:BPMNEdge>
124 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_320" bpmnElement="queryForResourceVersion">
125 <dc:Bounds x="408" y="96" width="100" height="80" />
126 </bpmndi:BPMNShape>
127 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_321" bpmnElement="deleteVnf">
128 <dc:Bounds x="658" y="194" width="100" height="80" />
129 </bpmndi:BPMNShape>
130 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_240" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">
131 <dc:Bounds x="562" y="208" width="50" height="50" />
132 <bpmndi:BPMNLabel>
133 <dc:Bounds x="587" y="263" width="0" height="0" />
134 </bpmndi:BPMNLabel>
135 </bpmndi:BPMNShape>
136 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_322" bpmnElement="toggleSuccess">
137 <dc:Bounds x="802" y="194" width="100" height="80" />
138 </bpmndi:BPMNShape>
139 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_240" bpmnElement="EndEvent_1">
140 <dc:Bounds x="1001" y="216" width="36" height="36" />
141 <bpmndi:BPMNLabel>
142 <dc:Bounds x="1019" y="257" width="0" height="0" />
143 </bpmndi:BPMNLabel>
144 </bpmndi:BPMNShape>
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" />
149 <bpmndi:BPMNLabel>
150 <dc:Bounds x="354" y="165" width="22" height="22" />
151 </bpmndi:BPMNLabel>
152 </bpmndi:BPMNEdge>
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" />
159 <bpmndi:BPMNLabel>
160 <dc:Bounds x="351" y="276" width="29" height="22" />
161 </bpmndi:BPMNLabel>
162 </bpmndi:BPMNEdge>
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" />
166 <bpmndi:BPMNLabel>
167 <dc:Bounds x="558" y="135" width="6" height="6" />
168 </bpmndi:BPMNLabel>
169 </bpmndi:BPMNEdge>
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" />
173 <bpmndi:BPMNLabel>
174 <dc:Bounds x="633" y="234" width="6" height="6" />
175 </bpmndi:BPMNLabel>
176 </bpmndi:BPMNEdge>
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" />
180 <bpmndi:BPMNLabel>
181 <dc:Bounds x="777" y="234" width="6" height="6" />
182 </bpmndi:BPMNLabel>
183 </bpmndi:BPMNEdge>
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" />
187 <bpmndi:BPMNLabel>
188 <dc:Bounds x="949" y="234" width="6" height="6" />
189 </bpmndi:BPMNLabel>
190 </bpmndi:BPMNEdge>
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" />
194 <bpmndi:BPMNLabel>
195 <dc:Bounds x="311" y="233" width="6" height="6" />
196 </bpmndi:BPMNLabel>
197 </bpmndi:BPMNEdge>
198 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_36" bpmnElement="bpmnExceptionHandlingSubProcess" isExpanded="true">
199 <dc:Bounds x="185" y="397" width="304" height="157" />
200 </bpmndi:BPMNShape>
201 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_82" bpmnElement="StartEvent_2">
202 <dc:Bounds x="200" y="458" width="36" height="36" />
203 <bpmndi:BPMNLabel>
204 <dc:Bounds x="218" y="499" width="0" height="0" />
205 </bpmndi:BPMNLabel>
206 </bpmndi:BPMNShape>
207 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_242" bpmnElement="EndEvent_2">
208 <dc:Bounds x="440" y="458" width="36" height="36" />
209 <bpmndi:BPMNLabel>
210 <dc:Bounds x="458" y="499" width="0" height="0" />
211 </bpmndi:BPMNLabel>
212 </bpmndi:BPMNShape>
213 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_323" bpmnElement="processBPMNError">
214 <dc:Bounds x="288" y="436" width="100" height="80" />
215 </bpmndi:BPMNShape>
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" />
219 <bpmndi:BPMNLabel>
220 <dc:Bounds x="414" y="476" width="0" height="0" />
221 </bpmndi:BPMNLabel>
222 </bpmndi:BPMNEdge>
223 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_242" bpmnElement="vnfFoundCheck" isMarkerVisible="true">
224 <dc:Bounds x="562" y="110" width="50" height="50" />
225 <bpmndi:BPMNLabel>
226 <dc:Bounds x="552" y="90" width="72" height="22" />
227 </bpmndi:BPMNLabel>
228 </bpmndi:BPMNShape>
229 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_243" bpmnElement="EndEvent_3">
230 <dc:Bounds x="708" y="118" width="36" height="36" />
231 <bpmndi:BPMNLabel>
232 <dc:Bounds x="726" y="159" width="0" height="0" />
233 </bpmndi:BPMNLabel>
234 </bpmndi:BPMNShape>
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" />
238 <bpmndi:BPMNLabel>
239 <dc:Bounds x="587" y="165" width="29" height="22" />
240 </bpmndi:BPMNLabel>
241 </bpmndi:BPMNEdge>
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" />
245 <bpmndi:BPMNLabel>
246 <dc:Bounds x="637" y="135" width="22" height="22" />
247 </bpmndi:BPMNLabel>
248 </bpmndi:BPMNEdge>
249 </bpmndi:BPMNPlane>
250 </bpmndi:BPMNDiagram>
ChrisC025301d2017-01-31 11:40:03 +0100251</bpmn2:definitions>