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>
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>
16 <bpmn:endEvent id="EndEvent_1x6k78c" name="delete SDNC call end">
17 <bpmn:incoming>SequenceFlow_15wux6a</bpmn:incoming>
19 <bpmn:callActivity id="CallActivity_1600xlj" name="Call SDNC Adapter V1 " 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>
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>
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>
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>
57 <bpmn:serviceTask id="Task_18tomkl" name="update progress update">
58 <bpmn:extensionElements>
61 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
62 <camunda:inputParameter name="headers">
64 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
65 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
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>
75 </bpmn:extensionElements>
76 <bpmn:incoming>SequenceFlow_1mz0vdx</bpmn:incoming>
77 <bpmn:outgoing>SequenceFlow_0x5f1o7</bpmn:outgoing>
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>
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" />
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" />
95 <dc:Bounds x="-136" y="147" width="89" height="28" />
98 <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
99 <di:waypoint x="-75" y="129" />
100 <di:waypoint x="5" y="129" />
102 <dc:Bounds x="-87.5" y="108" width="90" height="12" />
105 <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova">
106 <di:waypoint x="278" y="129" />
107 <di:waypoint x="333" y="129" />
109 <dc:Bounds x="391.5" y="108" width="90" height="12" />
112 <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
113 <dc:Bounds x="178" y="89" width="100" height="80" />
115 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
116 <dc:Bounds x="964" y="327" width="36" height="36" />
118 <dc:Bounds x="928" y="369" width="84" height="27" />
121 <bpmndi:BPMNShape id="CallActivity_1600xlj_di" bpmnElement="CallActivity_1600xlj">
122 <dc:Bounds x="333" y="89" width="100" height="80" />
124 <bpmndi:BPMNEdge id="SequenceFlow_0ow44q0_di" bpmnElement="SequenceFlow_0ow44q0">
125 <di:waypoint x="735" y="345" />
126 <di:waypoint x="795" y="345" />
128 <dc:Bounds x="719" y="314" width="90" height="12" />
131 <bpmndi:BPMNShape id="ScriptTask_0gyej62_di" bpmnElement="Task_023hred">
132 <dc:Bounds x="635" y="305" width="100" height="80" />
134 <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb">
135 <di:waypoint x="105" y="129" />
136 <di:waypoint x="178" y="129" />
138 <dc:Bounds x="235.5" y="108" width="90" height="12" />
141 <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp">
142 <dc:Bounds x="5" y="89" width="100" height="80" />
144 <bpmndi:BPMNEdge id="SequenceFlow_1mz0vdx_di" bpmnElement="SequenceFlow_1mz0vdx">
145 <di:waypoint x="433" y="345" />
146 <di:waypoint x="481" y="345" />
148 <dc:Bounds x="608" y="123" width="90" height="12" />
151 <bpmndi:BPMNShape id="ScriptTask_1kqf4ge_di" bpmnElement="Task_0tezqd4">
152 <dc:Bounds x="333" y="305" width="100" height="80" />
154 <bpmndi:BPMNShape id="ServiceTask_1q6ssz7_di" bpmnElement="Task_18tomkl">
155 <dc:Bounds x="481" y="305" width="100" height="80" />
157 <bpmndi:BPMNShape id="ScriptTask_1emjxm2_di" bpmnElement="ScriptTask_1emjxm2">
158 <dc:Bounds x="795" y="305" width="100" height="80" />
160 <bpmndi:BPMNEdge id="SequenceFlow_15wux6a_di" bpmnElement="SequenceFlow_15wux6a">
161 <di:waypoint x="895" y="345" />
162 <di:waypoint x="964" y="345" />
164 <dc:Bounds x="930" y="313" width="0" height="14" />
167 <bpmndi:BPMNEdge id="SequenceFlow_0uig0sx_di" bpmnElement="SequenceFlow_0uig0sx">
168 <di:waypoint x="383" y="169" />
169 <di:waypoint x="383" y="305" />
171 <bpmndi:BPMNEdge id="SequenceFlow_0x5f1o7_di" bpmnElement="SequenceFlow_0x5f1o7">
172 <di:waypoint x="581" y="345" />
173 <di:waypoint x="635" y="345" />
176 </bpmndi:BPMNDiagram>