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="3.1.0">
3 <bpmn:process id="DeleteSDNCNetworkResource" name="DeleteSDNCNetworkResource" isExecutable="true">
4 <bpmn:startEvent id="deleteNetworkResource_StartEvent_delete" name="deleteNetworkResource_StartEvent">
5 <bpmn:outgoing>SequenceFlow_1qo2pln_delete</bpmn:outgoing>
7 <bpmn:sequenceFlow id="SequenceFlow_1qo2pln_delete" sourceRef="deleteNetworkResource_StartEvent_delete" targetRef="Task_1dlrfiw_delete" />
8 <bpmn:sequenceFlow id="SequenceFlow_0khtova_delete" sourceRef="PreprocessIncomingRequest_task_delete" targetRef="Task_0tfzqd4_delete" />
9 <bpmn:scriptTask id="PreprocessIncomingRequest_task_delete" name="prepare SDNC Request" scriptFormat="groovy">
10 <bpmn:incoming>SequenceFlow_0jh88qw_delete</bpmn:incoming>
11 <bpmn:incoming>SequenceFlow_00vqgvt_delete</bpmn:incoming>
12 <bpmn:outgoing>SequenceFlow_0khtova_delete</bpmn:outgoing>
13 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
14 def dcsi = new DeleteSDNCNetworkResource()
15 dcsi.prepareSDNCRequest(execution)</bpmn:script>
17 <bpmn:endEvent id="EndEvent_1x6k78c_delete" name="delete SDNC call end">
18 <bpmn:incoming>SequenceFlow_15wux6a_delete</bpmn:incoming>
20 <bpmn:sequenceFlow id="SequenceFlow_0ow44q0_delete" sourceRef="Task_023hred_delete" targetRef="ScriptTask_1emjxm2_delete" />
21 <bpmn:scriptTask id="Task_023hred_delete" name="post SDNC delete call">
22 <bpmn:incoming>SequenceFlow_0ds04u5_delete</bpmn:incoming>
23 <bpmn:outgoing>SequenceFlow_0ow44q0_delete</bpmn:outgoing>
24 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
25 def dcsi = new DeleteSDNCNetworkResource()
26 dcsi.postDeleteSDNCCall(execution)</bpmn:script>
28 <bpmn:sequenceFlow id="SequenceFlow_0w2es8j_delete" sourceRef="Task_1dlrfiw_delete" targetRef="Task_13sx2bp_delete" />
29 <bpmn:sequenceFlow id="SequenceFlow_18l3crb_delete" sourceRef="Task_13sx2bp_delete" targetRef="ExclusiveGateway_0xrgeq3_delete" />
30 <bpmn:scriptTask id="Task_1dlrfiw_delete" name="Set the Recipe DesignTimeParam" scriptFormat="groovy">
31 <bpmn:incoming>SequenceFlow_1qo2pln_delete</bpmn:incoming>
32 <bpmn:outgoing>SequenceFlow_0w2es8j_delete</bpmn:outgoing>
33 <bpmn:script>String recipeParamXsdDemo="""{"operationType":"GRE"}"""
34 String recipeParamXsd=""
35 execution.setVariable("recipeParamXsd", recipeParamXsd)</bpmn:script>
37 <bpmn:scriptTask id="Task_13sx2bp_delete" name="Pre Process Request" scriptFormat="groovy">
38 <bpmn:incoming>SequenceFlow_0w2es8j_delete</bpmn:incoming>
39 <bpmn:outgoing>SequenceFlow_18l3crb_delete</bpmn:outgoing>
40 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
41 def dcsi = new DeleteSDNCNetworkResource()
42 dcsi.preProcessRequest(execution)</bpmn:script>
44 <bpmn:sequenceFlow id="SequenceFlow_1mz0vdx_delete" sourceRef="Task_0tfzqd4_delete" targetRef="Task_18tomkl_delete" />
45 <bpmn:sequenceFlow id="SequenceFlow_15mvedq_delete" sourceRef="Task_18tomkl_delete" targetRef="CallActivity_0bj0odq" />
46 <bpmn:scriptTask id="Task_0tfzqd4_delete" name="Delete progress update parameters before delete" scriptFormat="groovy">
47 <bpmn:incoming>SequenceFlow_0khtova_delete</bpmn:incoming>
48 <bpmn:outgoing>SequenceFlow_1mz0vdx_delete</bpmn:outgoing>
49 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
50 def dcsi = new DeleteSDNCNetworkResource()
51 dcsi.prepareUpdateBeforeDeleteSDNCResource(execution)</bpmn:script>
53 <bpmn:serviceTask id="Task_18tomkl_delete" name="update progress update">
54 <bpmn:extensionElements>
57 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
58 <camunda:inputParameter name="headers">
60 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
61 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
63 </camunda:inputParameter>
64 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
65 <camunda:inputParameter name="method">POST</camunda:inputParameter>
66 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
67 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
68 </camunda:inputOutput>
69 <camunda:connectorId>http-connector</camunda:connectorId>
71 </bpmn:extensionElements>
72 <bpmn:incoming>SequenceFlow_1mz0vdx_delete</bpmn:incoming>
73 <bpmn:outgoing>SequenceFlow_15mvedq_delete</bpmn:outgoing>
75 <bpmn:serviceTask id="ServiceTask_1cm8iwr_delete" name="update progress update">
76 <bpmn:extensionElements>
79 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
80 <camunda:inputParameter name="headers">
82 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
83 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
85 </camunda:inputParameter>
86 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
87 <camunda:inputParameter name="method">POST</camunda:inputParameter>
88 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
89 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
90 </camunda:inputOutput>
91 <camunda:connectorId>http-connector</camunda:connectorId>
93 </bpmn:extensionElements>
94 <bpmn:incoming>SequenceFlow_0yooswe_delete</bpmn:incoming>
95 <bpmn:outgoing>SequenceFlow_0ds04u5_delete</bpmn:outgoing>
97 <bpmn:scriptTask id="ScriptTask_1emjxm2_delete" name="Send Sync Ack Response" scriptFormat="groovy">
98 <bpmn:incoming>SequenceFlow_0ow44q0_delete</bpmn:incoming>
99 <bpmn:outgoing>SequenceFlow_15wux6a_delete</bpmn:outgoing>
100 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
101 def csi = new DeleteSDNCNetworkResource()
102 csi.sendSyncResponse(execution)</bpmn:script>
104 <bpmn:sequenceFlow id="SequenceFlow_15wux6a_delete" sourceRef="ScriptTask_1emjxm2_delete" targetRef="EndEvent_1x6k78c_delete" />
105 <bpmn:sequenceFlow id="SequenceFlow_0ds04u5_delete" sourceRef="ServiceTask_1cm8iwr_delete" targetRef="Task_023hred_delete" />
106 <bpmn:exclusiveGateway id="ExclusiveGateway_0xrgeq3_delete" name="is Deactivate Required">
107 <bpmn:incoming>SequenceFlow_18l3crb_delete</bpmn:incoming>
108 <bpmn:outgoing>SequenceFlow_0jh88qw_delete</bpmn:outgoing>
109 <bpmn:outgoing>SequenceFlow_0h3klf0_delete</bpmn:outgoing>
110 </bpmn:exclusiveGateway>
111 <bpmn:sequenceFlow id="SequenceFlow_0jh88qw_delete" name="No" sourceRef="ExclusiveGateway_0xrgeq3_delete" targetRef="PreprocessIncomingRequest_task_delete">
112 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isActivateRequired") != "true")}</bpmn:conditionExpression>
114 <bpmn:sequenceFlow id="SequenceFlow_0h3klf0_delete" name="Yes" sourceRef="ExclusiveGateway_0xrgeq3_delete" targetRef="Task_1xychp0_delete">
115 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isActivateRequired") == "true")}</bpmn:conditionExpression>
117 <bpmn:sequenceFlow id="SequenceFlow_00vqgvt_delete" sourceRef="Task_1xychp0_delete" targetRef="PreprocessIncomingRequest_task_delete" />
118 <bpmn:callActivity id="Task_1xychp0_delete" name="Call Deactivate SDNC Network Resource" calledElement="DeActivateSDNCNetworkResource">
119 <bpmn:extensionElements>
120 <camunda:in source="mso-request-id" target="mso-request-id" />
121 <camunda:in source="requestAction" target="requestAction" />
122 <camunda:in source="recipeParams" target="recipeParams" />
123 <camunda:in source="recipeParamXsd" target="recipeParamXsd" />
124 <camunda:in source="URN_mso_workflow_sdncadapter_callback" target="URN_mso_workflow_sdncadapter_callback" />
125 <camunda:in source="resourceInput" target="resourceInput" />
126 <camunda:in source="allotedParentServiceInstanceId" target="allotedParentServiceInstanceId" />
127 </bpmn:extensionElements>
128 <bpmn:incoming>SequenceFlow_0h3klf0_delete</bpmn:incoming>
129 <bpmn:outgoing>SequenceFlow_00vqgvt_delete</bpmn:outgoing>
131 <bpmn:scriptTask id="Task_1ikbt2h_delete" name="Create progress update parameters After delete" scriptFormat="groovy">
132 <bpmn:incoming>SequenceFlow_0lplazm</bpmn:incoming>
133 <bpmn:outgoing>SequenceFlow_0yooswe_delete</bpmn:outgoing>
134 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
135 def dcsi = new DeleteSDNCNetworkResource()
136 dcsi.prepareUpdateAfterDeleteSDNCResource(execution)</bpmn:script>
138 <bpmn:sequenceFlow id="SequenceFlow_0yooswe_delete" sourceRef="Task_1ikbt2h_delete" targetRef="ServiceTask_1cm8iwr_delete" />
139 <bpmn:callActivity id="CallActivity_0bj0odq" name="Call SDNC RSRC Adapter V1 " calledElement="sdncAdapter">
140 <bpmn:extensionElements>
141 <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
142 <camunda:in source="mso-request-id" target="mso-request-id" />
143 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
144 <camunda:out source="sdncAdapterResponse" target="DELSDNCRES_activateSDNCResponse" />
145 <camunda:out source="SDNCA_ResponseCode" target="DELSDNCRES_sdncDeleteReturnCode" />
146 <camunda:out source="SDNCA_SuccessIndicator" target="DELSDNCRES_SuccessIndicator" />
147 <camunda:out source="WorkflowException" target="WorkflowException" />
148 <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
149 </bpmn:extensionElements>
150 <bpmn:incoming>SequenceFlow_15mvedq_delete</bpmn:incoming>
151 <bpmn:outgoing>SequenceFlow_0lplazm</bpmn:outgoing>
153 <bpmn:sequenceFlow id="SequenceFlow_0lplazm" sourceRef="CallActivity_0bj0odq" targetRef="Task_1ikbt2h_delete" />
155 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
156 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteSDNCNetworkResource">
157 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="deleteNetworkResource_StartEvent_delete">
158 <dc:Bounds x="180" y="244" width="36" height="36" />
160 <dc:Bounds x="156" y="280" width="88" height="40" />
163 <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln_delete">
164 <di:waypoint x="216" y="262" />
165 <di:waypoint x="281" y="262" />
167 <dc:Bounds x="-87.5" y="108" width="90" height="12" />
170 <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova_delete">
171 <di:waypoint x="884" y="262" />
172 <di:waypoint x="975" y="262" />
174 <dc:Bounds x="391.5" y="108" width="90" height="12" />
177 <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task_delete">
178 <dc:Bounds x="784" y="222" width="100" height="80" />
180 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c_delete">
181 <dc:Bounds x="1189" y="450" width="36" height="36" />
183 <dc:Bounds x="1153" y="492" width="84" height="27" />
186 <bpmndi:BPMNEdge id="SequenceFlow_0ow44q0_di" bpmnElement="SequenceFlow_0ow44q0_delete">
187 <di:waypoint x="915" y="468" />
188 <di:waypoint x="1000" y="468" />
190 <dc:Bounds x="719" y="314" width="90" height="12" />
193 <bpmndi:BPMNShape id="ScriptTask_0gyej62_di" bpmnElement="Task_023hred_delete">
194 <dc:Bounds x="815" y="428" width="100" height="80" />
196 <bpmndi:BPMNEdge id="SequenceFlow_0w2es8j_di" bpmnElement="SequenceFlow_0w2es8j_delete">
197 <di:waypoint x="381" y="262" />
198 <di:waypoint x="439" y="262" />
200 <dc:Bounds x="74" y="108" width="90" height="12" />
203 <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb_delete">
204 <di:waypoint x="539" y="262" />
205 <di:waypoint x="616" y="262" />
207 <dc:Bounds x="235.5" y="108" width="90" height="12" />
210 <bpmndi:BPMNShape id="ScriptTask_0lc6l7a_di" bpmnElement="Task_1dlrfiw_delete">
211 <dc:Bounds x="281" y="222" width="100" height="80" />
213 <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp_delete">
214 <dc:Bounds x="439" y="222" width="100" height="80" />
216 <bpmndi:BPMNEdge id="SequenceFlow_1mz0vdx_di" bpmnElement="SequenceFlow_1mz0vdx_delete">
217 <di:waypoint x="1075" y="262" />
218 <di:waypoint x="1191" y="262" />
220 <dc:Bounds x="608" y="123" width="90" height="12" />
223 <bpmndi:BPMNEdge id="SequenceFlow_15mvedq_di" bpmnElement="SequenceFlow_15mvedq_delete">
224 <di:waypoint x="1241" y="302" />
225 <di:waypoint x="1241" y="379" />
226 <di:waypoint x="185" y="379" />
227 <di:waypoint x="185" y="468" />
228 <di:waypoint x="300" y="468" />
230 <dc:Bounds x="349" y="197" width="90" height="12" />
233 <bpmndi:BPMNShape id="ScriptTask_1kqf4ge_di" bpmnElement="Task_0tfzqd4_delete">
234 <dc:Bounds x="975" y="222" width="100" height="80" />
236 <bpmndi:BPMNShape id="ServiceTask_1q6ssz7_di" bpmnElement="Task_18tomkl_delete">
237 <dc:Bounds x="1191" y="222" width="100" height="80" />
239 <bpmndi:BPMNShape id="ServiceTask_1cm8iwr_di" bpmnElement="ServiceTask_1cm8iwr_delete">
240 <dc:Bounds x="646" y="428" width="100" height="80" />
242 <bpmndi:BPMNShape id="ScriptTask_1emjxm2_di" bpmnElement="ScriptTask_1emjxm2_delete">
243 <dc:Bounds x="1000" y="428" width="100" height="80" />
245 <bpmndi:BPMNEdge id="SequenceFlow_15wux6a_di" bpmnElement="SequenceFlow_15wux6a_delete">
246 <di:waypoint x="1100" y="468" />
247 <di:waypoint x="1189" y="468" />
249 <dc:Bounds x="930" y="313" width="0" height="14" />
252 <bpmndi:BPMNEdge id="SequenceFlow_0ds04u5_di" bpmnElement="SequenceFlow_0ds04u5_delete">
253 <di:waypoint x="746" y="468" />
254 <di:waypoint x="815" y="468" />
256 <bpmndi:BPMNShape id="ExclusiveGateway_0xrgeq3_di" bpmnElement="ExclusiveGateway_0xrgeq3_delete" isMarkerVisible="true">
257 <dc:Bounds x="616" y="237" width="50" height="50" />
259 <dc:Bounds x="611" y="294" width="63" height="27" />
262 <bpmndi:BPMNEdge id="SequenceFlow_0jh88qw_di" bpmnElement="SequenceFlow_0jh88qw_delete">
263 <di:waypoint x="666" y="262" />
264 <di:waypoint x="784" y="262" />
266 <dc:Bounds x="718" y="244" width="14" height="14" />
269 <bpmndi:BPMNEdge id="SequenceFlow_0h3klf0_di" bpmnElement="SequenceFlow_0h3klf0_delete">
270 <di:waypoint x="641" y="237" />
271 <di:waypoint x="641" y="121" />
272 <di:waypoint x="784" y="121" />
274 <dc:Bounds x="647" y="176" width="19" height="14" />
277 <bpmndi:BPMNEdge id="SequenceFlow_00vqgvt_di" bpmnElement="SequenceFlow_00vqgvt_delete">
278 <di:waypoint x="834" y="161" />
279 <di:waypoint x="834" y="222" />
281 <bpmndi:BPMNShape id="CallActivity_1lddjec_di" bpmnElement="Task_1xychp0_delete">
282 <dc:Bounds x="784" y="81" width="100" height="80" />
284 <bpmndi:BPMNShape id="ScriptTask_1wj862v_di" bpmnElement="Task_1ikbt2h_delete">
285 <dc:Bounds x="496" y="428" width="100" height="80" />
287 <bpmndi:BPMNEdge id="SequenceFlow_0yooswe_di" bpmnElement="SequenceFlow_0yooswe_delete">
288 <di:waypoint x="596" y="468" />
289 <di:waypoint x="646" y="468" />
291 <bpmndi:BPMNShape id="CallActivity_0bj0odq_di" bpmnElement="CallActivity_0bj0odq">
292 <dc:Bounds x="300" y="428" width="100" height="80" />
294 <bpmndi:BPMNEdge id="SequenceFlow_0lplazm_di" bpmnElement="SequenceFlow_0lplazm">
295 <di:waypoint x="400" y="468" />
296 <di:waypoint x="496" y="468" />
299 </bpmndi:BPMNDiagram>