Provide implementation for activate methods
[so.git] / bpmn / so-bpmn-infrastructure-flows / 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.16.2">
3   <bpmn:process id="DeActivateSDNCNetworkResource" name="DeActivateSDNCNetworkResource" 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_13sx2bp" />
8     <bpmn:sequenceFlow id="SequenceFlow_0khtova" sourceRef="PreprocessIncomingRequest_task" targetRef="CallActivity_1600xlj" />
9     <bpmn:scriptTask id="PreprocessIncomingRequest_task" name="prepare SDNC Deactivate Request" scriptFormat="groovy">
10       <bpmn:incoming>SequenceFlow_18l3crb</bpmn:incoming>
11       <bpmn:outgoing>SequenceFlow_0khtova</bpmn:outgoing>
12       <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
13 def dcsi = new DeActivateSDNCNetworkResource()
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 &#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_0khtova</bpmn:incoming>
31       <bpmn:outgoing>SequenceFlow_0uig0sx</bpmn:outgoing>
32     </bpmn:callActivity>
33     <bpmn:sequenceFlow id="SequenceFlow_0ow44q0" sourceRef="Task_023hred" targetRef="ScriptTask_1emjxm2" />
34     <bpmn:scriptTask id="Task_023hred" name="post SDNC deactivate call">
35       <bpmn:incoming>SequenceFlow_0x5f1o7</bpmn:incoming>
36       <bpmn:outgoing>SequenceFlow_0ow44q0</bpmn:outgoing>
37       <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
38 def dcsi = new DeActivateSDNCNetworkResource()
39 dcsi.postDeactivateSDNCCall(execution)</bpmn:script>
40     </bpmn:scriptTask>
41     <bpmn:sequenceFlow id="SequenceFlow_18l3crb" sourceRef="Task_13sx2bp" targetRef="PreprocessIncomingRequest_task" />
42     <bpmn:scriptTask id="Task_13sx2bp" name="Pre Process Request" scriptFormat="groovy">
43       <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming>
44       <bpmn:outgoing>SequenceFlow_18l3crb</bpmn:outgoing>
45       <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
46 def dcsi = new DeleteSDNDeActivateSDNCNetworkResourceCNetworkResource()
47 dcsi.preProcessRequest(execution)</bpmn:script>
48     </bpmn:scriptTask>
49     <bpmn:sequenceFlow id="SequenceFlow_1mz0vdx" sourceRef="Task_0tezqd4" targetRef="Task_18tomkl" />
50     <bpmn:scriptTask id="Task_0tezqd4" name="Delete progress update parameters after deactivate" scriptFormat="groovy">
51       <bpmn:incoming>SequenceFlow_0uig0sx</bpmn:incoming>
52       <bpmn:outgoing>SequenceFlow_1mz0vdx</bpmn:outgoing>
53       <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
54 def dcsi = new DeActivateSDNCNetworkResource()
55 dcsi.prepareUpdateAfterDeActivateSDNCResource(execution)</bpmn:script>
56     </bpmn:scriptTask>
57     <bpmn:serviceTask id="Task_18tomkl" name="update progress update">
58       <bpmn:extensionElements>
59         <camunda:connector>
60           <camunda:inputOutput>
61             <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
62             <camunda:inputParameter name="headers">
63               <camunda:map>
64                 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
65                 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
66               </camunda:map>
67             </camunda:inputParameter>
68             <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
69             <camunda:inputParameter name="method">POST</camunda:inputParameter>
70             <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
71             <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
72           </camunda:inputOutput>
73           <camunda:connectorId>http-connector</camunda:connectorId>
74         </camunda:connector>
75       </bpmn:extensionElements>
76       <bpmn:incoming>SequenceFlow_1mz0vdx</bpmn:incoming>
77       <bpmn:outgoing>SequenceFlow_0x5f1o7</bpmn:outgoing>
78     </bpmn:serviceTask>
79     <bpmn:scriptTask id="ScriptTask_1emjxm2" name="Send Sync Ack Response" scriptFormat="groovy">
80       <bpmn:incoming>SequenceFlow_0ow44q0</bpmn:incoming>
81       <bpmn:outgoing>SequenceFlow_15wux6a</bpmn:outgoing>
82       <bpmn:script>import org.openecomp.mso.bpmn.infrastructure.scripts.*
83 def csi = new  DeActivateSDNCNetworkResource()
84 csi.sendSyncResponse(execution)</bpmn:script>
85     </bpmn:scriptTask>
86     <bpmn:sequenceFlow id="SequenceFlow_15wux6a" sourceRef="ScriptTask_1emjxm2" targetRef="EndEvent_1x6k78c" />
87     <bpmn:sequenceFlow id="SequenceFlow_0uig0sx" sourceRef="CallActivity_1600xlj" targetRef="Task_0tezqd4" />
88     <bpmn:sequenceFlow id="SequenceFlow_0x5f1o7" sourceRef="Task_18tomkl" targetRef="Task_023hred" />
89   </bpmn:process>
90   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
91     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeActivateSDNCNetworkResource">
92       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="deleteNetworkResource_StartEvent">
93         <dc:Bounds x="-111" y="111" width="36" height="36" />
94         <bpmndi:BPMNLabel>
95           <dc:Bounds x="-136" y="147" width="89" height="28" />
96         </bpmndi:BPMNLabel>
97       </bpmndi:BPMNShape>
98       <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
99         <di:waypoint x="-75" y="129" />
100         <di:waypoint x="5" y="129" />
101         <bpmndi:BPMNLabel>
102           <dc:Bounds x="-87.5" y="108" width="90" height="12" />
103         </bpmndi:BPMNLabel>
104       </bpmndi:BPMNEdge>
105       <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova">
106         <di:waypoint x="278" y="129" />
107         <di:waypoint x="333" y="129" />
108         <bpmndi:BPMNLabel>
109           <dc:Bounds x="391.5" y="108" width="90" height="12" />
110         </bpmndi:BPMNLabel>
111       </bpmndi:BPMNEdge>
112       <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
113         <dc:Bounds x="178" y="89" width="100" height="80" />
114       </bpmndi:BPMNShape>
115       <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
116         <dc:Bounds x="964" y="327" width="36" height="36" />
117         <bpmndi:BPMNLabel>
118           <dc:Bounds x="928" y="369" width="84" height="27" />
119         </bpmndi:BPMNLabel>
120       </bpmndi:BPMNShape>
121       <bpmndi:BPMNShape id="CallActivity_1600xlj_di" bpmnElement="CallActivity_1600xlj">
122         <dc:Bounds x="333" y="89" width="100" height="80" />
123       </bpmndi:BPMNShape>
124       <bpmndi:BPMNEdge id="SequenceFlow_0ow44q0_di" bpmnElement="SequenceFlow_0ow44q0">
125         <di:waypoint x="735" y="345" />
126         <di:waypoint x="795" y="345" />
127         <bpmndi:BPMNLabel>
128           <dc:Bounds x="719" y="314" width="90" height="12" />
129         </bpmndi:BPMNLabel>
130       </bpmndi:BPMNEdge>
131       <bpmndi:BPMNShape id="ScriptTask_0gyej62_di" bpmnElement="Task_023hred">
132         <dc:Bounds x="635" y="305" width="100" height="80" />
133       </bpmndi:BPMNShape>
134       <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb">
135         <di:waypoint x="105" y="129" />
136         <di:waypoint x="178" y="129" />
137         <bpmndi:BPMNLabel>
138           <dc:Bounds x="235.5" y="108" width="90" height="12" />
139         </bpmndi:BPMNLabel>
140       </bpmndi:BPMNEdge>
141       <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp">
142         <dc:Bounds x="5" y="89" width="100" height="80" />
143       </bpmndi:BPMNShape>
144       <bpmndi:BPMNEdge id="SequenceFlow_1mz0vdx_di" bpmnElement="SequenceFlow_1mz0vdx">
145         <di:waypoint x="433" y="345" />
146         <di:waypoint x="481" y="345" />
147         <bpmndi:BPMNLabel>
148           <dc:Bounds x="608" y="123" width="90" height="12" />
149         </bpmndi:BPMNLabel>
150       </bpmndi:BPMNEdge>
151       <bpmndi:BPMNShape id="ScriptTask_1kqf4ge_di" bpmnElement="Task_0tezqd4">
152         <dc:Bounds x="333" y="305" width="100" height="80" />
153       </bpmndi:BPMNShape>
154       <bpmndi:BPMNShape id="ServiceTask_1q6ssz7_di" bpmnElement="Task_18tomkl">
155         <dc:Bounds x="481" y="305" width="100" height="80" />
156       </bpmndi:BPMNShape>
157       <bpmndi:BPMNShape id="ScriptTask_1emjxm2_di" bpmnElement="ScriptTask_1emjxm2">
158         <dc:Bounds x="795" y="305" width="100" height="80" />
159       </bpmndi:BPMNShape>
160       <bpmndi:BPMNEdge id="SequenceFlow_15wux6a_di" bpmnElement="SequenceFlow_15wux6a">
161         <di:waypoint x="895" y="345" />
162         <di:waypoint x="964" y="345" />
163         <bpmndi:BPMNLabel>
164           <dc:Bounds x="930" y="313" width="0" height="14" />
165         </bpmndi:BPMNLabel>
166       </bpmndi:BPMNEdge>
167       <bpmndi:BPMNEdge id="SequenceFlow_0uig0sx_di" bpmnElement="SequenceFlow_0uig0sx">
168         <di:waypoint x="383" y="169" />
169         <di:waypoint x="383" y="305" />
170       </bpmndi:BPMNEdge>
171       <bpmndi:BPMNEdge id="SequenceFlow_0x5f1o7_di" bpmnElement="SequenceFlow_0x5f1o7">
172         <di:waypoint x="581" y="345" />
173         <di:waypoint x="635" y="345" />
174       </bpmndi:BPMNEdge>
175     </bpmndi:BPMNPlane>
176   </bpmndi:BPMNDiagram>
177 </bpmn:definitions>