various bugfixes for casablanca
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / DeleteSDNCNetworkResource.bpmn
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="2.0.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>
6     </bpmn:startEvent>
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>
16     </bpmn:scriptTask>
17     <bpmn:endEvent id="EndEvent_1x6k78c_delete" name="delete SDNC call end">
18       <bpmn:incoming>SequenceFlow_15wux6a_delete</bpmn:incoming>
19     </bpmn:endEvent>
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>
27     </bpmn:scriptTask>
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>
36     </bpmn:scriptTask>
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>
43     </bpmn:scriptTask>
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>
52     </bpmn:scriptTask>
53     <bpmn:serviceTask id="Task_18tomkl_delete" name="update progress update">
54       <bpmn:extensionElements>
55         <camunda:connector>
56           <camunda:inputOutput>
57             <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
58             <camunda:inputParameter name="headers">
59               <camunda:map>
60                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
61                 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
62               </camunda:map>
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>
70         </camunda:connector>
71       </bpmn:extensionElements>
72       <bpmn:incoming>SequenceFlow_1mz0vdx_delete</bpmn:incoming>
73       <bpmn:outgoing>SequenceFlow_15mvedq_delete</bpmn:outgoing>
74     </bpmn:serviceTask>
75     <bpmn:serviceTask id="ServiceTask_1cm8iwr_delete" name="update progress update">
76       <bpmn:extensionElements>
77         <camunda:connector>
78           <camunda:inputOutput>
79             <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
80             <camunda:inputParameter name="headers">
81               <camunda:map>
82                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
83                 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
84               </camunda:map>
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>
92         </camunda:connector>
93       </bpmn:extensionElements>
94       <bpmn:incoming>SequenceFlow_0yooswe_delete</bpmn:incoming>
95       <bpmn:outgoing>SequenceFlow_0ds04u5_delete</bpmn:outgoing>
96     </bpmn:serviceTask>
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>
103     </bpmn:scriptTask>
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>
113     </bpmn:sequenceFlow>
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>
116     </bpmn:sequenceFlow>
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       </bpmn:extensionElements>
127       <bpmn:incoming>SequenceFlow_0h3klf0_delete</bpmn:incoming>
128       <bpmn:outgoing>SequenceFlow_00vqgvt_delete</bpmn:outgoing>
129     </bpmn:callActivity>
130     <bpmn:scriptTask id="Task_1ikbt2h_delete" name="Create progress update parameters After delete" scriptFormat="groovy">
131       <bpmn:incoming>SequenceFlow_0lplazm</bpmn:incoming>
132       <bpmn:outgoing>SequenceFlow_0yooswe_delete</bpmn:outgoing>
133       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
134 def dcsi = new DeleteSDNCNetworkResource()
135 dcsi.prepareUpdateAfterDeleteSDNCResource(execution)</bpmn:script>
136     </bpmn:scriptTask>
137     <bpmn:sequenceFlow id="SequenceFlow_0yooswe_delete" sourceRef="Task_1ikbt2h_delete" targetRef="ServiceTask_1cm8iwr_delete" />
138     <bpmn:callActivity id="CallActivity_0bj0odq" name="Call SDNC RSRC &#10; Adapter V1&#10;" calledElement="sdncAdapter">
139       <bpmn:extensionElements>
140         <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
141         <camunda:in source="mso-request-id" target="mso-request-id" />
142         <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
143         <camunda:out source="sdncAdapterResponse" target="DELSDNCRES_activateSDNCResponse" />
144         <camunda:out source="SDNCA_ResponseCode" target="DELSDNCRES_sdncDeleteReturnCode" />
145         <camunda:out source="SDNCA_SuccessIndicator" target="DELSDNCRES_SuccessIndicator" />
146         <camunda:out source="WorkflowException" target="WorkflowException" />
147         <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
148       </bpmn:extensionElements>
149       <bpmn:incoming>SequenceFlow_15mvedq_delete</bpmn:incoming>
150       <bpmn:outgoing>SequenceFlow_0lplazm</bpmn:outgoing>
151     </bpmn:callActivity>
152     <bpmn:sequenceFlow id="SequenceFlow_0lplazm" sourceRef="CallActivity_0bj0odq" targetRef="Task_1ikbt2h_delete" />
153   </bpmn:process>
154   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
155     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteSDNCNetworkResource">
156       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="deleteNetworkResource_StartEvent_delete">
157         <dc:Bounds x="-111" y="111" width="36" height="36" />
158         <bpmndi:BPMNLabel>
159           <dc:Bounds x="-135" y="147" width="88" height="40" />
160         </bpmndi:BPMNLabel>
161       </bpmndi:BPMNShape>
162       <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln_delete">
163         <di:waypoint x="-75" y="129" />
164         <di:waypoint x="-10" y="129" />
165         <bpmndi:BPMNLabel>
166           <dc:Bounds x="-87.5" y="108" width="90" height="12" />
167         </bpmndi:BPMNLabel>
168       </bpmndi:BPMNEdge>
169       <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova_delete">
170         <di:waypoint x="593" y="129" />
171         <di:waypoint x="684" y="129" />
172         <bpmndi:BPMNLabel>
173           <dc:Bounds x="391.5" y="108" width="90" height="12" />
174         </bpmndi:BPMNLabel>
175       </bpmndi:BPMNEdge>
176       <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task_delete">
177         <dc:Bounds x="493" y="89" width="100" height="80" />
178       </bpmndi:BPMNShape>
179       <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c_delete">
180         <dc:Bounds x="898" y="317" width="36" height="36" />
181         <bpmndi:BPMNLabel>
182           <dc:Bounds x="862" y="359" width="84" height="27" />
183         </bpmndi:BPMNLabel>
184       </bpmndi:BPMNShape>
185       <bpmndi:BPMNEdge id="SequenceFlow_0ow44q0_di" bpmnElement="SequenceFlow_0ow44q0_delete">
186         <di:waypoint x="624" y="335" />
187         <di:waypoint x="709" y="335" />
188         <bpmndi:BPMNLabel>
189           <dc:Bounds x="719" y="314" width="90" height="12" />
190         </bpmndi:BPMNLabel>
191       </bpmndi:BPMNEdge>
192       <bpmndi:BPMNShape id="ScriptTask_0gyej62_di" bpmnElement="Task_023hred_delete">
193         <dc:Bounds x="524" y="295" width="100" height="80" />
194       </bpmndi:BPMNShape>
195       <bpmndi:BPMNEdge id="SequenceFlow_0w2es8j_di" bpmnElement="SequenceFlow_0w2es8j_delete">
196         <di:waypoint x="90" y="129" />
197         <di:waypoint x="148" y="129" />
198         <bpmndi:BPMNLabel>
199           <dc:Bounds x="74" y="108" width="90" height="12" />
200         </bpmndi:BPMNLabel>
201       </bpmndi:BPMNEdge>
202       <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb_delete">
203         <di:waypoint x="248" y="129" />
204         <di:waypoint x="325" y="129" />
205         <bpmndi:BPMNLabel>
206           <dc:Bounds x="235.5" y="108" width="90" height="12" />
207         </bpmndi:BPMNLabel>
208       </bpmndi:BPMNEdge>
209       <bpmndi:BPMNShape id="ScriptTask_0lc6l7a_di" bpmnElement="Task_1dlrfiw_delete">
210         <dc:Bounds x="-10" y="89" width="100" height="80" />
211       </bpmndi:BPMNShape>
212       <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp_delete">
213         <dc:Bounds x="148" y="89" width="100" height="80" />
214       </bpmndi:BPMNShape>
215       <bpmndi:BPMNEdge id="SequenceFlow_1mz0vdx_di" bpmnElement="SequenceFlow_1mz0vdx_delete">
216         <di:waypoint x="784" y="129" />
217         <di:waypoint x="900" y="129" />
218         <bpmndi:BPMNLabel>
219           <dc:Bounds x="608" y="123" width="90" height="12" />
220         </bpmndi:BPMNLabel>
221       </bpmndi:BPMNEdge>
222       <bpmndi:BPMNEdge id="SequenceFlow_15mvedq_di" bpmnElement="SequenceFlow_15mvedq_delete">
223         <di:waypoint x="950" y="169" />
224         <di:waypoint x="950" y="246" />
225         <di:waypoint x="-106" y="246" />
226         <di:waypoint x="-106" y="335" />
227         <di:waypoint x="9" y="335" />
228         <bpmndi:BPMNLabel>
229           <dc:Bounds x="349" y="197" width="90" height="12" />
230         </bpmndi:BPMNLabel>
231       </bpmndi:BPMNEdge>
232       <bpmndi:BPMNShape id="ScriptTask_1kqf4ge_di" bpmnElement="Task_0tfzqd4_delete">
233         <dc:Bounds x="684" y="89" width="100" height="80" />
234       </bpmndi:BPMNShape>
235       <bpmndi:BPMNShape id="ServiceTask_1q6ssz7_di" bpmnElement="Task_18tomkl_delete">
236         <dc:Bounds x="900" y="89" width="100" height="80" />
237       </bpmndi:BPMNShape>
238       <bpmndi:BPMNShape id="ServiceTask_1cm8iwr_di" bpmnElement="ServiceTask_1cm8iwr_delete">
239         <dc:Bounds x="355" y="295" width="100" height="80" />
240       </bpmndi:BPMNShape>
241       <bpmndi:BPMNShape id="ScriptTask_1emjxm2_di" bpmnElement="ScriptTask_1emjxm2_delete">
242         <dc:Bounds x="709" y="295" width="100" height="80" />
243       </bpmndi:BPMNShape>
244       <bpmndi:BPMNEdge id="SequenceFlow_15wux6a_di" bpmnElement="SequenceFlow_15wux6a_delete">
245         <di:waypoint x="809" y="335" />
246         <di:waypoint x="898" y="335" />
247         <bpmndi:BPMNLabel>
248           <dc:Bounds x="930" y="313" width="0" height="14" />
249         </bpmndi:BPMNLabel>
250       </bpmndi:BPMNEdge>
251       <bpmndi:BPMNEdge id="SequenceFlow_0ds04u5_di" bpmnElement="SequenceFlow_0ds04u5_delete">
252         <di:waypoint x="455" y="335" />
253         <di:waypoint x="524" y="335" />
254       </bpmndi:BPMNEdge>
255       <bpmndi:BPMNShape id="ExclusiveGateway_0xrgeq3_di" bpmnElement="ExclusiveGateway_0xrgeq3_delete" isMarkerVisible="true">
256         <dc:Bounds x="325" y="104" width="50" height="50" />
257         <bpmndi:BPMNLabel>
258           <dc:Bounds x="320" y="161" width="63" height="27" />
259         </bpmndi:BPMNLabel>
260       </bpmndi:BPMNShape>
261       <bpmndi:BPMNEdge id="SequenceFlow_0jh88qw_di" bpmnElement="SequenceFlow_0jh88qw_delete">
262         <di:waypoint x="375" y="129" />
263         <di:waypoint x="493" y="129" />
264         <bpmndi:BPMNLabel>
265           <dc:Bounds x="427" y="111" width="14" height="14" />
266         </bpmndi:BPMNLabel>
267       </bpmndi:BPMNEdge>
268       <bpmndi:BPMNEdge id="SequenceFlow_0h3klf0_di" bpmnElement="SequenceFlow_0h3klf0_delete">
269         <di:waypoint x="350" y="104" />
270         <di:waypoint x="350" y="-12" />
271         <di:waypoint x="493" y="-12" />
272         <bpmndi:BPMNLabel>
273           <dc:Bounds x="356" y="43" width="19" height="14" />
274         </bpmndi:BPMNLabel>
275       </bpmndi:BPMNEdge>
276       <bpmndi:BPMNEdge id="SequenceFlow_00vqgvt_di" bpmnElement="SequenceFlow_00vqgvt_delete">
277         <di:waypoint x="543" y="28" />
278         <di:waypoint x="543" y="89" />
279       </bpmndi:BPMNEdge>
280       <bpmndi:BPMNShape id="CallActivity_1lddjec_di" bpmnElement="Task_1xychp0_delete">
281         <dc:Bounds x="493" y="-52" width="100" height="80" />
282       </bpmndi:BPMNShape>
283       <bpmndi:BPMNShape id="ScriptTask_1wj862v_di" bpmnElement="Task_1ikbt2h_delete">
284         <dc:Bounds x="205" y="295" width="100" height="80" />
285       </bpmndi:BPMNShape>
286       <bpmndi:BPMNEdge id="SequenceFlow_0yooswe_di" bpmnElement="SequenceFlow_0yooswe_delete">
287         <di:waypoint x="305" y="335" />
288         <di:waypoint x="355" y="335" />
289       </bpmndi:BPMNEdge>
290       <bpmndi:BPMNShape id="CallActivity_0bj0odq_di" bpmnElement="CallActivity_0bj0odq">
291         <dc:Bounds x="9" y="295" width="100" height="80" />
292       </bpmndi:BPMNShape>
293       <bpmndi:BPMNEdge id="SequenceFlow_0lplazm_di" bpmnElement="SequenceFlow_0lplazm">
294         <di:waypoint x="109" y="335" />
295         <di:waypoint x="205" y="335" />
296       </bpmndi:BPMNEdge>
297     </bpmndi:BPMNPlane>
298   </bpmndi:BPMNDiagram>
299 </bpmn:definitions>