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