blob: be15908697607691b2b8292417ee1a3f7f6e0bf7 [file] [log] [blame]
Yulian Han32fdbf92018-08-20 11:05:37 +08001<?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.11.3">
3 <bpmn:process id="DeleteDeviceResource.bpmn" name="DeleteDeviceResource.bpmn" isExecutable="true">
4 <bpmn:endEvent id="EndEvent_1x6k78c" name="delete Dev end">
5 <bpmn:incoming>SequenceFlow_0auvfvm</bpmn:incoming>
6 </bpmn:endEvent>
7 <bpmn:scriptTask id="ScriptTask_1g5zyi6" name="Send Sync Ack Response" scriptFormat="groovy">
8 <bpmn:incoming>SequenceFlow_05niqbf</bpmn:incoming>
9 <bpmn:outgoing>SequenceFlow_0auvfvm</bpmn:outgoing>
10 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
11def csi = new DeleteDeviceResource.bpmn()
12csi.sendSyncResponse(execution)]]></bpmn:script>
13 </bpmn:scriptTask>
14 <bpmn:sequenceFlow id="SequenceFlow_05niqbf" sourceRef="Task_0bga3e8" targetRef="ScriptTask_1g5zyi6" />
15 <bpmn:sequenceFlow id="SequenceFlow_0auvfvm" sourceRef="ScriptTask_1g5zyi6" targetRef="EndEvent_1x6k78c" />
16 <bpmn:callActivity id="Task_0bga3e8" name="call Delete SDNC Network Resource" calledElement="DeleteSDNCNetworkResource">
17 <bpmn:extensionElements>
18 <camunda:in source="mso-request-id" target="mso-request-id" />
19 <camunda:in source="requestAction" target="requestAction" />
20 <camunda:in source="recipeParams" target="recipeParams" />
21 <camunda:in source="resourceInput" target="resourceInput" />
22 <camunda:in source="recipeParamXsd" target="recipeParamXsd" />
23 <camunda:in source="operationId" target="operationId" />
24 <camunda:in source="svcAction" target="svcAction" />
25 <camunda:in source="requestAction" target="requestAction" />
26 <camunda:in source="URN_mso_workflow_sdncadapter_callback" target="URN_mso_workflow_sdncadapter_callback" />
27 <camunda:in source="networkRequest" target="networkRequest" />
28 </bpmn:extensionElements>
29 <bpmn:incoming>SequenceFlow_1gu13by</bpmn:incoming>
30 <bpmn:outgoing>SequenceFlow_05niqbf</bpmn:outgoing>
31 </bpmn:callActivity>
32 <bpmn:startEvent id="StartEvent_1vjxae6" name="deleteDev_StartEvent">
33 <bpmn:outgoing>SequenceFlow_1rwaeun</bpmn:outgoing>
34 </bpmn:startEvent>
35 <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_1caax8u" name="GoTo StartDeleteDevinSDNC">
36 <bpmn:incoming>SequenceFlow_1ylvnxq</bpmn:incoming>
37 <bpmn:linkEventDefinition name="StartDeleteDevinSDNC" />
38 </bpmn:intermediateThrowEvent>
39 <bpmn:scriptTask id="ScriptTask_00y93jj" name="Check DevType from AAI" scriptFormat="groovy">
40 <bpmn:incoming>SequenceFlow_0rq2jb1</bpmn:incoming>
41 <bpmn:outgoing>SequenceFlow_1hp2h5t</bpmn:outgoing>
42 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
43def dcsi = new DeleteDeviceResource()
44dcsi.checkDevType(execution)]]></bpmn:script>
45 </bpmn:scriptTask>
46 <bpmn:exclusiveGateway id="ExclusiveGateway_0kba700" name="Dev Type" default="SequenceFlow_076ma0v">
47 <bpmn:incoming>SequenceFlow_1hp2h5t</bpmn:incoming>
48 <bpmn:outgoing>SequenceFlow_1ss02ik</bpmn:outgoing>
49 <bpmn:outgoing>SequenceFlow_0h4378g</bpmn:outgoing>
50 <bpmn:outgoing>SequenceFlow_076ma0v</bpmn:outgoing>
51 </bpmn:exclusiveGateway>
52 <bpmn:intermediateThrowEvent id="IntermediateThrowEvent_1chnlq6" name="GoTo StartDeleteDevinSDNC">
53 <bpmn:incoming>SequenceFlow_0h4378g</bpmn:incoming>
54 <bpmn:linkEventDefinition name="StartDeleteDevinSDNC" />
55 </bpmn:intermediateThrowEvent>
56 <bpmn:sequenceFlow id="SequenceFlow_1ss02ik" name="VNF" sourceRef="ExclusiveGateway_0kba700" targetRef="ScriptTask_02rli65">
57 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("device_class" ) == "VNF" )}]]></bpmn:conditionExpression>
58 </bpmn:sequenceFlow>
59 <bpmn:sequenceFlow id="SequenceFlow_1hp2h5t" sourceRef="ScriptTask_00y93jj" targetRef="ExclusiveGateway_0kba700" />
60 <bpmn:sequenceFlow id="SequenceFlow_0h4378g" name="PNF" sourceRef="ExclusiveGateway_0kba700" targetRef="IntermediateThrowEvent_1chnlq6">
61 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[#{(execution.getVariable("device_class" ) == "PNF" )}]]></bpmn:conditionExpression>
62 </bpmn:sequenceFlow>
63 <bpmn:sequenceFlow id="SequenceFlow_1rwaeun" sourceRef="StartEvent_1vjxae6" targetRef="ScriptTask_14dav1d" />
64 <bpmn:scriptTask id="ScriptTask_14dav1d" name="Pre Process Request" scriptFormat="groovy">
65 <bpmn:incoming>SequenceFlow_1rwaeun</bpmn:incoming>
66 <bpmn:outgoing>SequenceFlow_0rq2jb1</bpmn:outgoing>
67 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
68def dcsi = new DeleteDeviceResource()
69dcsi.preProcessRequest(execution)]]></bpmn:script>
70 </bpmn:scriptTask>
71 <bpmn:sequenceFlow id="SequenceFlow_0rq2jb1" sourceRef="ScriptTask_14dav1d" targetRef="ScriptTask_00y93jj" />
72 <bpmn:intermediateCatchEvent id="IntermediateCatchEvent_0slgrxw" name="StartDeleteDevinSDNC">
73 <bpmn:outgoing>SequenceFlow_1gu13by</bpmn:outgoing>
74 <bpmn:linkEventDefinition name="StartDeleteDevinSDNC" />
75 </bpmn:intermediateCatchEvent>
76 <bpmn:sequenceFlow id="SequenceFlow_1gu13by" sourceRef="IntermediateCatchEvent_0slgrxw" targetRef="Task_0bga3e8" />
77 <bpmn:callActivity id="CallActivity_0pyrfca" name="call DeleteVNF" calledElement="DoDeleteVNF">
78 <bpmn:extensionElements>
79 <camunda:in source="mso-request-id" target="mso-request-id" />
80 <camunda:in source="requestAction" target="requestAction" />
81 <camunda:in source="recipeParams" target="recipeParams" />
82 <camunda:in source="resourceInput" target="resourceInput" />
83 <camunda:in source="recipeParamXsd" target="recipeParamXsd" />
84 <camunda:in source="operationId" target="operationId" />
85 <camunda:in source="svcAction" target="svcAction" />
86 <camunda:in source="requestAction" target="requestAction" />
87 <camunda:in source="URN_mso_workflow_sdncadapter_callback" target="URN_mso_workflow_sdncadapter_callback" />
88 <camunda:in source="networkRequest" target="networkRequest" />
89 </bpmn:extensionElements>
90 <bpmn:incoming>SequenceFlow_0pg3072</bpmn:incoming>
91 <bpmn:outgoing>SequenceFlow_0pkp4ce</bpmn:outgoing>
92 </bpmn:callActivity>
93 <bpmn:sequenceFlow id="SequenceFlow_0pkp4ce" sourceRef="CallActivity_0pyrfca" targetRef="ScriptTask_0u1piih" />
94 <bpmn:endEvent id="EndEvent_0ymfq61">
95 <bpmn:incoming>SequenceFlow_076ma0v</bpmn:incoming>
96 </bpmn:endEvent>
97 <bpmn:sequenceFlow id="SequenceFlow_076ma0v" sourceRef="ExclusiveGateway_0kba700" targetRef="EndEvent_0ymfq61" />
98 <bpmn:scriptTask id="ScriptTask_02rli65" name="Get VNF ID" scriptFormat="groovy">
99 <bpmn:incoming>SequenceFlow_1ss02ik</bpmn:incoming>
100 <bpmn:outgoing>SequenceFlow_0pg3072</bpmn:outgoing>
101 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
102def dcsi = new DeleteDeviceResource()
103dcsi.getVNFTemplatefromSDC(execution)]]></bpmn:script>
104 </bpmn:scriptTask>
105 <bpmn:sequenceFlow id="SequenceFlow_0pg3072" sourceRef="ScriptTask_02rli65" targetRef="CallActivity_0pyrfca" />
106 <bpmn:scriptTask id="ScriptTask_0u1piih" name="Post VNF info process " scriptFormat="groovy">
107 <bpmn:incoming>SequenceFlow_0pkp4ce</bpmn:incoming>
108 <bpmn:outgoing>SequenceFlow_1ylvnxq</bpmn:outgoing>
109 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
110def dcsi = new DeleteDeviceResource()
111dcsi.postVNFInfoProcess(execution)]]></bpmn:script>
112 </bpmn:scriptTask>
113 <bpmn:sequenceFlow id="SequenceFlow_1ylvnxq" sourceRef="ScriptTask_0u1piih" targetRef="IntermediateThrowEvent_1caax8u" />
114 </bpmn:process>
115 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
116 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteDeviceResource.bpmn">
117 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
118 <dc:Bounds x="1026" y="111" width="36" height="36" />
119 <bpmndi:BPMNLabel>
120 <dc:Bounds x="994" y="153" width="75" height="12" />
121 </bpmndi:BPMNLabel>
122 </bpmndi:BPMNShape>
123 <bpmndi:BPMNShape id="ScriptTask_1g5zyi6_di" bpmnElement="ScriptTask_1g5zyi6">
124 <dc:Bounds x="494" y="89" width="100" height="80" />
125 </bpmndi:BPMNShape>
126 <bpmndi:BPMNEdge id="SequenceFlow_05niqbf_di" bpmnElement="SequenceFlow_05niqbf">
127 <di:waypoint xsi:type="dc:Point" x="191" y="129" />
128 <di:waypoint xsi:type="dc:Point" x="494" y="129" />
129 <bpmndi:BPMNLabel>
130 <dc:Bounds x="297.5" y="104" width="90" height="20" />
131 </bpmndi:BPMNLabel>
132 </bpmndi:BPMNEdge>
133 <bpmndi:BPMNEdge id="SequenceFlow_0auvfvm_di" bpmnElement="SequenceFlow_0auvfvm">
134 <di:waypoint xsi:type="dc:Point" x="594" y="129" />
135 <di:waypoint xsi:type="dc:Point" x="1026" y="129" />
136 <bpmndi:BPMNLabel>
137 <dc:Bounds x="765" y="104" width="90" height="20" />
138 </bpmndi:BPMNLabel>
139 </bpmndi:BPMNEdge>
140 <bpmndi:BPMNShape id="CallActivity_0aywvn3_di" bpmnElement="Task_0bga3e8">
141 <dc:Bounds x="91" y="89" width="100" height="80" />
142 </bpmndi:BPMNShape>
143 <bpmndi:BPMNShape id="StartEvent_1vjxae6_di" bpmnElement="StartEvent_1vjxae6">
144 <dc:Bounds x="-188" y="-145" width="36" height="36" />
145 <bpmndi:BPMNLabel>
146 <dc:Bounds x="-211" y="-109" width="88" height="24" />
147 </bpmndi:BPMNLabel>
148 </bpmndi:BPMNShape>
149 <bpmndi:BPMNShape id="IntermediateThrowEvent_1caax8u_di" bpmnElement="IntermediateThrowEvent_1caax8u">
150 <dc:Bounds x="1026" y="-145" width="36" height="36" />
151 <bpmndi:BPMNLabel>
152 <dc:Bounds x="1010" y="-104" width="77" height="36" />
153 </bpmndi:BPMNLabel>
154 </bpmndi:BPMNShape>
155 <bpmndi:BPMNShape id="ScriptTask_00y93jj_di" bpmnElement="ScriptTask_00y93jj">
156 <dc:Bounds x="141" y="-167" width="100" height="80" />
157 </bpmndi:BPMNShape>
158 <bpmndi:BPMNShape id="ExclusiveGateway_0kba700_di" bpmnElement="ExclusiveGateway_0kba700" isMarkerVisible="true">
159 <dc:Bounds x="334" y="-152" width="50" height="50" />
160 <bpmndi:BPMNLabel>
161 <dc:Bounds x="309" y="-166" width="34" height="12" />
162 </bpmndi:BPMNLabel>
163 </bpmndi:BPMNShape>
164 <bpmndi:BPMNShape id="IntermediateThrowEvent_1chnlq6_di" bpmnElement="IntermediateThrowEvent_1chnlq6">
165 <dc:Bounds x="341" y="-28" width="36" height="36" />
166 <bpmndi:BPMNLabel>
167 <dc:Bounds x="325" y="13" width="78" height="36" />
168 </bpmndi:BPMNLabel>
169 </bpmndi:BPMNShape>
170 <bpmndi:BPMNEdge id="SequenceFlow_1ss02ik_di" bpmnElement="SequenceFlow_1ss02ik">
171 <di:waypoint xsi:type="dc:Point" x="384" y="-127" />
172 <di:waypoint xsi:type="dc:Point" x="480" y="-127" />
173 <bpmndi:BPMNLabel>
174 <dc:Bounds x="420.94444444444446" y="-148" width="23" height="12" />
175 </bpmndi:BPMNLabel>
176 </bpmndi:BPMNEdge>
177 <bpmndi:BPMNEdge id="SequenceFlow_1hp2h5t_di" bpmnElement="SequenceFlow_1hp2h5t">
178 <di:waypoint xsi:type="dc:Point" x="241" y="-127" />
179 <di:waypoint xsi:type="dc:Point" x="334" y="-127" />
180 <bpmndi:BPMNLabel>
181 <dc:Bounds x="242.5" y="-148" width="90" height="12" />
182 </bpmndi:BPMNLabel>
183 </bpmndi:BPMNEdge>
184 <bpmndi:BPMNEdge id="SequenceFlow_0h4378g_di" bpmnElement="SequenceFlow_0h4378g">
185 <di:waypoint xsi:type="dc:Point" x="359" y="-102" />
186 <di:waypoint xsi:type="dc:Point" x="359" y="-28" />
187 <bpmndi:BPMNLabel>
188 <dc:Bounds x="365" y="-67.27272727272728" width="22" height="12" />
189 </bpmndi:BPMNLabel>
190 </bpmndi:BPMNEdge>
191 <bpmndi:BPMNEdge id="SequenceFlow_1rwaeun_di" bpmnElement="SequenceFlow_1rwaeun">
192 <di:waypoint xsi:type="dc:Point" x="-152" y="-127" />
193 <di:waypoint xsi:type="dc:Point" x="-53" y="-127" />
194 <bpmndi:BPMNLabel>
195 <dc:Bounds x="-147.5" y="-148" width="90" height="12" />
196 </bpmndi:BPMNLabel>
197 </bpmndi:BPMNEdge>
198 <bpmndi:BPMNShape id="ScriptTask_14dav1d_di" bpmnElement="ScriptTask_14dav1d">
199 <dc:Bounds x="-53" y="-167" width="100" height="80" />
200 </bpmndi:BPMNShape>
201 <bpmndi:BPMNEdge id="SequenceFlow_0rq2jb1_di" bpmnElement="SequenceFlow_0rq2jb1">
202 <di:waypoint xsi:type="dc:Point" x="47" y="-127" />
203 <di:waypoint xsi:type="dc:Point" x="141" y="-127" />
204 <bpmndi:BPMNLabel>
205 <dc:Bounds x="49" y="-148" width="90" height="12" />
206 </bpmndi:BPMNLabel>
207 </bpmndi:BPMNEdge>
208 <bpmndi:BPMNShape id="IntermediateCatchEvent_0slgrxw_di" bpmnElement="IntermediateCatchEvent_0slgrxw">
209 <dc:Bounds x="-188" y="111" width="36" height="36" />
210 <bpmndi:BPMNLabel>
211 <dc:Bounds x="-203" y="147" width="78" height="24" />
212 </bpmndi:BPMNLabel>
213 </bpmndi:BPMNShape>
214 <bpmndi:BPMNEdge id="SequenceFlow_1gu13by_di" bpmnElement="SequenceFlow_1gu13by">
215 <di:waypoint xsi:type="dc:Point" x="-152" y="129" />
216 <di:waypoint xsi:type="dc:Point" x="91" y="129" />
217 <bpmndi:BPMNLabel>
218 <dc:Bounds x="-75.5" y="108" width="90" height="12" />
219 </bpmndi:BPMNLabel>
220 </bpmndi:BPMNEdge>
221 <bpmndi:BPMNShape id="CallActivity_0pyrfca_di" bpmnElement="CallActivity_0pyrfca">
222 <dc:Bounds x="662" y="-167" width="100" height="80" />
223 </bpmndi:BPMNShape>
224 <bpmndi:BPMNEdge id="SequenceFlow_0pkp4ce_di" bpmnElement="SequenceFlow_0pkp4ce">
225 <di:waypoint xsi:type="dc:Point" x="762" y="-127" />
226 <di:waypoint xsi:type="dc:Point" x="849" y="-127" />
227 <bpmndi:BPMNLabel>
228 <dc:Bounds x="760.5" y="-148" width="90" height="12" />
229 </bpmndi:BPMNLabel>
230 </bpmndi:BPMNEdge>
231 <bpmndi:BPMNShape id="EndEvent_0ymfq61_di" bpmnElement="EndEvent_0ymfq61">
232 <dc:Bounds x="341" y="-251" width="36" height="36" />
233 <bpmndi:BPMNLabel>
234 <dc:Bounds x="359" y="-211" width="0" height="12" />
235 </bpmndi:BPMNLabel>
236 </bpmndi:BPMNShape>
237 <bpmndi:BPMNEdge id="SequenceFlow_076ma0v_di" bpmnElement="SequenceFlow_076ma0v">
238 <di:waypoint xsi:type="dc:Point" x="359" y="-152" />
239 <di:waypoint xsi:type="dc:Point" x="359" y="-215" />
240 <bpmndi:BPMNLabel>
241 <dc:Bounds x="374" y="-189.5" width="0" height="12" />
242 </bpmndi:BPMNLabel>
243 </bpmndi:BPMNEdge>
244 <bpmndi:BPMNShape id="ScriptTask_02rli65_di" bpmnElement="ScriptTask_02rli65">
245 <dc:Bounds x="480" y="-167" width="100" height="80" />
246 </bpmndi:BPMNShape>
247 <bpmndi:BPMNEdge id="SequenceFlow_0pg3072_di" bpmnElement="SequenceFlow_0pg3072">
248 <di:waypoint xsi:type="dc:Point" x="580" y="-127" />
249 <di:waypoint xsi:type="dc:Point" x="662" y="-127" />
250 <bpmndi:BPMNLabel>
251 <dc:Bounds x="621" y="-148" width="0" height="12" />
252 </bpmndi:BPMNLabel>
253 </bpmndi:BPMNEdge>
254 <bpmndi:BPMNShape id="ScriptTask_0u1piih_di" bpmnElement="ScriptTask_0u1piih">
255 <dc:Bounds x="849" y="-167" width="100" height="80" />
256 </bpmndi:BPMNShape>
257 <bpmndi:BPMNEdge id="SequenceFlow_1ylvnxq_di" bpmnElement="SequenceFlow_1ylvnxq">
258 <di:waypoint xsi:type="dc:Point" x="949" y="-127" />
259 <di:waypoint xsi:type="dc:Point" x="1026" y="-127" />
260 <bpmndi:BPMNLabel>
261 <dc:Bounds x="987.5" y="-148" width="0" height="12" />
262 </bpmndi:BPMNLabel>
263 </bpmndi:BPMNEdge>
264 </bpmndi:BPMNPlane>
265 </bpmndi:BPMNDiagram>
266</bpmn:definitions>