blob: 450faaebca1c0c0e383556f5fbd129a93449d643 [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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_04bdlh3" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.1.1">
3 <bpmn:process id="AllocateSliceSubnet" name="AllocateSliceSubnet" isExecutable="true">
4 <bpmn:startEvent id="Event_16inlk9" name="Start">
5 <bpmn:outgoing>Flow_0cmaj9d</bpmn:outgoing>
6 </bpmn:startEvent>
7 <bpmn:scriptTask id="Activity_1hyt0pb" name="Preprocess Request" scriptFormat="groovy">
8 <bpmn:incoming>Flow_0cmaj9d</bpmn:incoming>
9 <bpmn:outgoing>Flow_0ou7wr9</bpmn:outgoing>
10 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11def nss = new AllocateSliceSubnet()
12nss.preProcessRequest(execution)</bpmn:script>
13 </bpmn:scriptTask>
14 <bpmn:scriptTask id="Activity_1usi32q" name="Send Sync Response" scriptFormat="groovy">
15 <bpmn:incoming>Flow_0ayd6dj</bpmn:incoming>
16 <bpmn:outgoing>Flow_0m5n6md</bpmn:outgoing>
17 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
18def nss = new AllocateSliceSubnet()
19nss.sendSyncResponse(execution)</bpmn:script>
20 </bpmn:scriptTask>
21 <bpmn:exclusiveGateway id="Gateway_15a04ct" name="Whether Network type">
22 <bpmn:incoming>Flow_0m5n6md</bpmn:incoming>
23 <bpmn:outgoing>Flow_1fij4ds</bpmn:outgoing>
24 <bpmn:outgoing>Flow_0g7721r</bpmn:outgoing>
25 <bpmn:outgoing>Flow_1kk0exp</bpmn:outgoing>
26 </bpmn:exclusiveGateway>
27 <bpmn:endEvent id="Event_18u424w">
28 <bpmn:incoming>Flow_09b50tn</bpmn:incoming>
29 <bpmn:incoming>Flow_189zwjw</bpmn:incoming>
30 <bpmn:incoming>Flow_1coedjo</bpmn:incoming>
31 </bpmn:endEvent>
32 <bpmn:serviceTask id="Activity_0qlstj2" name="Update Resource Operation Status">
33 <bpmn:extensionElements>
34 <camunda:connector>
35 <camunda:inputOutput>
36 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
37 <camunda:inputParameter name="headers">
38 <camunda:map>
39 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
40 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
41 </camunda:map>
42 </camunda:inputParameter>
43 <camunda:inputParameter name="payload">${initResourceOperationStatus}</camunda:inputParameter>
44 <camunda:inputParameter name="method">POST</camunda:inputParameter>
45 <camunda:outputParameter name="NSSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
46 <camunda:outputParameter name="NSSMF_dbResponse">${response}</camunda:outputParameter>
47 </camunda:inputOutput>
48 <camunda:connectorId>http-connector</camunda:connectorId>
49 </camunda:connector>
50 </bpmn:extensionElements>
51 <bpmn:incoming>Flow_18cgkru</bpmn:incoming>
52 <bpmn:outgoing>Flow_0ayd6dj</bpmn:outgoing>
53 </bpmn:serviceTask>
54 <bpmn:sequenceFlow id="Flow_0cmaj9d" sourceRef="Event_16inlk9" targetRef="Activity_1hyt0pb" />
55 <bpmn:sequenceFlow id="Flow_0ayd6dj" sourceRef="Activity_0qlstj2" targetRef="Activity_1usi32q" />
56 <bpmn:sequenceFlow id="Flow_0m5n6md" sourceRef="Activity_1usi32q" targetRef="Gateway_15a04ct" />
57 <bpmn:sequenceFlow id="Flow_1fij4ds" name="Is CN ?" sourceRef="Gateway_15a04ct" targetRef="CallDoAllocateCoreNSSI">
58 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "CN"}</bpmn:conditionExpression>
59 </bpmn:sequenceFlow>
60 <bpmn:sequenceFlow id="Flow_0g7721r" name="Is TN ?" sourceRef="Gateway_15a04ct" targetRef="CallDoAllocateTransportNSSI">
61 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "TN"}</bpmn:conditionExpression>
62 </bpmn:sequenceFlow>
63 <bpmn:sequenceFlow id="Flow_1kk0exp" name="Is AN ?" sourceRef="Gateway_15a04ct" targetRef="CallDoAllocateAccessNSSI">
64 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "AN"}</bpmn:conditionExpression>
65 </bpmn:sequenceFlow>
66 <bpmn:sequenceFlow id="Flow_09b50tn" sourceRef="CallDoAllocateAccessNSSI" targetRef="Event_18u424w" />
67 <bpmn:callActivity id="CallDoAllocateAccessNSSI" name="Call ANAllocateNSSI" calledElement="DoAllocateAccessNSSI">
68 <bpmn:extensionElements>
69 <camunda:in source="msoRequestId" target="msoRequestId" />
70 <camunda:in source="modelInvariantUuid" target="modelInvariantUuid" />
71 <camunda:in source="modelUuid" target="modelUuid" />
72 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
73 <camunda:in source="dummyServiceId" target="dummyServiceId" />
74 <camunda:in source="nsiId" target="nsiId" />
75 <camunda:in source="networkType" target="networkType" />
76 <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
77 <camunda:in source="jobId" target="jobId" />
78 <camunda:in source="sliceParams" target="sliceParams" />
79 <camunda:out source="WorkflowException" target="WorkflowException" />
80 <camunda:in source="servicename" target="servicename" />
81 </bpmn:extensionElements>
82 <bpmn:incoming>Flow_1kk0exp</bpmn:incoming>
83 <bpmn:outgoing>Flow_09b50tn</bpmn:outgoing>
84 </bpmn:callActivity>
85 <bpmn:scriptTask id="Activity_1ydx2rx" name="Init Resource Operation Status" scriptFormat="groovy">
86 <bpmn:incoming>Flow_0ou7wr9</bpmn:incoming>
87 <bpmn:outgoing>Flow_18cgkru</bpmn:outgoing>
88 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
89def nss = new AllocateSliceSubnet()
90nss.prepareInitOperationStatus(execution)</bpmn:script>
91 </bpmn:scriptTask>
92 <bpmn:sequenceFlow id="Flow_0ou7wr9" sourceRef="Activity_1hyt0pb" targetRef="Activity_1ydx2rx" />
93 <bpmn:sequenceFlow id="Flow_18cgkru" sourceRef="Activity_1ydx2rx" targetRef="Activity_0qlstj2" />
94 <bpmn:callActivity id="CallDoAllocateTransportNSSI" name="Call TNAllocateNSSI" calledElement="DoAllocateTransportNSSI">
95 <bpmn:extensionElements>
96 <camunda:in source="servicename" target="servicename" />
97 </bpmn:extensionElements>
98 <bpmn:incoming>Flow_0g7721r</bpmn:incoming>
99 <bpmn:outgoing>Flow_189zwjw</bpmn:outgoing>
100 </bpmn:callActivity>
101 <bpmn:sequenceFlow id="Flow_189zwjw" sourceRef="CallDoAllocateTransportNSSI" targetRef="Event_18u424w" />
102 <bpmn:callActivity id="CallDoAllocateCoreNSSI" name="Call CNAllocateNSSI" calledElement="DoAllocateCoreNSSI">
103 <bpmn:extensionElements>
104 <camunda:in source="msoRequestId" target="msoRequestId" />
105 <camunda:in source="modelInvariantUuid" target="modelInvariantUuid" />
106 <camunda:in source="modelUuid" target="modelUuid" />
107 <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
108 <camunda:in source="dummyServiceId" target="dummyServiceId" />
109 <camunda:in source="nsiId" target="nsiId" />
110 <camunda:in source="networkType" target="networkType" />
111 <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
112 <camunda:in source="jobId" target="jobId" />
113 <camunda:in source="sliceParams" target="sliceParams" />
114 <camunda:out source="WorkflowException" target="WorkflowException" />
115 <camunda:in source="servicename" target="servicename" />
116 </bpmn:extensionElements>
117 <bpmn:incoming>Flow_1fij4ds</bpmn:incoming>
118 <bpmn:outgoing>Flow_1coedjo</bpmn:outgoing>
119 </bpmn:callActivity>
120 <bpmn:sequenceFlow id="Flow_1coedjo" sourceRef="CallDoAllocateCoreNSSI" targetRef="Event_18u424w" />
121 </bpmn:process>
122 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
123 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="AllocateSliceSubnet">
124 <bpmndi:BPMNEdge id="Flow_1coedjo_di" bpmnElement="Flow_1coedjo">
125 <di:waypoint x="1080" y="190" />
126 <di:waypoint x="1152" y="190" />
127 </bpmndi:BPMNEdge>
128 <bpmndi:BPMNEdge id="Flow_189zwjw_di" bpmnElement="Flow_189zwjw">
129 <di:waypoint x="1080" y="300" />
130 <di:waypoint x="1170" y="300" />
131 <di:waypoint x="1170" y="208" />
132 </bpmndi:BPMNEdge>
133 <bpmndi:BPMNEdge id="Flow_18cgkru_di" bpmnElement="Flow_18cgkru">
134 <di:waypoint x="480" y="190" />
135 <di:waypoint x="550" y="190" />
136 </bpmndi:BPMNEdge>
137 <bpmndi:BPMNEdge id="Flow_0ou7wr9_di" bpmnElement="Flow_0ou7wr9">
138 <di:waypoint x="320" y="190" />
139 <di:waypoint x="380" y="190" />
140 </bpmndi:BPMNEdge>
141 <bpmndi:BPMNEdge id="Flow_09b50tn_di" bpmnElement="Flow_09b50tn">
142 <di:waypoint x="1080" y="90" />
143 <di:waypoint x="1170" y="90" />
144 <di:waypoint x="1170" y="172" />
145 </bpmndi:BPMNEdge>
146 <bpmndi:BPMNEdge id="Flow_1kk0exp_di" bpmnElement="Flow_1kk0exp">
147 <di:waypoint x="890" y="165" />
148 <di:waypoint x="890" y="90" />
149 <di:waypoint x="980" y="90" />
150 <bpmndi:BPMNLabel>
151 <dc:Bounds x="911" y="125" width="37" height="14" />
152 </bpmndi:BPMNLabel>
153 </bpmndi:BPMNEdge>
154 <bpmndi:BPMNEdge id="Flow_0g7721r_di" bpmnElement="Flow_0g7721r">
155 <di:waypoint x="890" y="215" />
156 <di:waypoint x="890" y="300" />
157 <di:waypoint x="980" y="300" />
158 <bpmndi:BPMNLabel>
159 <dc:Bounds x="912" y="273" width="36" height="14" />
160 </bpmndi:BPMNLabel>
161 </bpmndi:BPMNEdge>
162 <bpmndi:BPMNEdge id="Flow_1fij4ds_di" bpmnElement="Flow_1fij4ds">
163 <di:waypoint x="915" y="190" />
164 <di:waypoint x="980" y="190" />
165 <bpmndi:BPMNLabel>
166 <dc:Bounds x="921" y="172" width="37" height="14" />
167 </bpmndi:BPMNLabel>
168 </bpmndi:BPMNEdge>
169 <bpmndi:BPMNEdge id="Flow_0m5n6md_di" bpmnElement="Flow_0m5n6md">
170 <di:waypoint x="800" y="190" />
171 <di:waypoint x="865" y="190" />
172 </bpmndi:BPMNEdge>
173 <bpmndi:BPMNEdge id="Flow_0ayd6dj_di" bpmnElement="Flow_0ayd6dj">
174 <di:waypoint x="650" y="190" />
175 <di:waypoint x="700" y="190" />
176 </bpmndi:BPMNEdge>
177 <bpmndi:BPMNEdge id="Flow_0cmaj9d_di" bpmnElement="Flow_0cmaj9d">
178 <di:waypoint x="188" y="190" />
179 <di:waypoint x="220" y="190" />
180 </bpmndi:BPMNEdge>
181 <bpmndi:BPMNShape id="Event_16inlk9_di" bpmnElement="Event_16inlk9">
182 <dc:Bounds x="152" y="172" width="36" height="36" />
183 <bpmndi:BPMNLabel>
184 <dc:Bounds x="158" y="215" width="24" height="14" />
185 </bpmndi:BPMNLabel>
186 </bpmndi:BPMNShape>
187 <bpmndi:BPMNShape id="Activity_1hyt0pb_di" bpmnElement="Activity_1hyt0pb">
188 <dc:Bounds x="220" y="150" width="100" height="80" />
189 </bpmndi:BPMNShape>
190 <bpmndi:BPMNShape id="Activity_1usi32q_di" bpmnElement="Activity_1usi32q">
191 <dc:Bounds x="700" y="150" width="100" height="80" />
192 </bpmndi:BPMNShape>
193 <bpmndi:BPMNShape id="Gateway_15a04ct_di" bpmnElement="Gateway_15a04ct" isMarkerVisible="true">
194 <dc:Bounds x="865" y="165" width="50" height="50" />
195 <bpmndi:BPMNLabel>
196 <dc:Bounds x="847" y="208" width="85" height="27" />
197 </bpmndi:BPMNLabel>
198 </bpmndi:BPMNShape>
199 <bpmndi:BPMNShape id="Event_18u424w_di" bpmnElement="Event_18u424w">
200 <dc:Bounds x="1152" y="172" width="36" height="36" />
201 </bpmndi:BPMNShape>
202 <bpmndi:BPMNShape id="Activity_0qlstj2_di" bpmnElement="Activity_0qlstj2">
203 <dc:Bounds x="550" y="150" width="100" height="80" />
204 </bpmndi:BPMNShape>
205 <bpmndi:BPMNShape id="Activity_0ezmthy_di" bpmnElement="CallDoAllocateAccessNSSI">
206 <dc:Bounds x="980" y="50" width="100" height="80" />
207 </bpmndi:BPMNShape>
208 <bpmndi:BPMNShape id="Activity_1ydx2rx_di" bpmnElement="Activity_1ydx2rx">
209 <dc:Bounds x="380" y="150" width="100" height="80" />
210 </bpmndi:BPMNShape>
211 <bpmndi:BPMNShape id="Activity_008nbm9_di" bpmnElement="CallDoAllocateTransportNSSI">
212 <dc:Bounds x="980" y="260" width="100" height="80" />
213 </bpmndi:BPMNShape>
214 <bpmndi:BPMNShape id="Activity_01669p4_di" bpmnElement="CallDoAllocateCoreNSSI">
215 <dc:Bounds x="980" y="150" width="100" height="80" />
216 </bpmndi:BPMNShape>
217 </bpmndi:BPMNPlane>
218 </bpmndi:BPMNDiagram>
219</bpmn:definitions>