blob: 15929b87eb6f7e272d4aa31cdc58290e7e386528 [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="_wAtdAGrUEeaJwpcpVN5gXw" 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="GenericDeleteService" name="GenericDeleteService" isExecutable="true">
4 <bpmn2:subProcess id="bpmnExceptionHandlingSubProcess" name="Error Handling Sub Process" triggeredByEvent="true">
5 <bpmn2:scriptTask id="processError" name="Process Error" scriptFormat="groovy">
6 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
7 <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
xg353yb6b7bef2017-04-11 13:30:42 +02008 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ChrisC025301d2017-01-31 11:40:03 +01009
10ExceptionUtil ex = new ExceptionUtil()
11ex.processSubflowsBPMNException(execution)
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070012]]></bpmn2:script>
13 </bpmn2:scriptTask>
14 <bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="processError" targetRef="EndEvent_3" />
15 <bpmn2:startEvent id="StartEvent_2">
16 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
17 <bpmn2:errorEventDefinition id="ErrorEventDefinition_1" />
18 </bpmn2:startEvent>
19 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="StartEvent_2" targetRef="processError" />
20 <bpmn2:endEvent id="EndEvent_3">
21 <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
22 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_25" />
23 </bpmn2:endEvent>
24 </bpmn2:subProcess>
25 <bpmn2:subProcess id="javaExceptionSubProcess" name="Java Exception Handling Sub Process" triggeredByEvent="true">
26 <bpmn2:endEvent id="EndEvent_2">
27 <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>
28 </bpmn2:endEvent>
29 <bpmn2:scriptTask id="processJavaError" name="Process Error">
30 <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
31 <bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
32 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
33
34ExceptionUtil ex = new ExceptionUtil()
35ex.processJavaException(execution)
36]]></bpmn2:script>
37 </bpmn2:scriptTask>
38 <bpmn2:startEvent id="StartEvent_3">
39 <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
40 <bpmn2:errorEventDefinition id="ErrorEventDefinition_2" />
41 </bpmn2:startEvent>
42 <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="StartEvent_3" targetRef="processJavaError" />
43 <bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="processJavaError" targetRef="EndEvent_2" />
44 </bpmn2:subProcess>
45 <bpmn2:startEvent id="StartEvent_1">
46 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
47 </bpmn2:startEvent>
48 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="initialization" />
49 <bpmn2:scriptTask id="initialization" name="Initialization" scriptFormat="groovy">
50 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
51 <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
52 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
53GenericDeleteService deleteService = new GenericDeleteService()
54deleteService.preProcessRequest(execution)
55]]></bpmn2:script>
56 </bpmn2:scriptTask>
57 <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="initialization" targetRef="resourceVersionCheck" />
58 <bpmn2:exclusiveGateway id="resourceVersionCheck" name="Resource Version Provided?" default="yes">
59 <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
60 <bpmn2:outgoing>no</bpmn2:outgoing>
61 <bpmn2:outgoing>yes</bpmn2:outgoing>
62 </bpmn2:exclusiveGateway>
63 <bpmn2:sequenceFlow id="no" name="No" sourceRef="resourceVersionCheck" targetRef="queryForResourceVersion">
64 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDS_resourceVersionProvidedFlag" ) == false}]]></bpmn2:conditionExpression>
65 </bpmn2:sequenceFlow>
66 <bpmn2:sequenceFlow id="yes" name="Yes" sourceRef="resourceVersionCheck" targetRef="ExclusiveGateway_2" />
67 <bpmn2:scriptTask id="toggleSuccess" name="Toggle Success Indicator" scriptFormat="groovy">
68 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
69 <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
70 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
71GenericDeleteService deleteService = new GenericDeleteService()
72deleteService.setSuccessIndicator(execution, true)
73
74execution.setVariable("WorkflowResponse", " ") //for junits
75]]></bpmn2:script>
76 </bpmn2:scriptTask>
77 <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="toggleSuccess" targetRef="EndEvent_1" />
78 <bpmn2:exclusiveGateway id="ExclusiveGateway_2">
79 <bpmn2:incoming>yes</bpmn2:incoming>
80 <bpmn2:incoming>siExistYes</bpmn2:incoming>
81 <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
82 </bpmn2:exclusiveGateway>
83 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="ExclusiveGateway_2" targetRef="deleteServiceInstance" />
84 <bpmn2:endEvent id="EndEvent_1">
85 <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
86 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_24" />
87 </bpmn2:endEvent>
88 <bpmn2:scriptTask id="deleteServiceInstance" name="DELETE
89&#10;Service Instance" scriptFormat="groovy">
90 <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
91 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
92 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
93GenericDeleteService deleteService = new GenericDeleteService()
94deleteService.deleteServiceObject(execution)]]></bpmn2:script>
95 </bpmn2:scriptTask>
96 <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="deleteServiceInstance" targetRef="toggleSuccess" />
97 <bpmn2:scriptTask id="queryForResourceVersion" name="Query SI Resource Version" scriptFormat="groovy">
98 <bpmn2:incoming>no</bpmn2:incoming>
99 <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
100 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
101GenericDeleteService deleteService = new GenericDeleteService()
102deleteService.getServiceResourceVersion(execution)]]></bpmn2:script>
103 </bpmn2:scriptTask>
104 <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="queryForResourceVersion" targetRef="siExistCheck" />
105 <bpmn2:exclusiveGateway id="siExistCheck" name="Service Exist?">
106 <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
107 <bpmn2:outgoing>siExistYes</bpmn2:outgoing>
108 <bpmn2:outgoing>siExistNo</bpmn2:outgoing>
109 </bpmn2:exclusiveGateway>
110 <bpmn2:sequenceFlow id="siExistYes" name="Yes" sourceRef="siExistCheck" targetRef="ExclusiveGateway_2">
111 <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("GENDS_FoundIndicator" ) == true}]]></bpmn2:conditionExpression>
112 </bpmn2:sequenceFlow>
113 <bpmn2:sequenceFlow id="siExistNo" name="No" sourceRef="siExistCheck" targetRef="EndEvent_4" />
114 <bpmn2:endEvent id="EndEvent_4">
115 <bpmn2:incoming>siExistNo</bpmn2:incoming>
116 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_38" />
117 </bpmn2:endEvent>
118 </bpmn2:process>
119 <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
120 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
121 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericDeleteService">
122 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_63" bpmnElement="StartEvent_1">
123 <dc:Bounds x="84" y="221" width="36" height="36" />
124 <bpmndi:BPMNLabel>
125 <dc:Bounds x="102" y="262" width="0" height="0" />
126 </bpmndi:BPMNLabel>
127 </bpmndi:BPMNShape>
128 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_267" bpmnElement="initialization">
129 <dc:Bounds x="216" y="199" width="100" height="80" />
130 </bpmndi:BPMNShape>
131 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_224" bpmnElement="resourceVersionCheck" isMarkerVisible="true">
132 <dc:Bounds x="365" y="213" width="50" height="50" />
133 <bpmndi:BPMNLabel>
134 <dc:Bounds x="401" y="243" width="169" height="22" />
135 </bpmndi:BPMNLabel>
136 </bpmndi:BPMNShape>
137 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_268" bpmnElement="queryForResourceVersion">
138 <dc:Bounds x="457" y="100" width="100" height="80" />
139 </bpmndi:BPMNShape>
140 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_225" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">
141 <dc:Bounds x="600" y="213" width="50" height="50" />
142 <bpmndi:BPMNLabel>
143 <dc:Bounds x="625" y="268" width="0" height="0" />
144 </bpmndi:BPMNLabel>
145 </bpmndi:BPMNShape>
146 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_269" bpmnElement="deleteServiceInstance">
147 <dc:Bounds x="684" y="199" width="100" height="80" />
148 </bpmndi:BPMNShape>
149 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_213" bpmnElement="EndEvent_1">
150 <dc:Bounds x="1006" y="221" width="36" height="36" />
151 <bpmndi:BPMNLabel>
152 <dc:Bounds x="1024" y="262" width="0" height="0" />
153 </bpmndi:BPMNLabel>
154 </bpmndi:BPMNShape>
155 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_20" bpmnElement="bpmnExceptionHandlingSubProcess" isExpanded="true">
156 <dc:Bounds x="155" y="384" width="321" height="169" />
157 </bpmndi:BPMNShape>
158 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_63" targetElement="_BPMNShape_ScriptTask_267">
159 <di:waypoint xsi:type="dc:Point" x="120" y="239" />
160 <di:waypoint xsi:type="dc:Point" x="216" y="239" />
161 <bpmndi:BPMNLabel>
162 <dc:Bounds x="147" y="239" width="6" height="6" />
163 </bpmndi:BPMNLabel>
164 </bpmndi:BPMNEdge>
165 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_267" targetElement="_BPMNShape_ExclusiveGateway_224">
166 <di:waypoint xsi:type="dc:Point" x="316" y="239" />
167 <di:waypoint xsi:type="dc:Point" x="365" y="238" />
168 <bpmndi:BPMNLabel>
169 <dc:Bounds x="217" y="238" width="6" height="6" />
170 </bpmndi:BPMNLabel>
171 </bpmndi:BPMNEdge>
172 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="no" sourceElement="_BPMNShape_ExclusiveGateway_224" targetElement="_BPMNShape_ScriptTask_268">
173 <di:waypoint xsi:type="dc:Point" x="390" y="213" />
174 <di:waypoint xsi:type="dc:Point" x="390" y="140" />
175 <di:waypoint xsi:type="dc:Point" x="457" y="140" />
176 <bpmndi:BPMNLabel>
177 <dc:Bounds x="392" y="179" width="22" height="22" />
178 </bpmndi:BPMNLabel>
179 </bpmndi:BPMNEdge>
180 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ScriptTask_268" targetElement="_BPMNShape_ExclusiveGateway_241">
181 <di:waypoint xsi:type="dc:Point" x="557" y="140" />
182 <di:waypoint xsi:type="dc:Point" x="600" y="139" />
183 <bpmndi:BPMNLabel>
184 <dc:Bounds x="492" y="140" width="6" height="6" />
185 </bpmndi:BPMNLabel>
186 </bpmndi:BPMNEdge>
187 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ExclusiveGateway_225" targetElement="_BPMNShape_ScriptTask_269">
188 <di:waypoint xsi:type="dc:Point" x="650" y="238" />
189 <di:waypoint xsi:type="dc:Point" x="684" y="239" />
190 <bpmndi:BPMNLabel>
191 <dc:Bounds x="556" y="239" width="6" height="6" />
192 </bpmndi:BPMNLabel>
193 </bpmndi:BPMNEdge>
194 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_269" targetElement="_BPMNShape_ScriptTask_272">
195 <di:waypoint xsi:type="dc:Point" x="784" y="239" />
196 <di:waypoint xsi:type="dc:Point" x="826" y="239" />
197 <bpmndi:BPMNLabel>
198 <dc:Bounds x="778" y="239" width="6" height="6" />
199 </bpmndi:BPMNLabel>
200 </bpmndi:BPMNEdge>
201 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="yes" sourceElement="_BPMNShape_ExclusiveGateway_224" targetElement="_BPMNShape_ExclusiveGateway_225">
202 <di:waypoint xsi:type="dc:Point" x="390" y="263" />
203 <di:waypoint xsi:type="dc:Point" x="390" y="310" />
204 <di:waypoint xsi:type="dc:Point" x="517" y="310" />
205 <di:waypoint xsi:type="dc:Point" x="625" y="310" />
206 <di:waypoint xsi:type="dc:Point" x="625" y="263" />
207 <bpmndi:BPMNLabel>
208 <dc:Bounds x="389" y="278" width="29" height="22" />
209 </bpmndi:BPMNLabel>
210 </bpmndi:BPMNEdge>
211 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_23" bpmnElement="javaExceptionSubProcess" isExpanded="true">
212 <dc:Bounds x="163" y="576" width="306" height="157" />
213 </bpmndi:BPMNShape>
214 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_65" bpmnElement="StartEvent_2">
215 <dc:Bounds x="180" y="451" width="36" height="36" />
216 <bpmndi:BPMNLabel>
217 <dc:Bounds x="198" y="492" width="0" height="0" />
218 </bpmndi:BPMNLabel>
219 </bpmndi:BPMNShape>
220 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_66" bpmnElement="StartEvent_3">
221 <dc:Bounds x="192" y="637" width="36" height="36" />
222 <bpmndi:BPMNLabel>
223 <dc:Bounds x="210" y="678" width="0" height="0" />
224 </bpmndi:BPMNLabel>
225 </bpmndi:BPMNShape>
226 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_216" bpmnElement="EndEvent_2">
227 <dc:Bounds x="408" y="637" width="36" height="36" />
228 <bpmndi:BPMNLabel>
229 <dc:Bounds x="426" y="678" width="0" height="0" />
230 </bpmndi:BPMNLabel>
231 </bpmndi:BPMNShape>
232 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_217" bpmnElement="EndEvent_3">
233 <dc:Bounds x="420" y="451" width="36" height="36" />
234 <bpmndi:BPMNLabel>
235 <dc:Bounds x="438" y="492" width="0" height="0" />
236 </bpmndi:BPMNLabel>
237 </bpmndi:BPMNShape>
238 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_270" bpmnElement="processError">
239 <dc:Bounds x="266" y="429" width="100" height="80" />
240 </bpmndi:BPMNShape>
241 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_271" bpmnElement="processJavaError">
242 <dc:Bounds x="267" y="615" width="100" height="80" />
243 </bpmndi:BPMNShape>
244 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_StartEvent_65" targetElement="_BPMNShape_ScriptTask_270">
245 <di:waypoint xsi:type="dc:Point" x="216" y="469" />
246 <di:waypoint xsi:type="dc:Point" x="266" y="469" />
247 <bpmndi:BPMNLabel>
248 <dc:Bounds x="232" y="469" width="6" height="6" />
249 </bpmndi:BPMNLabel>
250 </bpmndi:BPMNEdge>
251 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ScriptTask_270" targetElement="_BPMNShape_EndEvent_217">
252 <di:waypoint xsi:type="dc:Point" x="366" y="469" />
253 <di:waypoint xsi:type="dc:Point" x="420" y="469" />
254 <bpmndi:BPMNLabel>
255 <dc:Bounds x="384" y="469" width="6" height="6" />
256 </bpmndi:BPMNLabel>
257 </bpmndi:BPMNEdge>
258 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_StartEvent_66" targetElement="_BPMNShape_ScriptTask_271">
259 <di:waypoint xsi:type="dc:Point" x="228" y="655" />
260 <di:waypoint xsi:type="dc:Point" x="267" y="655" />
261 </bpmndi:BPMNEdge>
262 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_ScriptTask_271" targetElement="_BPMNShape_EndEvent_216">
263 <di:waypoint xsi:type="dc:Point" x="367" y="655" />
264 <di:waypoint xsi:type="dc:Point" x="408" y="655" />
265 </bpmndi:BPMNEdge>
266 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_272" bpmnElement="toggleSuccess">
267 <dc:Bounds x="826" y="199" width="100" height="80" />
268 </bpmndi:BPMNShape>
269 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ScriptTask_272" targetElement="_BPMNShape_EndEvent_213">
270 <di:waypoint xsi:type="dc:Point" x="926" y="239" />
271 <di:waypoint xsi:type="dc:Point" x="1006" y="239" />
272 <bpmndi:BPMNLabel>
273 <dc:Bounds x="828" y="239" width="6" height="6" />
274 </bpmndi:BPMNLabel>
275 </bpmndi:BPMNEdge>
276 <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_241" bpmnElement="siExistCheck" isMarkerVisible="true">
277 <dc:Bounds x="600" y="114" width="50" height="50" />
278 <bpmndi:BPMNLabel>
279 <dc:Bounds x="596" y="94" width="59" height="22" />
280 </bpmndi:BPMNLabel>
281 </bpmndi:BPMNShape>
282 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="siExistYes" sourceElement="_BPMNShape_ExclusiveGateway_241" targetElement="_BPMNShape_ExclusiveGateway_225">
283 <di:waypoint xsi:type="dc:Point" x="625" y="164" />
284 <di:waypoint xsi:type="dc:Point" x="625" y="213" />
285 <bpmndi:BPMNLabel>
286 <dc:Bounds x="624" y="168" width="29" height="22" />
287 </bpmndi:BPMNLabel>
288 </bpmndi:BPMNEdge>
289 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="siExistNo" sourceElement="_BPMNShape_ExclusiveGateway_241" targetElement="_BPMNShape_EndEvent_241">
290 <di:waypoint xsi:type="dc:Point" x="650" y="139" />
291 <di:waypoint xsi:type="dc:Point" x="733" y="140" />
292 <bpmndi:BPMNLabel>
293 <dc:Bounds x="664" y="140" width="22" height="22" />
294 </bpmndi:BPMNLabel>
295 </bpmndi:BPMNEdge>
296 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_241" bpmnElement="EndEvent_4">
297 <dc:Bounds x="733" y="122" width="36" height="36" />
298 <bpmndi:BPMNLabel>
299 <dc:Bounds x="751" y="163" width="0" height="0" />
300 </bpmndi:BPMNLabel>
301 </bpmndi:BPMNShape>
302 </bpmndi:BPMNPlane>
303 </bpmndi:BPMNDiagram>
304</bpmn2:definitions>