blob: 7d9a9e2b5d1b0a6c6a8eeae5b80c740d27d5a95b [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">
Yulian Hane992deb2018-09-20 11:30:15 +08003 <bpmn:process id="DeleteDeviceResource" name="DeleteDeviceResource" isExecutable="true">
Yulian Han32fdbf92018-08-20 11:05:37 +08004 <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.*
Yulian Hane992deb2018-09-20 11:30:15 +080011def csi = new DeleteDeviceResource()
Yulian Han32fdbf92018-08-20 11:05:37 +080012csi.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">
Yulian Han76ab7b12018-11-13 20:40:26 +080036 <bpmn:incoming>SequenceFlow_1ss02ik</bpmn:incoming>
Yulian Han32fdbf92018-08-20 11:05:37 +080037 <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>
Yulian Hane992deb2018-09-20 11:30:15 +080046 <bpmn:exclusiveGateway id="ExclusiveGateway_0kba700" name="Dev Type" default="SequenceFlow_1g6azih">
Yulian Han32fdbf92018-08-20 11:05:37 +080047 <bpmn:incoming>SequenceFlow_1hp2h5t</bpmn:incoming>
48 <bpmn:outgoing>SequenceFlow_1ss02ik</bpmn:outgoing>
49 <bpmn:outgoing>SequenceFlow_0h4378g</bpmn:outgoing>
Yulian Hane992deb2018-09-20 11:30:15 +080050 <bpmn:outgoing>SequenceFlow_1g6azih</bpmn:outgoing>
Yulian Han32fdbf92018-08-20 11:05:37 +080051 </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>
Yulian Han76ab7b12018-11-13 20:40:26 +080056 <bpmn:sequenceFlow id="SequenceFlow_1ss02ik" name="VNF" sourceRef="ExclusiveGateway_0kba700" targetRef="IntermediateThrowEvent_1caax8u">
Yulian Han32fdbf92018-08-20 11:05:37 +080057 <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" />
Yulian Hane992deb2018-09-20 11:30:15 +080077 <bpmn:scriptTask id="ScriptTask_14oc86m" name="Prepare Create resource progress" scriptFormat="groovy">
78 <bpmn:incoming>SequenceFlow_1g6azih</bpmn:incoming>
79 <bpmn:outgoing>SequenceFlow_003svcq</bpmn:outgoing>
80 <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
81execution.setVariable("progress", "100")
82execution.setVariable("status", "finished")
83execution.setVariable("statusDescription", "Finished for the devType")
84def dcsi = new DeleteDeviceResource()
85dcsi.prepareUpdateProgress(execution)]]></bpmn:script>
86 </bpmn:scriptTask>
87 <bpmn:serviceTask id="ServiceTask_1b3omyh" name="resource progress update">
88 <bpmn:extensionElements>
89 <camunda:connector>
90 <camunda:inputOutput>
91 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
92 <camunda:inputParameter name="headers">
93 <camunda:map>
94 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
subhash kumar singh0578fc42018-11-15 12:27:09 +053095 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
Yulian Hane992deb2018-09-20 11:30:15 +080096 </camunda:map>
97 </camunda:inputParameter>
98 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
99 <camunda:inputParameter name="method">POST</camunda:inputParameter>
100 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
101 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
102 </camunda:inputOutput>
103 <camunda:connectorId>http-connector</camunda:connectorId>
104 </camunda:connector>
105 </bpmn:extensionElements>
106 <bpmn:incoming>SequenceFlow_003svcq</bpmn:incoming>
107 <bpmn:outgoing>SequenceFlow_1donwoj</bpmn:outgoing>
108 </bpmn:serviceTask>
109 <bpmn:sequenceFlow id="SequenceFlow_003svcq" sourceRef="ScriptTask_14oc86m" targetRef="ServiceTask_1b3omyh" />
110 <bpmn:sequenceFlow id="SequenceFlow_1g6azih" sourceRef="ExclusiveGateway_0kba700" targetRef="ScriptTask_14oc86m" />
111 <bpmn:endEvent id="EndEvent_1tn8i1e">
112 <bpmn:incoming>SequenceFlow_1donwoj</bpmn:incoming>
113 </bpmn:endEvent>
114 <bpmn:sequenceFlow id="SequenceFlow_1donwoj" sourceRef="ServiceTask_1b3omyh" targetRef="EndEvent_1tn8i1e" />
Yulian Han32fdbf92018-08-20 11:05:37 +0800115 </bpmn:process>
116 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
Yulian Hane992deb2018-09-20 11:30:15 +0800117 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteDeviceResource">
Yulian Han32fdbf92018-08-20 11:05:37 +0800118 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
119 <dc:Bounds x="1026" y="111" width="36" height="36" />
120 <bpmndi:BPMNLabel>
121 <dc:Bounds x="994" y="153" width="75" height="12" />
122 </bpmndi:BPMNLabel>
123 </bpmndi:BPMNShape>
124 <bpmndi:BPMNShape id="ScriptTask_1g5zyi6_di" bpmnElement="ScriptTask_1g5zyi6">
125 <dc:Bounds x="494" y="89" width="100" height="80" />
126 </bpmndi:BPMNShape>
127 <bpmndi:BPMNEdge id="SequenceFlow_05niqbf_di" bpmnElement="SequenceFlow_05niqbf">
128 <di:waypoint xsi:type="dc:Point" x="191" y="129" />
129 <di:waypoint xsi:type="dc:Point" x="494" y="129" />
130 <bpmndi:BPMNLabel>
131 <dc:Bounds x="297.5" y="104" width="90" height="20" />
132 </bpmndi:BPMNLabel>
133 </bpmndi:BPMNEdge>
134 <bpmndi:BPMNEdge id="SequenceFlow_0auvfvm_di" bpmnElement="SequenceFlow_0auvfvm">
135 <di:waypoint xsi:type="dc:Point" x="594" y="129" />
136 <di:waypoint xsi:type="dc:Point" x="1026" y="129" />
137 <bpmndi:BPMNLabel>
138 <dc:Bounds x="765" y="104" width="90" height="20" />
139 </bpmndi:BPMNLabel>
140 </bpmndi:BPMNEdge>
141 <bpmndi:BPMNShape id="CallActivity_0aywvn3_di" bpmnElement="Task_0bga3e8">
142 <dc:Bounds x="91" y="89" width="100" height="80" />
143 </bpmndi:BPMNShape>
144 <bpmndi:BPMNShape id="StartEvent_1vjxae6_di" bpmnElement="StartEvent_1vjxae6">
145 <dc:Bounds x="-188" y="-145" width="36" height="36" />
146 <bpmndi:BPMNLabel>
147 <dc:Bounds x="-211" y="-109" width="88" height="24" />
148 </bpmndi:BPMNLabel>
149 </bpmndi:BPMNShape>
150 <bpmndi:BPMNShape id="IntermediateThrowEvent_1caax8u_di" bpmnElement="IntermediateThrowEvent_1caax8u">
151 <dc:Bounds x="1026" y="-145" width="36" height="36" />
152 <bpmndi:BPMNLabel>
153 <dc:Bounds x="1010" y="-104" width="77" height="36" />
154 </bpmndi:BPMNLabel>
155 </bpmndi:BPMNShape>
156 <bpmndi:BPMNShape id="ScriptTask_00y93jj_di" bpmnElement="ScriptTask_00y93jj">
157 <dc:Bounds x="141" y="-167" width="100" height="80" />
158 </bpmndi:BPMNShape>
159 <bpmndi:BPMNShape id="ExclusiveGateway_0kba700_di" bpmnElement="ExclusiveGateway_0kba700" isMarkerVisible="true">
160 <dc:Bounds x="334" y="-152" width="50" height="50" />
161 <bpmndi:BPMNLabel>
Yulian Hane992deb2018-09-20 11:30:15 +0800162 <dc:Bounds x="302" y="-166" width="48" height="12" />
Yulian Han32fdbf92018-08-20 11:05:37 +0800163 </bpmndi:BPMNLabel>
164 </bpmndi:BPMNShape>
165 <bpmndi:BPMNShape id="IntermediateThrowEvent_1chnlq6_di" bpmnElement="IntermediateThrowEvent_1chnlq6">
166 <dc:Bounds x="341" y="-28" width="36" height="36" />
167 <bpmndi:BPMNLabel>
168 <dc:Bounds x="325" y="13" width="78" height="36" />
169 </bpmndi:BPMNLabel>
170 </bpmndi:BPMNShape>
171 <bpmndi:BPMNEdge id="SequenceFlow_1ss02ik_di" bpmnElement="SequenceFlow_1ss02ik">
172 <di:waypoint xsi:type="dc:Point" x="384" y="-127" />
Yulian Han76ab7b12018-11-13 20:40:26 +0800173 <di:waypoint xsi:type="dc:Point" x="1026" y="-127" />
Yulian Han32fdbf92018-08-20 11:05:37 +0800174 <bpmndi:BPMNLabel>
Yulian Han76ab7b12018-11-13 20:40:26 +0800175 <dc:Bounds x="696.8437500000002" y="-148" width="23" height="12" />
Yulian Han32fdbf92018-08-20 11:05:37 +0800176 </bpmndi:BPMNLabel>
177 </bpmndi:BPMNEdge>
178 <bpmndi:BPMNEdge id="SequenceFlow_1hp2h5t_di" bpmnElement="SequenceFlow_1hp2h5t">
179 <di:waypoint xsi:type="dc:Point" x="241" y="-127" />
180 <di:waypoint xsi:type="dc:Point" x="334" y="-127" />
181 <bpmndi:BPMNLabel>
182 <dc:Bounds x="242.5" y="-148" width="90" height="12" />
183 </bpmndi:BPMNLabel>
184 </bpmndi:BPMNEdge>
185 <bpmndi:BPMNEdge id="SequenceFlow_0h4378g_di" bpmnElement="SequenceFlow_0h4378g">
186 <di:waypoint xsi:type="dc:Point" x="359" y="-102" />
187 <di:waypoint xsi:type="dc:Point" x="359" y="-28" />
188 <bpmndi:BPMNLabel>
189 <dc:Bounds x="365" y="-67.27272727272728" width="22" height="12" />
190 </bpmndi:BPMNLabel>
191 </bpmndi:BPMNEdge>
192 <bpmndi:BPMNEdge id="SequenceFlow_1rwaeun_di" bpmnElement="SequenceFlow_1rwaeun">
193 <di:waypoint xsi:type="dc:Point" x="-152" y="-127" />
194 <di:waypoint xsi:type="dc:Point" x="-53" y="-127" />
195 <bpmndi:BPMNLabel>
196 <dc:Bounds x="-147.5" y="-148" width="90" height="12" />
197 </bpmndi:BPMNLabel>
198 </bpmndi:BPMNEdge>
199 <bpmndi:BPMNShape id="ScriptTask_14dav1d_di" bpmnElement="ScriptTask_14dav1d">
200 <dc:Bounds x="-53" y="-167" width="100" height="80" />
201 </bpmndi:BPMNShape>
202 <bpmndi:BPMNEdge id="SequenceFlow_0rq2jb1_di" bpmnElement="SequenceFlow_0rq2jb1">
203 <di:waypoint xsi:type="dc:Point" x="47" y="-127" />
204 <di:waypoint xsi:type="dc:Point" x="141" y="-127" />
205 <bpmndi:BPMNLabel>
206 <dc:Bounds x="49" y="-148" width="90" height="12" />
207 </bpmndi:BPMNLabel>
208 </bpmndi:BPMNEdge>
209 <bpmndi:BPMNShape id="IntermediateCatchEvent_0slgrxw_di" bpmnElement="IntermediateCatchEvent_0slgrxw">
210 <dc:Bounds x="-188" y="111" width="36" height="36" />
211 <bpmndi:BPMNLabel>
212 <dc:Bounds x="-203" y="147" width="78" height="24" />
213 </bpmndi:BPMNLabel>
214 </bpmndi:BPMNShape>
215 <bpmndi:BPMNEdge id="SequenceFlow_1gu13by_di" bpmnElement="SequenceFlow_1gu13by">
216 <di:waypoint xsi:type="dc:Point" x="-152" y="129" />
217 <di:waypoint xsi:type="dc:Point" x="91" y="129" />
218 <bpmndi:BPMNLabel>
219 <dc:Bounds x="-75.5" y="108" width="90" height="12" />
220 </bpmndi:BPMNLabel>
221 </bpmndi:BPMNEdge>
Yulian Hane992deb2018-09-20 11:30:15 +0800222 <bpmndi:BPMNShape id="ScriptTask_14oc86m_di" bpmnElement="ScriptTask_14oc86m">
223 <dc:Bounds x="309" y="-281" width="100" height="80" />
224 </bpmndi:BPMNShape>
225 <bpmndi:BPMNShape id="ServiceTask_1b3omyh_di" bpmnElement="ServiceTask_1b3omyh">
226 <dc:Bounds x="480" y="-281" width="100" height="80" />
227 </bpmndi:BPMNShape>
228 <bpmndi:BPMNEdge id="SequenceFlow_003svcq_di" bpmnElement="SequenceFlow_003svcq">
229 <di:waypoint xsi:type="dc:Point" x="409" y="-241" />
230 <di:waypoint xsi:type="dc:Point" x="480" y="-241" />
231 <bpmndi:BPMNLabel>
232 <dc:Bounds x="444.5" y="-262" width="0" height="12" />
233 </bpmndi:BPMNLabel>
234 </bpmndi:BPMNEdge>
235 <bpmndi:BPMNEdge id="SequenceFlow_1g6azih_di" bpmnElement="SequenceFlow_1g6azih">
236 <di:waypoint xsi:type="dc:Point" x="359" y="-152" />
237 <di:waypoint xsi:type="dc:Point" x="359" y="-201" />
238 <bpmndi:BPMNLabel>
239 <dc:Bounds x="374" y="-182.5" width="0" height="12" />
240 </bpmndi:BPMNLabel>
241 </bpmndi:BPMNEdge>
242 <bpmndi:BPMNShape id="EndEvent_1tn8i1e_di" bpmnElement="EndEvent_1tn8i1e">
243 <dc:Bounds x="663" y="-259" width="36" height="36" />
244 <bpmndi:BPMNLabel>
245 <dc:Bounds x="681" y="-219" width="0" height="12" />
246 </bpmndi:BPMNLabel>
247 </bpmndi:BPMNShape>
248 <bpmndi:BPMNEdge id="SequenceFlow_1donwoj_di" bpmnElement="SequenceFlow_1donwoj">
249 <di:waypoint xsi:type="dc:Point" x="580" y="-241" />
250 <di:waypoint xsi:type="dc:Point" x="663" y="-241" />
251 <bpmndi:BPMNLabel>
252 <dc:Bounds x="621.5" y="-262" width="0" height="12" />
253 </bpmndi:BPMNLabel>
254 </bpmndi:BPMNEdge>
Yulian Han32fdbf92018-08-20 11:05:37 +0800255 </bpmndi:BPMNPlane>
256 </bpmndi:BPMNDiagram>
257</bpmn:definitions>