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