07077a1cab637f2f749b81d8144e234f6b212562
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / AllocateSliceSubnet.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: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.*
11 def nss = new AllocateSliceSubnet()
12 nss.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.*
18 def nss = new AllocateSliceSubnet()
19 nss.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.*
89 def nss = new AllocateSliceSubnet()
90 nss.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:sequenceFlow id="Flow_189zwjw" sourceRef="CallDoAllocateTransportNSSI" targetRef="Event_18u424w" />
95     <bpmn:callActivity id="CallDoAllocateCoreNSSI" name="Call CNAllocateNSSI" calledElement="DoAllocateCoreNSSI">
96       <bpmn:extensionElements>
97         <camunda:in source="msoRequestId" target="msoRequestId" />
98         <camunda:in source="modelInvariantUuid" target="modelInvariantUuid" />
99         <camunda:in source="modelUuid" target="modelUuid" />
100         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
101         <camunda:in source="dummyServiceId" target="dummyServiceId" />
102         <camunda:in source="nsiId" target="nsiId" />
103         <camunda:in source="networkType" target="networkType" />
104         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
105         <camunda:in source="jobId" target="jobId" />
106         <camunda:in source="sliceParams" target="sliceParams" />
107         <camunda:out source="WorkflowException" target="WorkflowException" />
108         <camunda:in source="servicename" target="servicename" />
109       </bpmn:extensionElements>
110       <bpmn:incoming>Flow_1fij4ds</bpmn:incoming>
111       <bpmn:outgoing>Flow_1coedjo</bpmn:outgoing>
112     </bpmn:callActivity>
113     <bpmn:sequenceFlow id="Flow_1coedjo" sourceRef="CallDoAllocateCoreNSSI" targetRef="Event_18u424w" />
114     <bpmn:callActivity id="CallDoAllocateTransportNSSI" name="Call TNAllocateNSSI" calledElement="DoAllocateTransportNSSI">
115       <bpmn:extensionElements>
116         <camunda:in source="msoRequestId" target="msoRequestId" />
117         <camunda:in source="modelInvariantUuid" target="modelInvariantUuid" />
118         <camunda:in source="modelUuid" target="modelUuid" />
119         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
120         <camunda:in source="dummyServiceId" target="dummyServiceId" />
121         <camunda:in source="nsiId" target="nsiId" />
122         <camunda:in source="networkType" target="networkType" />
123         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
124         <camunda:in source="jobId" target="jobId" />
125         <camunda:in source="sliceParams" target="sliceParams" />
126         <camunda:out source="WorkflowException" target="WorkflowException" />
127         <camunda:in source="servicename" target="servicename" />
128         <camunda:in source="sst" target="sst" />
129       </bpmn:extensionElements>
130       <bpmn:incoming>Flow_0g7721r</bpmn:incoming>
131       <bpmn:outgoing>Flow_189zwjw</bpmn:outgoing>
132     </bpmn:callActivity>
133   </bpmn:process>
134   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
135     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="AllocateSliceSubnet">
136       <bpmndi:BPMNEdge id="Flow_1coedjo_di" bpmnElement="Flow_1coedjo">
137         <di:waypoint x="1080" y="190" />
138         <di:waypoint x="1152" y="190" />
139       </bpmndi:BPMNEdge>
140       <bpmndi:BPMNEdge id="Flow_189zwjw_di" bpmnElement="Flow_189zwjw">
141         <di:waypoint x="1080" y="290" />
142         <di:waypoint x="1170" y="290" />
143         <di:waypoint x="1170" y="208" />
144       </bpmndi:BPMNEdge>
145       <bpmndi:BPMNEdge id="Flow_18cgkru_di" bpmnElement="Flow_18cgkru">
146         <di:waypoint x="480" y="190" />
147         <di:waypoint x="550" y="190" />
148       </bpmndi:BPMNEdge>
149       <bpmndi:BPMNEdge id="Flow_0ou7wr9_di" bpmnElement="Flow_0ou7wr9">
150         <di:waypoint x="320" y="190" />
151         <di:waypoint x="380" y="190" />
152       </bpmndi:BPMNEdge>
153       <bpmndi:BPMNEdge id="Flow_09b50tn_di" bpmnElement="Flow_09b50tn">
154         <di:waypoint x="1080" y="90" />
155         <di:waypoint x="1170" y="90" />
156         <di:waypoint x="1170" y="172" />
157       </bpmndi:BPMNEdge>
158       <bpmndi:BPMNEdge id="Flow_1kk0exp_di" bpmnElement="Flow_1kk0exp">
159         <di:waypoint x="890" y="165" />
160         <di:waypoint x="890" y="90" />
161         <di:waypoint x="980" y="90" />
162         <bpmndi:BPMNLabel>
163           <dc:Bounds x="911" y="125" width="37" height="14" />
164         </bpmndi:BPMNLabel>
165       </bpmndi:BPMNEdge>
166       <bpmndi:BPMNEdge id="Flow_0g7721r_di" bpmnElement="Flow_0g7721r">
167         <di:waypoint x="890" y="215" />
168         <di:waypoint x="890" y="290" />
169         <di:waypoint x="980" y="290" />
170         <bpmndi:BPMNLabel>
171           <dc:Bounds x="912" y="263" width="36" height="14" />
172         </bpmndi:BPMNLabel>
173       </bpmndi:BPMNEdge>
174       <bpmndi:BPMNEdge id="Flow_1fij4ds_di" bpmnElement="Flow_1fij4ds">
175         <di:waypoint x="915" y="190" />
176         <di:waypoint x="980" y="190" />
177         <bpmndi:BPMNLabel>
178           <dc:Bounds x="921" y="172" width="37" height="14" />
179         </bpmndi:BPMNLabel>
180       </bpmndi:BPMNEdge>
181       <bpmndi:BPMNEdge id="Flow_0m5n6md_di" bpmnElement="Flow_0m5n6md">
182         <di:waypoint x="800" y="190" />
183         <di:waypoint x="865" y="190" />
184       </bpmndi:BPMNEdge>
185       <bpmndi:BPMNEdge id="Flow_0ayd6dj_di" bpmnElement="Flow_0ayd6dj">
186         <di:waypoint x="650" y="190" />
187         <di:waypoint x="700" y="190" />
188       </bpmndi:BPMNEdge>
189       <bpmndi:BPMNEdge id="Flow_0cmaj9d_di" bpmnElement="Flow_0cmaj9d">
190         <di:waypoint x="188" y="190" />
191         <di:waypoint x="220" y="190" />
192       </bpmndi:BPMNEdge>
193       <bpmndi:BPMNShape id="Event_16inlk9_di" bpmnElement="Event_16inlk9">
194         <dc:Bounds x="152" y="172" width="36" height="36" />
195         <bpmndi:BPMNLabel>
196           <dc:Bounds x="158" y="215" width="24" height="14" />
197         </bpmndi:BPMNLabel>
198       </bpmndi:BPMNShape>
199       <bpmndi:BPMNShape id="Activity_1hyt0pb_di" bpmnElement="Activity_1hyt0pb">
200         <dc:Bounds x="220" y="150" width="100" height="80" />
201       </bpmndi:BPMNShape>
202       <bpmndi:BPMNShape id="Activity_1usi32q_di" bpmnElement="Activity_1usi32q">
203         <dc:Bounds x="700" y="150" width="100" height="80" />
204       </bpmndi:BPMNShape>
205       <bpmndi:BPMNShape id="Gateway_15a04ct_di" bpmnElement="Gateway_15a04ct" isMarkerVisible="true">
206         <dc:Bounds x="865" y="165" width="50" height="50" />
207         <bpmndi:BPMNLabel>
208           <dc:Bounds x="847" y="208" width="85" height="27" />
209         </bpmndi:BPMNLabel>
210       </bpmndi:BPMNShape>
211       <bpmndi:BPMNShape id="Event_18u424w_di" bpmnElement="Event_18u424w">
212         <dc:Bounds x="1152" y="172" width="36" height="36" />
213       </bpmndi:BPMNShape>
214       <bpmndi:BPMNShape id="Activity_0qlstj2_di" bpmnElement="Activity_0qlstj2">
215         <dc:Bounds x="550" y="150" width="100" height="80" />
216       </bpmndi:BPMNShape>
217       <bpmndi:BPMNShape id="Activity_0ezmthy_di" bpmnElement="CallDoAllocateAccessNSSI">
218         <dc:Bounds x="980" y="50" width="100" height="80" />
219       </bpmndi:BPMNShape>
220       <bpmndi:BPMNShape id="Activity_1ydx2rx_di" bpmnElement="Activity_1ydx2rx">
221         <dc:Bounds x="380" y="150" width="100" height="80" />
222       </bpmndi:BPMNShape>
223       <bpmndi:BPMNShape id="Activity_01669p4_di" bpmnElement="CallDoAllocateCoreNSSI">
224         <dc:Bounds x="980" y="150" width="100" height="80" />
225       </bpmndi:BPMNShape>
226       <bpmndi:BPMNShape id="Activity_00awuik_di" bpmnElement="CallDoAllocateTransportNSSI">
227         <dc:Bounds x="980" y="250" width="100" height="80" />
228       </bpmndi:BPMNShape>
229     </bpmndi:BPMNPlane>
230   </bpmndi:BPMNDiagram>
231 </bpmn:definitions>
232