1 <?xml version="1.0" encoding="UTF-8"?>
2 <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0">
3 <bpmn:process id="DoDeleteResourcesV1" name="DoDeleteResourcesV1" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1" name="Start Resource Delete">
5 <bpmn:outgoing>SequenceFlow_0stqur4</bpmn:outgoing>
7 <bpmn:scriptTask id="ScriptTask_0ngvt9d" name="Prepare Delete Resource Recipe" scriptFormat="groovy">
8 <bpmn:incoming>SequenceFlow_1oil1t3</bpmn:incoming>
9 <bpmn:incoming>SequenceFlow_13nyd1j</bpmn:incoming>
10 <bpmn:outgoing>SequenceFlow_1qm7owo</bpmn:outgoing>
11 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
12 def ddrs = new DoDeleteResourcesV1()
13 ddrs.preResourceDelete(execution)]]></bpmn:script>
15 <bpmn:scriptTask id="ScriptTask_15zy0jf" name="Execute Delete Resource Recipe" scriptFormat="groovy">
16 <bpmn:incoming>SequenceFlow_1qm7owo</bpmn:incoming>
17 <bpmn:outgoing>SequenceFlow_1ly5jrs</bpmn:outgoing>
18 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
19 String resourceName = execution.getVariable("resourceType")
20 def ddr = new DoDeleteResourcesV1()
21 ddr.executeResourceDelete(execution, resourceName )]]></bpmn:script>
23 <bpmn:scriptTask id="ScriptTask_1gf78zz" name="Parse Next Resource" scriptFormat="groovy">
24 <bpmn:incoming>SequenceFlow_1ly5jrs</bpmn:incoming>
25 <bpmn:outgoing>SequenceFlow_0i1gez5</bpmn:outgoing>
26 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
27 def ddr = new DoDeleteResourcesV1()
28 ddr.parseNextResource(execution)]]></bpmn:script>
30 <bpmn:exclusiveGateway id="ExclusiveGateway_0rtr0n7" name="Is All Resource Deleted">
31 <bpmn:incoming>SequenceFlow_0i1gez5</bpmn:incoming>
32 <bpmn:outgoing>SequenceFlow_1oil1t3</bpmn:outgoing>
33 <bpmn:outgoing>SequenceFlow_1d5mzit</bpmn:outgoing>
34 </bpmn:exclusiveGateway>
35 <bpmn:sequenceFlow id="SequenceFlow_0stqur4" sourceRef="StartEvent_1" targetRef="Task_1ue68b0" />
36 <bpmn:sequenceFlow id="SequenceFlow_1qm7owo" sourceRef="ScriptTask_0ngvt9d" targetRef="ScriptTask_15zy0jf" />
37 <bpmn:sequenceFlow id="SequenceFlow_1ly5jrs" sourceRef="ScriptTask_15zy0jf" targetRef="ScriptTask_1gf78zz" />
38 <bpmn:sequenceFlow id="SequenceFlow_0i1gez5" sourceRef="ScriptTask_1gf78zz" targetRef="ExclusiveGateway_0rtr0n7" />
39 <bpmn:sequenceFlow id="SequenceFlow_1oil1t3" name="No" sourceRef="ExclusiveGateway_0rtr0n7" targetRef="ScriptTask_0ngvt9d">
40 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("allResourceFinished" ) == "false" )}]]></bpmn:conditionExpression>
42 <bpmn:subProcess id="SubProcess_0sbt4ns" name="Sub-process for UnexpectedErrors" triggeredByEvent="true">
43 <bpmn:startEvent id="StartEvent_1cjikl5">
44 <bpmn:outgoing>SequenceFlow_0rkycoj</bpmn:outgoing>
45 <bpmn:errorEventDefinition />
47 <bpmn:endEvent id="EndEvent_0gh3mcj">
48 <bpmn:incoming>SequenceFlow_117fiux</bpmn:incoming>
50 <bpmn:scriptTask id="ScriptTask_0plexin" name="Log / Print Unexpected Error" scriptFormat="groovy">
51 <bpmn:incoming>SequenceFlow_0rkycoj</bpmn:incoming>
52 <bpmn:outgoing>SequenceFlow_117fiux</bpmn:outgoing>
53 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
54 ExceptionUtil ex = new ExceptionUtil()
55 ex.processJavaException(execution)]]></bpmn:script>
57 <bpmn:sequenceFlow id="SequenceFlow_0rkycoj" name="" sourceRef="StartEvent_1cjikl5" targetRef="ScriptTask_0plexin" />
58 <bpmn:sequenceFlow id="SequenceFlow_117fiux" name="" sourceRef="ScriptTask_0plexin" targetRef="EndEvent_0gh3mcj" />
60 <bpmn:serviceTask id="ServiceTask_176j3rl" name="Call Delete SDNC Service Topology" camunda:class="org.openecomp.mso.bpmn.infrastructure.workflow.serviceTask.SdncServiceTopologyOperationTask">
61 <bpmn:incoming>SequenceFlow_1s1nnmj</bpmn:incoming>
62 <bpmn:outgoing>SequenceFlow_174yrgl</bpmn:outgoing>
64 <bpmn:exclusiveGateway id="ExclusiveGateway_1x63i6w" name="Is SDNC Service Contained">
65 <bpmn:incoming>SequenceFlow_1yrkxjm</bpmn:incoming>
66 <bpmn:outgoing>SequenceFlow_1s1nnmj</bpmn:outgoing>
67 <bpmn:outgoing>SequenceFlow_0lk19rm</bpmn:outgoing>
68 </bpmn:exclusiveGateway>
69 <bpmn:sequenceFlow id="SequenceFlow_1yrkxjm" sourceRef="StartEvent_1eo3c2a" targetRef="ExclusiveGateway_1x63i6w" />
70 <bpmn:endEvent id="EndEvent_17bzayo" name="End Resource Deletion">
71 <bpmn:incoming>SequenceFlow_0o21fg8</bpmn:incoming>
73 <bpmn:sequenceFlow id="SequenceFlow_1s1nnmj" name="yes" sourceRef="ExclusiveGateway_1x63i6w" targetRef="ServiceTask_176j3rl">
74 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("isContainsWanResource" ) == "true" )}]]></bpmn:conditionExpression>
76 <bpmn:sequenceFlow id="SequenceFlow_174yrgl" sourceRef="ServiceTask_176j3rl" targetRef="ExclusiveGateway_1jybr0n" />
77 <bpmn:sequenceFlow id="SequenceFlow_0lk19rm" name="no" sourceRef="ExclusiveGateway_1x63i6w" targetRef="ExclusiveGateway_1jybr0n">
78 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("isContainsWanResource" ) == "false" )}]]></bpmn:conditionExpression>
80 <bpmn:sequenceFlow id="SequenceFlow_1d5mzit" sourceRef="ExclusiveGateway_0rtr0n7" targetRef="EndEvent_17h3h92" />
81 <bpmn:intermediateThrowEvent id="EndEvent_17h3h92" name="Go To Delete SDNC Service Topology">
82 <bpmn:incoming>SequenceFlow_1d5mzit</bpmn:incoming>
83 <bpmn:linkEventDefinition name="DeleteSDNCServiceTopology" />
84 </bpmn:intermediateThrowEvent>
85 <bpmn:intermediateCatchEvent id="StartEvent_1eo3c2a" name="Delete SDNC Service Topology">
86 <bpmn:outgoing>SequenceFlow_1yrkxjm</bpmn:outgoing>
87 <bpmn:linkEventDefinition name="DeleteSDNCServiceTopology" />
88 </bpmn:intermediateCatchEvent>
89 <bpmn:exclusiveGateway id="ExclusiveGateway_1jybr0n">
90 <bpmn:incoming>SequenceFlow_174yrgl</bpmn:incoming>
91 <bpmn:incoming>SequenceFlow_0lk19rm</bpmn:incoming>
92 <bpmn:outgoing>SequenceFlow_0o21fg8</bpmn:outgoing>
93 </bpmn:exclusiveGateway>
94 <bpmn:sequenceFlow id="SequenceFlow_0o21fg8" sourceRef="ExclusiveGateway_1jybr0n" targetRef="EndEvent_17bzayo" />
95 <bpmn:scriptTask id="ScriptTask_12460xo" name="Sequense Resources" scriptFormat="groovy">
96 <bpmn:incoming>SequenceFlow_14dezx8</bpmn:incoming>
97 <bpmn:outgoing>SequenceFlow_13nyd1j</bpmn:outgoing>
98 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
99 def ddrs = new DoDeleteResourcesV1()
100 ddrs.sequenceResource(execution)]]></bpmn:script>
102 <bpmn:sequenceFlow id="SequenceFlow_13nyd1j" sourceRef="ScriptTask_12460xo" targetRef="ScriptTask_0ngvt9d" />
103 <bpmn:sequenceFlow id="SequenceFlow_14dezx8" sourceRef="Task_1ue68b0" targetRef="ScriptTask_12460xo" />
104 <bpmn:scriptTask id="Task_1ue68b0" name="Preprocess Incoming Request" scriptFormat="groovy">
105 <bpmn:incoming>SequenceFlow_0stqur4</bpmn:incoming>
106 <bpmn:outgoing>SequenceFlow_14dezx8</bpmn:outgoing>
107 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*
108 def ddrs = new DoDeleteResourcesV1()
109 ddrs.preProcessRequest(execution)]]></bpmn:script>
112 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
113 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoDeleteResourcesV1">
114 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
115 <dc:Bounds x="-70" y="255" width="36" height="36" />
117 <dc:Bounds x="-89" y="291" width="76" height="24" />
120 <bpmndi:BPMNShape id="ScriptTask_0ngvt9d_di" bpmnElement="ScriptTask_0ngvt9d">
121 <dc:Bounds x="392" y="233" width="100" height="80" />
123 <bpmndi:BPMNShape id="ScriptTask_15zy0jf_di" bpmnElement="ScriptTask_15zy0jf">
124 <dc:Bounds x="587" y="233" width="100" height="80" />
126 <bpmndi:BPMNShape id="ScriptTask_1gf78zz_di" bpmnElement="ScriptTask_1gf78zz">
127 <dc:Bounds x="802" y="233" width="100" height="80" />
129 <bpmndi:BPMNShape id="ExclusiveGateway_0rtr0n7_di" bpmnElement="ExclusiveGateway_0rtr0n7" isMarkerVisible="true">
130 <dc:Bounds x="1011" y="248" width="50" height="50" />
132 <dc:Bounds x="999" y="302" width="75" height="24" />
135 <bpmndi:BPMNEdge id="SequenceFlow_0stqur4_di" bpmnElement="SequenceFlow_0stqur4">
136 <di:waypoint xsi:type="dc:Point" x="-34" y="273" />
137 <di:waypoint xsi:type="dc:Point" x="38" y="273" />
139 <dc:Bounds x="2" y="252" width="0" height="12" />
142 <bpmndi:BPMNEdge id="SequenceFlow_1qm7owo_di" bpmnElement="SequenceFlow_1qm7owo">
143 <di:waypoint xsi:type="dc:Point" x="492" y="273" />
144 <di:waypoint xsi:type="dc:Point" x="587" y="273" />
146 <dc:Bounds x="539.5" y="252" width="0" height="12" />
149 <bpmndi:BPMNEdge id="SequenceFlow_1ly5jrs_di" bpmnElement="SequenceFlow_1ly5jrs">
150 <di:waypoint xsi:type="dc:Point" x="687" y="273" />
151 <di:waypoint xsi:type="dc:Point" x="802" y="273" />
153 <dc:Bounds x="744.5" y="252" width="0" height="12" />
156 <bpmndi:BPMNEdge id="SequenceFlow_0i1gez5_di" bpmnElement="SequenceFlow_0i1gez5">
157 <di:waypoint xsi:type="dc:Point" x="902" y="273" />
158 <di:waypoint xsi:type="dc:Point" x="1011" y="273" />
160 <dc:Bounds x="956.5" y="252" width="0" height="12" />
163 <bpmndi:BPMNEdge id="SequenceFlow_1oil1t3_di" bpmnElement="SequenceFlow_1oil1t3">
164 <di:waypoint xsi:type="dc:Point" x="1036" y="298" />
165 <di:waypoint xsi:type="dc:Point" x="1036" y="418" />
166 <di:waypoint xsi:type="dc:Point" x="442" y="418" />
167 <di:waypoint xsi:type="dc:Point" x="442" y="313" />
169 <dc:Bounds x="731" y="397" width="16" height="12" />
172 <bpmndi:BPMNShape id="SubProcess_0sbt4ns_di" bpmnElement="SubProcess_0sbt4ns" isExpanded="true">
173 <dc:Bounds x="453" y="815" width="467" height="193" />
175 <bpmndi:BPMNShape id="StartEvent_1cjikl5_di" bpmnElement="StartEvent_1cjikl5">
176 <dc:Bounds x="523" y="884" width="36" height="36" />
178 <dc:Bounds x="406" y="925" width="0" height="12" />
181 <bpmndi:BPMNShape id="EndEvent_0gh3mcj_di" bpmnElement="EndEvent_0gh3mcj">
182 <dc:Bounds x="816" y="884" width="36" height="36" />
184 <dc:Bounds x="699" y="925" width="0" height="12" />
187 <bpmndi:BPMNShape id="ScriptTask_0plexin_di" bpmnElement="ScriptTask_0plexin">
188 <dc:Bounds x="627" y="862" width="100" height="80" />
190 <bpmndi:BPMNEdge id="SequenceFlow_0rkycoj_di" bpmnElement="SequenceFlow_0rkycoj">
191 <di:waypoint xsi:type="dc:Point" x="559" y="902" />
192 <di:waypoint xsi:type="dc:Point" x="627" y="902" />
194 <dc:Bounds x="458" y="887" width="0" height="12" />
197 <bpmndi:BPMNEdge id="SequenceFlow_117fiux_di" bpmnElement="SequenceFlow_117fiux">
198 <di:waypoint xsi:type="dc:Point" x="727" y="902" />
199 <di:waypoint xsi:type="dc:Point" x="816" y="902" />
201 <dc:Bounds x="639.5" y="887" width="0" height="12" />
204 <bpmndi:BPMNShape id="ServiceTask_176j3rl_di" bpmnElement="ServiceTask_176j3rl">
205 <dc:Bounds x="604" y="566" width="100" height="80" />
207 <bpmndi:BPMNShape id="ExclusiveGateway_1x63i6w_di" bpmnElement="ExclusiveGateway_1x63i6w" isMarkerVisible="true">
208 <dc:Bounds x="396" y="581" width="50" height="50" />
210 <dc:Bounds x="379" y="635" width="84" height="24" />
213 <bpmndi:BPMNEdge id="SequenceFlow_1yrkxjm_di" bpmnElement="SequenceFlow_1yrkxjm">
214 <di:waypoint xsi:type="dc:Point" x="269" y="606" />
215 <di:waypoint xsi:type="dc:Point" x="396" y="606" />
217 <dc:Bounds x="332.5" y="585" width="0" height="12" />
220 <bpmndi:BPMNShape id="EndEvent_17bzayo_di" bpmnElement="EndEvent_17bzayo">
221 <dc:Bounds x="992.2009291521485" y="588" width="36" height="36" />
223 <dc:Bounds x="977" y="628" width="72" height="24" />
226 <bpmndi:BPMNEdge id="SequenceFlow_1s1nnmj_di" bpmnElement="SequenceFlow_1s1nnmj">
227 <di:waypoint xsi:type="dc:Point" x="446" y="606" />
228 <di:waypoint xsi:type="dc:Point" x="604" y="606" />
230 <dc:Bounds x="516" y="585" width="20" height="12" />
233 <bpmndi:BPMNEdge id="SequenceFlow_174yrgl_di" bpmnElement="SequenceFlow_174yrgl">
234 <di:waypoint xsi:type="dc:Point" x="704" y="606" />
235 <di:waypoint xsi:type="dc:Point" x="827" y="606" />
237 <dc:Bounds x="765.5" y="585" width="0" height="12" />
240 <bpmndi:BPMNEdge id="SequenceFlow_0lk19rm_di" bpmnElement="SequenceFlow_0lk19rm">
241 <di:waypoint xsi:type="dc:Point" x="421" y="631" />
242 <di:waypoint xsi:type="dc:Point" x="421" y="721" />
243 <di:waypoint xsi:type="dc:Point" x="852" y="721" />
244 <di:waypoint xsi:type="dc:Point" x="852" y="631" />
246 <dc:Bounds x="629" y="700" width="15" height="12" />
249 <bpmndi:BPMNEdge id="SequenceFlow_1d5mzit_di" bpmnElement="SequenceFlow_1d5mzit">
250 <di:waypoint xsi:type="dc:Point" x="1061" y="273" />
251 <di:waypoint xsi:type="dc:Point" x="1150" y="273" />
253 <dc:Bounds x="1105.5" y="252" width="0" height="12" />
256 <bpmndi:BPMNShape id="IntermediateThrowEvent_122grb2_di" bpmnElement="EndEvent_17h3h92">
257 <dc:Bounds x="1150" y="255" width="36" height="36" />
259 <dc:Bounds x="1134" y="295" width="73" height="36" />
262 <bpmndi:BPMNShape id="IntermediateCatchEvent_11q62m0_di" bpmnElement="StartEvent_1eo3c2a">
263 <dc:Bounds x="233" y="588" width="36" height="36" />
265 <dc:Bounds x="209" y="628" width="87" height="24" />
268 <bpmndi:BPMNShape id="ExclusiveGateway_1jybr0n_di" bpmnElement="ExclusiveGateway_1jybr0n" isMarkerVisible="true">
269 <dc:Bounds x="827" y="581" width="50" height="50" />
271 <dc:Bounds x="815" y="635" width="75" height="24" />
274 <bpmndi:BPMNEdge id="SequenceFlow_0o21fg8_di" bpmnElement="SequenceFlow_0o21fg8">
275 <di:waypoint xsi:type="dc:Point" x="877" y="606" />
276 <di:waypoint xsi:type="dc:Point" x="992" y="606" />
278 <dc:Bounds x="934.5" y="585" width="0" height="12" />
281 <bpmndi:BPMNShape id="ScriptTask_12460xo_di" bpmnElement="ScriptTask_12460xo">
282 <dc:Bounds x="219" y="233" width="100" height="80" />
284 <bpmndi:BPMNEdge id="SequenceFlow_13nyd1j_di" bpmnElement="SequenceFlow_13nyd1j">
285 <di:waypoint xsi:type="dc:Point" x="319" y="273" />
286 <di:waypoint xsi:type="dc:Point" x="392" y="273" />
288 <dc:Bounds x="355.5" y="252" width="0" height="12" />
291 <bpmndi:BPMNEdge id="SequenceFlow_14dezx8_di" bpmnElement="SequenceFlow_14dezx8">
292 <di:waypoint xsi:type="dc:Point" x="138" y="273" />
293 <di:waypoint xsi:type="dc:Point" x="219" y="273" />
295 <dc:Bounds x="178.5" y="252" width="0" height="12" />
298 <bpmndi:BPMNShape id="ScriptTask_1tdnal8_di" bpmnElement="Task_1ue68b0">
299 <dc:Bounds x="38" y="233" width="100" height="80" />
302 </bpmndi:BPMNDiagram>