Containerization feature of SO
[so.git] / bpmn / mso-infrastructure-bpmn / src / main / resources / subprocess / DeActivateNetworkResource.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="1.10.0">
3   <bpmn:process id="DeActivateNetworkResource" name="DeActivateNetworkResource" isExecutable="true">
4     <bpmn:startEvent id="deleteNetworkResource_StartEvent" name="deleteNetworkResource_StartEvent">
5       <bpmn:outgoing>SequenceFlow_1qo2pln</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:sequenceFlow id="SequenceFlow_1qo2pln" sourceRef="deleteNetworkResource_StartEvent" targetRef="Task_1dlrfiw" />
8     <bpmn:sequenceFlow id="SequenceFlow_0khtova" sourceRef="PreprocessIncomingRequest_task" targetRef="Task_0tezqd4" />
9     <bpmn:scriptTask id="PreprocessIncomingRequest_task" name="prepare SDNC Request" scriptFormat="groovy">
10       <bpmn:incoming>SequenceFlow_18l3crb</bpmn:incoming>
11       <bpmn:outgoing>SequenceFlow_0khtova</bpmn:outgoing>
12       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
13 def dcsi = new DeleteSDNCNetworkResource()
14 dcsi.prepareSDNCRequest(execution)]]></bpmn:script>
15     </bpmn:scriptTask>
16     <bpmn:endEvent id="EndEvent_1x6k78c" name="delete SDNC call end">
17       <bpmn:incoming>SequenceFlow_15wux6a</bpmn:incoming>
18     </bpmn:endEvent>
19     <bpmn:callActivity id="CallActivity_1600xlj" name="Call SDNC RSRC &#10; Adapter V1&#10;" calledElement="sdncAdapter">
20       <bpmn:extensionElements>
21         <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
22         <camunda:in source="mso-request-id" target="mso-request-id" />
23         <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
24         <camunda:out source="sdncAdapterResponse" target="DELSDNCRES_activateSDNCResponse" />
25         <camunda:out source="SDNCA_ResponseCode" target="DELSDNCRES_sdncDeleteReturnCode" />
26         <camunda:out source="SDNCA_SuccessIndicator" target="DELSDNCRES_SuccessIndicator" />
27         <camunda:out source="WorkflowException" target="WorkflowException" />
28         <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
29       </bpmn:extensionElements>
30       <bpmn:incoming>SequenceFlow_15mvedq</bpmn:incoming>
31       <bpmn:outgoing>SequenceFlow_1xk5xed</bpmn:outgoing>
32     </bpmn:callActivity>
33     <bpmn:sequenceFlow id="SequenceFlow_1xk5xed" sourceRef="CallActivity_1600xlj" targetRef="Task_0uwlr22" />
34     <bpmn:sequenceFlow id="SequenceFlow_0ow44q0" sourceRef="Task_023hred" targetRef="ScriptTask_1emjxm2" />
35     <bpmn:scriptTask id="Task_023hred" name="post SDNC delete call">
36       <bpmn:incoming>SequenceFlow_1vnx1pp</bpmn:incoming>
37       <bpmn:outgoing>SequenceFlow_0ow44q0</bpmn:outgoing>
38       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
39 def dcsi = new DeleteSDNCNetworkResource()
40 dcsi.postDeleteSDNCCall(execution)]]></bpmn:script>
41     </bpmn:scriptTask>
42     <bpmn:sequenceFlow id="SequenceFlow_0w2es8j" sourceRef="Task_1dlrfiw" targetRef="Task_13sx2bp" />
43     <bpmn:sequenceFlow id="SequenceFlow_18l3crb" sourceRef="Task_13sx2bp" targetRef="PreprocessIncomingRequest_task" />
44     <bpmn:scriptTask id="Task_1dlrfiw" name="Set the Recipe DesignTimeParam" scriptFormat="groovy">
45       <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming>
46       <bpmn:outgoing>SequenceFlow_0w2es8j</bpmn:outgoing>
47       <bpmn:script><![CDATA[String recipeParamXsdDemo="""{"operationType":"GRE"}"""
48 String recipeParamXsd=""
49 execution.setVariable("recipeParamXsd", recipeParamXsd)]]></bpmn:script>
50     </bpmn:scriptTask>
51     <bpmn:scriptTask id="Task_13sx2bp" name="Pre Process Request" scriptFormat="groovy">
52       <bpmn:incoming>SequenceFlow_0w2es8j</bpmn:incoming>
53       <bpmn:outgoing>SequenceFlow_18l3crb</bpmn:outgoing>
54       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
55 def dcsi = new DeleteSDNCNetworkResource()
56 dcsi.preProcessRequest(execution)]]></bpmn:script>
57     </bpmn:scriptTask>
58     <bpmn:sequenceFlow id="SequenceFlow_1mz0vdx" sourceRef="Task_0tezqd4" targetRef="Task_18tomkl" />
59     <bpmn:sequenceFlow id="SequenceFlow_15mvedq" sourceRef="Task_18tomkl" targetRef="CallActivity_1600xlj" />
60     <bpmn:scriptTask id="Task_0tezqd4" name="Delete progress update parameters before delete" scriptFormat="groovy">
61       <bpmn:incoming>SequenceFlow_0khtova</bpmn:incoming>
62       <bpmn:outgoing>SequenceFlow_1mz0vdx</bpmn:outgoing>
63       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
64 def dcsi = new DeleteSDNCNetworkResource()
65 dcsi.prepareUpdateBeforeDeleteSDNCResource(execution)]]></bpmn:script>
66     </bpmn:scriptTask>
67     <bpmn:scriptTask id="Task_0uwlr22" name="Create progress update parameters After delete" scriptFormat="groovy">
68       <bpmn:incoming>SequenceFlow_1xk5xed</bpmn:incoming>
69       <bpmn:outgoing>SequenceFlow_1jr6zi0</bpmn:outgoing>
70       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
71 def dcsi = new DeleteSDNCNetworkResource()
72 dcsi.prepareUpdateAfterDeleteSDNCResource(execution)]]></bpmn:script>
73     </bpmn:scriptTask>
74     <bpmn:serviceTask id="Task_18tomkl" name="update progress update">
75       <bpmn:extensionElements>
76         <camunda:connector>
77           <camunda:inputOutput>
78             <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
79             <camunda:inputParameter name="headers">
80               <camunda:map>
81                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
82                 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
83               </camunda:map>
84             </camunda:inputParameter>
85             <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
86             <camunda:inputParameter name="method">POST</camunda:inputParameter>
87             <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
88             <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
89           </camunda:inputOutput>
90           <camunda:connectorId>http-connector</camunda:connectorId>
91         </camunda:connector>
92       </bpmn:extensionElements>
93       <bpmn:incoming>SequenceFlow_1mz0vdx</bpmn:incoming>
94       <bpmn:outgoing>SequenceFlow_15mvedq</bpmn:outgoing>
95     </bpmn:serviceTask>
96     <bpmn:serviceTask id="ServiceTask_1cm8iwr" name="update progress update">
97       <bpmn:extensionElements>
98         <camunda:connector>
99           <camunda:inputOutput>
100             <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
101             <camunda:inputParameter name="headers">
102               <camunda:map>
103                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
104                 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
105               </camunda:map>
106             </camunda:inputParameter>
107             <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
108             <camunda:inputParameter name="method">POST</camunda:inputParameter>
109             <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
110             <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
111           </camunda:inputOutput>
112           <camunda:connectorId>http-connector</camunda:connectorId>
113         </camunda:connector>
114       </bpmn:extensionElements>
115       <bpmn:incoming>SequenceFlow_1jr6zi0</bpmn:incoming>
116       <bpmn:outgoing>SequenceFlow_1vnx1pp</bpmn:outgoing>
117     </bpmn:serviceTask>
118     <bpmn:sequenceFlow id="SequenceFlow_1jr6zi0" sourceRef="Task_0uwlr22" targetRef="ServiceTask_1cm8iwr" />
119     <bpmn:sequenceFlow id="SequenceFlow_1vnx1pp" sourceRef="ServiceTask_1cm8iwr" targetRef="Task_023hred" />
120     <bpmn:scriptTask id="ScriptTask_1emjxm2" name="Send Sync Ack Response" scriptFormat="groovy">
121       <bpmn:incoming>SequenceFlow_0ow44q0</bpmn:incoming>
122       <bpmn:outgoing>SequenceFlow_15wux6a</bpmn:outgoing>
123       <bpmn:script><![CDATA[import org.onap.so.bpmn.infrastructure.scripts.*
124 def csi = new  DeleteSDNCNetworkResource()
125 csi.sendSyncResponse(execution)]]></bpmn:script>
126     </bpmn:scriptTask>
127     <bpmn:sequenceFlow id="SequenceFlow_15wux6a" sourceRef="ScriptTask_1emjxm2" targetRef="EndEvent_1x6k78c" />
128   </bpmn:process>
129   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
130     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeleteSDNCNetworkResource">
131       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="deleteNetworkResource_StartEvent">
132         <dc:Bounds x="-111" y="111" width="36" height="36" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="-136" y="147" width="89" height="28" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNShape>
137       <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
138         <di:waypoint xsi:type="dc:Point" x="-75" y="129" />
139         <di:waypoint xsi:type="dc:Point" x="-10" y="129" />
140         <bpmndi:BPMNLabel>
141           <dc:Bounds x="-87.5" y="108" width="90" height="12" />
142         </bpmndi:BPMNLabel>
143       </bpmndi:BPMNEdge>
144       <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova">
145         <di:waypoint xsi:type="dc:Point" x="413" y="129" />
146         <di:waypoint xsi:type="dc:Point" x="460" y="129" />
147         <di:waypoint xsi:type="dc:Point" x="500" y="129" />
148         <bpmndi:BPMNLabel>
149           <dc:Bounds x="391.5" y="108" width="90" height="12" />
150         </bpmndi:BPMNLabel>
151       </bpmndi:BPMNEdge>
152       <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
153         <dc:Bounds x="313" y="89" width="100" height="80" />
154       </bpmndi:BPMNShape>
155       <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
156         <dc:Bounds x="967" y="317" width="36" height="36" />
157         <bpmndi:BPMNLabel>
158           <dc:Bounds x="933" y="359" width="79" height="28" />
159         </bpmndi:BPMNLabel>
160       </bpmndi:BPMNShape>
161       <bpmndi:BPMNShape id="CallActivity_1600xlj_di" bpmnElement="CallActivity_1600xlj">
162         <dc:Bounds x="109" y="295" width="100" height="80" />
163       </bpmndi:BPMNShape>
164       <bpmndi:BPMNEdge id="SequenceFlow_1xk5xed_di" bpmnElement="SequenceFlow_1xk5xed">
165         <di:waypoint xsi:type="dc:Point" x="209" y="335" />
166         <di:waypoint xsi:type="dc:Point" x="302" y="335" />
167         <bpmndi:BPMNLabel>
168           <dc:Bounds x="210.5" y="314" width="90" height="12" />
169         </bpmndi:BPMNLabel>
170       </bpmndi:BPMNEdge>
171       <bpmndi:BPMNEdge id="SequenceFlow_0ow44q0_di" bpmnElement="SequenceFlow_0ow44q0">
172         <di:waypoint xsi:type="dc:Point" x="735" y="335" />
173         <di:waypoint xsi:type="dc:Point" x="793" y="335" />
174         <bpmndi:BPMNLabel>
175           <dc:Bounds x="719" y="314" width="90" height="12" />
176         </bpmndi:BPMNLabel>
177       </bpmndi:BPMNEdge>
178       <bpmndi:BPMNShape id="ScriptTask_0gyej62_di" bpmnElement="Task_023hred">
179         <dc:Bounds x="635" y="295" width="100" height="80" />
180       </bpmndi:BPMNShape>
181       <bpmndi:BPMNEdge id="SequenceFlow_0w2es8j_di" bpmnElement="SequenceFlow_0w2es8j">
182         <di:waypoint xsi:type="dc:Point" x="90" y="129" />
183         <di:waypoint xsi:type="dc:Point" x="148" y="129" />
184         <bpmndi:BPMNLabel>
185           <dc:Bounds x="74" y="108" width="90" height="12" />
186         </bpmndi:BPMNLabel>
187       </bpmndi:BPMNEdge>
188       <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb">
189         <di:waypoint xsi:type="dc:Point" x="248" y="129" />
190         <di:waypoint xsi:type="dc:Point" x="313" y="129" />
191         <bpmndi:BPMNLabel>
192           <dc:Bounds x="235.5" y="108" width="90" height="12" />
193         </bpmndi:BPMNLabel>
194       </bpmndi:BPMNEdge>
195       <bpmndi:BPMNShape id="ScriptTask_0lc6l7a_di" bpmnElement="Task_1dlrfiw">
196         <dc:Bounds x="-10" y="89" width="100" height="80" />
197       </bpmndi:BPMNShape>
198       <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp">
199         <dc:Bounds x="148" y="89" width="100" height="80" />
200       </bpmndi:BPMNShape>
201       <bpmndi:BPMNEdge id="SequenceFlow_1mz0vdx_di" bpmnElement="SequenceFlow_1mz0vdx">
202         <di:waypoint xsi:type="dc:Point" x="606" y="129" />
203         <di:waypoint xsi:type="dc:Point" x="638" y="129" />
204         <di:waypoint xsi:type="dc:Point" x="638" y="129" />
205         <di:waypoint xsi:type="dc:Point" x="738" y="129" />
206         <bpmndi:BPMNLabel>
207           <dc:Bounds x="608" y="123" width="90" height="12" />
208         </bpmndi:BPMNLabel>
209       </bpmndi:BPMNEdge>
210       <bpmndi:BPMNEdge id="SequenceFlow_15mvedq_di" bpmnElement="SequenceFlow_15mvedq">
211         <di:waypoint xsi:type="dc:Point" x="788" y="169" />
212         <di:waypoint xsi:type="dc:Point" x="788" y="218" />
213         <di:waypoint xsi:type="dc:Point" x="0" y="218" />
214         <di:waypoint xsi:type="dc:Point" x="0" y="335" />
215         <di:waypoint xsi:type="dc:Point" x="109" y="335" />
216         <bpmndi:BPMNLabel>
217           <dc:Bounds x="349" y="197" width="90" height="12" />
218         </bpmndi:BPMNLabel>
219       </bpmndi:BPMNEdge>
220       <bpmndi:BPMNShape id="ScriptTask_1kqf4ge_di" bpmnElement="Task_0tezqd4">
221         <dc:Bounds x="506" y="89" width="100" height="80" />
222       </bpmndi:BPMNShape>
223       <bpmndi:BPMNShape id="ScriptTask_0hu4lhm_di" bpmnElement="Task_0uwlr22">
224         <dc:Bounds x="302" y="295" width="100" height="80" />
225       </bpmndi:BPMNShape>
226       <bpmndi:BPMNShape id="ServiceTask_1q6ssz7_di" bpmnElement="Task_18tomkl">
227         <dc:Bounds x="738" y="89" width="100" height="80" />
228       </bpmndi:BPMNShape>
229       <bpmndi:BPMNShape id="ServiceTask_1cm8iwr_di" bpmnElement="ServiceTask_1cm8iwr">
230         <dc:Bounds x="487" y="295" width="100" height="80" />
231       </bpmndi:BPMNShape>
232       <bpmndi:BPMNEdge id="SequenceFlow_1jr6zi0_di" bpmnElement="SequenceFlow_1jr6zi0">
233         <di:waypoint xsi:type="dc:Point" x="402" y="335" />
234         <di:waypoint xsi:type="dc:Point" x="487" y="335" />
235         <bpmndi:BPMNLabel>
236           <dc:Bounds x="444.5" y="314" width="0" height="12" />
237         </bpmndi:BPMNLabel>
238       </bpmndi:BPMNEdge>
239       <bpmndi:BPMNEdge id="SequenceFlow_1vnx1pp_di" bpmnElement="SequenceFlow_1vnx1pp">
240         <di:waypoint xsi:type="dc:Point" x="587" y="335" />
241         <di:waypoint xsi:type="dc:Point" x="635" y="335" />
242         <bpmndi:BPMNLabel>
243           <dc:Bounds x="566" y="314" width="90" height="12" />
244         </bpmndi:BPMNLabel>
245       </bpmndi:BPMNEdge>
246       <bpmndi:BPMNShape id="ScriptTask_1emjxm2_di" bpmnElement="ScriptTask_1emjxm2">
247         <dc:Bounds x="793" y="295" width="100" height="80" />
248       </bpmndi:BPMNShape>
249       <bpmndi:BPMNEdge id="SequenceFlow_15wux6a_di" bpmnElement="SequenceFlow_15wux6a">
250         <di:waypoint xsi:type="dc:Point" x="893" y="335" />
251         <di:waypoint xsi:type="dc:Point" x="967" y="335" />
252         <bpmndi:BPMNLabel>
253           <dc:Bounds x="930" y="313" width="0" height="14" />
254         </bpmndi:BPMNLabel>
255       </bpmndi:BPMNEdge>
256     </bpmndi:BPMNPlane>
257   </bpmndi:BPMNDiagram>
258 </bpmn:definitions>