blob: bf08c6e630a35470fa82fd63939ce28563f10d34 [file] [log] [blame]
Priyadharshini48c44ed2020-08-20 06:06:49 -07001<?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:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1stoy5y" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.1.1">
3 <bpmn:process id="DeAllocateSliceSubnet" name="DeallocateSliceSubnet" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1" name="Start">
5 <bpmn:outgoing>Flow_143ck2k</bpmn:outgoing>
6 </bpmn:startEvent>
7 <bpmn:sequenceFlow id="Flow_143ck2k" sourceRef="StartEvent_1" targetRef="Activity_0zyhkvj" />
8 <bpmn:scriptTask id="Activity_0zyhkvj" name="Preprocess Request" scriptFormat="groovy">
9 <bpmn:incoming>Flow_143ck2k</bpmn:incoming>
10 <bpmn:outgoing>Flow_0pttfuf</bpmn:outgoing>
11 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
12def nss = new DeAllocateSliceSubnet()
13nss.preProcessRequest(execution)</bpmn:script>
14 </bpmn:scriptTask>
15 <bpmn:scriptTask id="Activity_0c6o2o7" name="Send Sync Response" scriptFormat="groovy">
16 <bpmn:incoming>Flow_1c1j5i1</bpmn:incoming>
17 <bpmn:outgoing>Flow_1kljyhj</bpmn:outgoing>
18 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
19def nss = new DeAllocateSliceSubnet()
20nss.sendSyncResponse(execution)</bpmn:script>
21 </bpmn:scriptTask>
22 <bpmn:serviceTask id="Activity_1dykbz9" name="Update Resource Operation Status">
23 <bpmn:extensionElements>
24 <camunda:connector>
25 <camunda:inputOutput>
26 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
27 <camunda:inputParameter name="headers">
28 <camunda:map>
29 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
30 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
31 </camunda:map>
32 </camunda:inputParameter>
33 <camunda:inputParameter name="payload">${initResourceOperationStatus}</camunda:inputParameter>
34 <camunda:inputParameter name="method">POST</camunda:inputParameter>
35 <camunda:outputParameter name="NSSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
36 <camunda:outputParameter name="NSSMF_dbResponse">${response}</camunda:outputParameter>
37 </camunda:inputOutput>
38 <camunda:connectorId>http-connector</camunda:connectorId>
39 </camunda:connector>
40 </bpmn:extensionElements>
41 <bpmn:incoming>Flow_04jsg9s</bpmn:incoming>
42 <bpmn:outgoing>Flow_1c1j5i1</bpmn:outgoing>
43 </bpmn:serviceTask>
44 <bpmn:sequenceFlow id="Flow_0pttfuf" sourceRef="Activity_0zyhkvj" targetRef="Activity_1fj0cge" />
45 <bpmn:sequenceFlow id="Flow_1c1j5i1" sourceRef="Activity_1dykbz9" targetRef="Activity_0c6o2o7" />
46 <bpmn:scriptTask id="Activity_1fj0cge" name="Init Resource Operation Status" scriptFormat="groovy">
47 <bpmn:incoming>Flow_0pttfuf</bpmn:incoming>
48 <bpmn:outgoing>Flow_04jsg9s</bpmn:outgoing>
49 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
50def nss = new DeAllocateSliceSubnet()
51nss.prepareInitOperationStatus(execution)</bpmn:script>
52 </bpmn:scriptTask>
53 <bpmn:sequenceFlow id="Flow_04jsg9s" sourceRef="Activity_1fj0cge" targetRef="Activity_1dykbz9" />
54 <bpmn:exclusiveGateway id="Gateway_1jagvdq" name="Whether Network type">
55 <bpmn:incoming>Flow_1kljyhj</bpmn:incoming>
56 <bpmn:outgoing>Flow_0fp8gep</bpmn:outgoing>
57 <bpmn:outgoing>Flow_0zwyxxc</bpmn:outgoing>
58 <bpmn:outgoing>Flow_0roz1jy</bpmn:outgoing>
59 </bpmn:exclusiveGateway>
60 <bpmn:callActivity id="Activity_02dflyr" name="Call TNDeallocateNSSI" calledElement="DoDeallocateTransportNSSI">
61 <bpmn:extensionElements>
62 <camunda:in source="msoRequestId" target="msoRequestId" />
63 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
64 <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
65 <camunda:in source="nsiId" target="nsiId" />
66 <camunda:in source="networkType" target="networkType" />
67 <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
68 <camunda:in source="jobId" target="jobId" />
69 <camunda:in source="sliceParams" target="sliceParams" />
70 <camunda:out source="WorkflowException" target="WorkflowException" />
71 <camunda:in source="servicename" target="servicename" />
72 </bpmn:extensionElements>
73 <bpmn:incoming>Flow_0fp8gep</bpmn:incoming>
74 <bpmn:outgoing>Flow_1hij53h</bpmn:outgoing>
75 </bpmn:callActivity>
76 <bpmn:callActivity id="Activity_1ceupdn" name="Call CNDeallocateNSSI" calledElement="DoDeallocateCoreNSSI">
77 <bpmn:extensionElements>
78 <camunda:in source="msoRequestId" target="msoRequestId" />
79 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
80 <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
81 <camunda:in source="nsiId" target="nsiId" />
82 <camunda:in source="networkType" target="networkType" />
83 <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
84 <camunda:in source="jobId" target="jobId" />
85 <camunda:in source="sliceParams" target="sliceParams" />
86 <camunda:out source="WorkflowException" target="WorkflowException" />
87 <camunda:in source="servicename" target="servicename" />
88 </bpmn:extensionElements>
89 <bpmn:incoming>Flow_0roz1jy</bpmn:incoming>
90 <bpmn:outgoing>Flow_1fth8go</bpmn:outgoing>
91 </bpmn:callActivity>
92 <bpmn:callActivity id="Activity_0li16m1" name="Call ANDeallocateNSSI" calledElement="DoDeallocateAccessNSSI">
93 <bpmn:extensionElements>
94 <camunda:in source="msoRequestId" target="msoRequestId" />
95 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
96 <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
97 <camunda:in source="nsiId" target="nsiId" />
98 <camunda:in source="networkType" target="networkType" />
99 <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
100 <camunda:in source="jobId" target="jobId" />
101 <camunda:in source="sliceParams" target="sliceParams" />
102 <camunda:out source="WorkflowException" target="WorkflowException" />
103 <camunda:in source="servicename" target="servicename" />
104 </bpmn:extensionElements>
105 <bpmn:incoming>Flow_0zwyxxc</bpmn:incoming>
106 <bpmn:outgoing>Flow_1l74oic</bpmn:outgoing>
107 </bpmn:callActivity>
108 <bpmn:endEvent id="Event_1ecylff">
109 <bpmn:incoming>Flow_1hij53h</bpmn:incoming>
110 <bpmn:incoming>Flow_1fth8go</bpmn:incoming>
111 <bpmn:incoming>Flow_1l74oic</bpmn:incoming>
112 </bpmn:endEvent>
113 <bpmn:sequenceFlow id="Flow_0fp8gep" name="Is TN ?" sourceRef="Gateway_1jagvdq" targetRef="Activity_02dflyr">
114 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "TN"}</bpmn:conditionExpression>
115 </bpmn:sequenceFlow>
116 <bpmn:sequenceFlow id="Flow_0zwyxxc" name="Is AN ?" sourceRef="Gateway_1jagvdq" targetRef="Activity_0li16m1">
117 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "AN"}</bpmn:conditionExpression>
118 </bpmn:sequenceFlow>
119 <bpmn:sequenceFlow id="Flow_0roz1jy" name="Is CN ?" sourceRef="Gateway_1jagvdq" targetRef="Activity_1ceupdn">
120 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "CN"}</bpmn:conditionExpression>
121 </bpmn:sequenceFlow>
122 <bpmn:sequenceFlow id="Flow_1hij53h" sourceRef="Activity_02dflyr" targetRef="Event_1ecylff" />
123 <bpmn:sequenceFlow id="Flow_1fth8go" sourceRef="Activity_1ceupdn" targetRef="Event_1ecylff" />
124 <bpmn:sequenceFlow id="Flow_1l74oic" sourceRef="Activity_0li16m1" targetRef="Event_1ecylff" />
125 <bpmn:sequenceFlow id="Flow_1kljyhj" sourceRef="Activity_0c6o2o7" targetRef="Gateway_1jagvdq" />
126 </bpmn:process>
127 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
128 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DeAllocateSliceSubnet">
129 <bpmndi:BPMNEdge id="Flow_1kljyhj_di" bpmnElement="Flow_1kljyhj">
130 <di:waypoint x="890" y="250" />
131 <di:waypoint x="975" y="250" />
132 </bpmndi:BPMNEdge>
133 <bpmndi:BPMNEdge id="Flow_1l74oic_di" bpmnElement="Flow_1l74oic">
134 <di:waypoint x="1190" y="120" />
135 <di:waypoint x="1280" y="120" />
136 <di:waypoint x="1280" y="232" />
137 </bpmndi:BPMNEdge>
138 <bpmndi:BPMNEdge id="Flow_1fth8go_di" bpmnElement="Flow_1fth8go">
139 <di:waypoint x="1190" y="250" />
140 <di:waypoint x="1262" y="250" />
141 </bpmndi:BPMNEdge>
142 <bpmndi:BPMNEdge id="Flow_1hij53h_di" bpmnElement="Flow_1hij53h">
143 <di:waypoint x="1190" y="360" />
144 <di:waypoint x="1280" y="360" />
145 <di:waypoint x="1280" y="268" />
146 </bpmndi:BPMNEdge>
147 <bpmndi:BPMNEdge id="Flow_0roz1jy_di" bpmnElement="Flow_0roz1jy">
148 <di:waypoint x="1025" y="250" />
149 <di:waypoint x="1090" y="250" />
150 <bpmndi:BPMNLabel>
151 <dc:Bounds x="1035" y="232" width="37" height="14" />
152 </bpmndi:BPMNLabel>
153 </bpmndi:BPMNEdge>
154 <bpmndi:BPMNEdge id="Flow_0zwyxxc_di" bpmnElement="Flow_0zwyxxc">
155 <di:waypoint x="1000" y="225" />
156 <di:waypoint x="1000" y="120" />
157 <di:waypoint x="1090" y="120" />
158 <bpmndi:BPMNLabel>
159 <dc:Bounds x="964" y="129" width="37" height="14" />
160 </bpmndi:BPMNLabel>
161 </bpmndi:BPMNEdge>
162 <bpmndi:BPMNEdge id="Flow_0fp8gep_di" bpmnElement="Flow_0fp8gep">
163 <di:waypoint x="1000" y="275" />
164 <di:waypoint x="1000" y="360" />
165 <di:waypoint x="1090" y="360" />
166 <bpmndi:BPMNLabel>
167 <dc:Bounds x="1000" y="345" width="36" height="14" />
168 </bpmndi:BPMNLabel>
169 </bpmndi:BPMNEdge>
170 <bpmndi:BPMNEdge id="Flow_04jsg9s_di" bpmnElement="Flow_04jsg9s">
171 <di:waypoint x="520" y="250" />
172 <di:waypoint x="600" y="250" />
173 </bpmndi:BPMNEdge>
174 <bpmndi:BPMNEdge id="Flow_1c1j5i1_di" bpmnElement="Flow_1c1j5i1">
175 <di:waypoint x="700" y="250" />
176 <di:waypoint x="790" y="250" />
177 </bpmndi:BPMNEdge>
178 <bpmndi:BPMNEdge id="Flow_0pttfuf_di" bpmnElement="Flow_0pttfuf">
179 <di:waypoint x="330" y="250" />
180 <di:waypoint x="420" y="250" />
181 </bpmndi:BPMNEdge>
182 <bpmndi:BPMNEdge id="Flow_143ck2k_di" bpmnElement="Flow_143ck2k">
183 <di:waypoint x="168" y="250" />
184 <di:waypoint x="230" y="250" />
185 </bpmndi:BPMNEdge>
186 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
187 <dc:Bounds x="132" y="232" width="36" height="36" />
188 <bpmndi:BPMNLabel>
189 <dc:Bounds x="138" y="275" width="24" height="14" />
190 </bpmndi:BPMNLabel>
191 </bpmndi:BPMNShape>
192 <bpmndi:BPMNShape id="Activity_1jawdkz_di" bpmnElement="Activity_0zyhkvj">
193 <dc:Bounds x="230" y="210" width="100" height="80" />
194 </bpmndi:BPMNShape>
195 <bpmndi:BPMNShape id="Activity_1n1ajr4_di" bpmnElement="Activity_0c6o2o7">
196 <dc:Bounds x="790" y="210" width="100" height="80" />
197 </bpmndi:BPMNShape>
198 <bpmndi:BPMNShape id="Activity_1dykbz9_di" bpmnElement="Activity_1dykbz9">
199 <dc:Bounds x="600" y="210" width="100" height="80" />
200 </bpmndi:BPMNShape>
201 <bpmndi:BPMNShape id="Activity_1fj0cge_di" bpmnElement="Activity_1fj0cge">
202 <dc:Bounds x="420" y="210" width="100" height="80" />
203 </bpmndi:BPMNShape>
204 <bpmndi:BPMNShape id="Gateway_1jagvdq_di" bpmnElement="Gateway_1jagvdq" isMarkerVisible="true">
205 <dc:Bounds x="975" y="225" width="50" height="50" />
206 <bpmndi:BPMNLabel>
207 <dc:Bounds x="957" y="268" width="85" height="27" />
208 </bpmndi:BPMNLabel>
209 </bpmndi:BPMNShape>
210 <bpmndi:BPMNShape id="Activity_02dflyr_di" bpmnElement="Activity_02dflyr">
211 <dc:Bounds x="1090" y="320" width="100" height="80" />
212 </bpmndi:BPMNShape>
213 <bpmndi:BPMNShape id="Activity_1ceupdn_di" bpmnElement="Activity_1ceupdn">
214 <dc:Bounds x="1090" y="210" width="100" height="80" />
215 </bpmndi:BPMNShape>
216 <bpmndi:BPMNShape id="Activity_0li16m1_di" bpmnElement="Activity_0li16m1">
217 <dc:Bounds x="1090" y="80" width="100" height="80" />
218 </bpmndi:BPMNShape>
219 <bpmndi:BPMNShape id="Event_1ecylff_di" bpmnElement="Event_1ecylff">
220 <dc:Bounds x="1262" y="232" width="36" height="36" />
221 </bpmndi:BPMNShape>
222 </bpmndi:BPMNPlane>
223 </bpmndi:BPMNDiagram>
224</bpmn:definitions>