[SO] Release so 1.13.0 image
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / ActivateSliceSubnet.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_04ua9m1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.1.1">
3   <bpmn:process id="ActivateSliceSubnet" name="ActivateSliceSubnet" isExecutable="true">
4     <bpmn:startEvent id="Event_1h6wq31" name="Start">
5       <bpmn:outgoing>Flow_1rnck9o</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:scriptTask id="Activity_0r1fyr9" name="Preprocess Request" scriptFormat="groovy">
8       <bpmn:incoming>Flow_1rnck9o</bpmn:incoming>
9       <bpmn:outgoing>Flow_1ruhu5s</bpmn:outgoing>
10       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11 def nss = new ActivateSliceSubnet()
12 nss.preProcessRequest(execution)</bpmn:script>
13     </bpmn:scriptTask>
14     <bpmn:scriptTask id="Activity_19eqlu7" name="Send Sync Response" scriptFormat="groovy">
15       <bpmn:incoming>Flow_1da78f4</bpmn:incoming>
16       <bpmn:outgoing>Flow_17ebcpc</bpmn:outgoing>
17       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
18 def nss = new ActivateSliceSubnet()
19 nss.sendSyncResponse(execution)</bpmn:script>
20     </bpmn:scriptTask>
21     <bpmn:exclusiveGateway id="Gateway_150n9jp" name="Whether Network type">
22       <bpmn:incoming>Flow_17ebcpc</bpmn:incoming>
23       <bpmn:outgoing>Flow_1t9x0sg</bpmn:outgoing>
24       <bpmn:outgoing>Flow_1q1kc3c</bpmn:outgoing>
25       <bpmn:outgoing>Flow_0ptiwv3</bpmn:outgoing>
26     </bpmn:exclusiveGateway>
27     <bpmn:endEvent id="Event_07betxq">
28       <bpmn:incoming>Flow_0krl0oq</bpmn:incoming>
29       <bpmn:incoming>Flow_0wwue07</bpmn:incoming>
30       <bpmn:incoming>Flow_115ylm7</bpmn:incoming>
31     </bpmn:endEvent>
32     <bpmn:serviceTask id="Activity_1jbt8op" 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_0wjhvtf</bpmn:incoming>
52       <bpmn:outgoing>Flow_1da78f4</bpmn:outgoing>
53     </bpmn:serviceTask>
54     <bpmn:sequenceFlow id="Flow_1rnck9o" sourceRef="Event_1h6wq31" targetRef="Activity_0r1fyr9" />
55     <bpmn:sequenceFlow id="Flow_1da78f4" sourceRef="Activity_1jbt8op" targetRef="Activity_19eqlu7" />
56     <bpmn:sequenceFlow id="Flow_17ebcpc" sourceRef="Activity_19eqlu7" targetRef="Gateway_150n9jp" />
57     <bpmn:sequenceFlow id="Flow_1t9x0sg" name="Is CN ?" sourceRef="Gateway_150n9jp" targetRef="CallDoActivateCoreNSSI">
58       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "CN"}</bpmn:conditionExpression>
59     </bpmn:sequenceFlow>
60     <bpmn:sequenceFlow id="Flow_1q1kc3c" name="Is TN ?" sourceRef="Gateway_150n9jp" targetRef="CallDoActivateTransportNSSI">
61       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "TN"}</bpmn:conditionExpression>
62     </bpmn:sequenceFlow>
63     <bpmn:callActivity id="CallDoActivateAccessNSSI" name="Call ANActivateNSSI" calledElement="DoActivateAccessNSSI">
64       <bpmn:extensionElements>
65         <camunda:in source="msoRequestId" target="msoRequestId" />
66         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
67         <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
68         <camunda:in source="nsiId" target="nsiId" />
69         <camunda:in source="networkType" target="networkType" />
70         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
71         <camunda:in source="jobId" target="jobId" />
72         <camunda:in source="sliceParams" target="sliceParams" />
73         <camunda:out source="WorkflowException" target="WorkflowException" />
74         <camunda:in source="operationType" target="operationType" />
75       </bpmn:extensionElements>
76       <bpmn:incoming>Flow_0ptiwv3</bpmn:incoming>
77       <bpmn:outgoing>Flow_0krl0oq</bpmn:outgoing>
78     </bpmn:callActivity>
79     <bpmn:sequenceFlow id="Flow_0ptiwv3" name="Is AN ?" sourceRef="Gateway_150n9jp" targetRef="CallDoActivateAccessNSSI">
80       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "AN"}</bpmn:conditionExpression>
81     </bpmn:sequenceFlow>
82     <bpmn:sequenceFlow id="Flow_0krl0oq" sourceRef="CallDoActivateAccessNSSI" targetRef="Event_07betxq" />
83     <bpmn:callActivity id="CallDoActivateCoreNSSI" name="Call CNActivateNSSI" calledElement="DoActivateCoreNSSI">
84       <bpmn:extensionElements>
85         <camunda:in source="msoRequestId" target="msoRequestId" />
86         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
87         <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
88         <camunda:in source="nsiId" target="nsiId" />
89         <camunda:in source="networkType" target="networkType" />
90         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
91         <camunda:in source="jobId" target="jobId" />
92         <camunda:in source="sliceParams" target="sliceParams" />
93         <camunda:out source="WorkflowException" target="WorkflowException" />
94         <camunda:in source="operationType" target="operationType" />
95       </bpmn:extensionElements>
96       <bpmn:incoming>Flow_1t9x0sg</bpmn:incoming>
97       <bpmn:outgoing>Flow_0wwue07</bpmn:outgoing>
98     </bpmn:callActivity>
99     <bpmn:sequenceFlow id="Flow_0wwue07" sourceRef="CallDoActivateCoreNSSI" targetRef="Event_07betxq" />
100     <bpmn:callActivity id="CallDoActivateTransportNSSI" name="Call TNActivateNSSI" calledElement="DoActivateTransportNSSI">
101       <bpmn:extensionElements>
102         <camunda:in source="msoRequestId" target="msoRequestId" />
103         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
104         <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
105         <camunda:in source="nsiId" target="nsiId" />
106         <camunda:in source="networkType" target="networkType" />
107         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
108         <camunda:in source="jobId" target="jobId" />
109         <camunda:in source="sliceParams" target="sliceParams" />
110         <camunda:out source="WorkflowException" target="WorkflowException" />
111         <camunda:in source="operationType" target="operationType" />
112       </bpmn:extensionElements>
113       <bpmn:incoming>Flow_1q1kc3c</bpmn:incoming>
114       <bpmn:outgoing>Flow_115ylm7</bpmn:outgoing>
115     </bpmn:callActivity>
116     <bpmn:sequenceFlow id="Flow_115ylm7" sourceRef="CallDoActivateTransportNSSI" targetRef="Event_07betxq" />
117     <bpmn:scriptTask id="Activity_13km4np" name="Init Resource Operation Status" scriptFormat="groovy">
118       <bpmn:incoming>Flow_1ruhu5s</bpmn:incoming>
119       <bpmn:outgoing>Flow_0wjhvtf</bpmn:outgoing>
120       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
121 def nss = new ActivateSliceSubnet()
122 nss.prepareInitOperationStatus(execution)</bpmn:script>
123     </bpmn:scriptTask>
124     <bpmn:sequenceFlow id="Flow_1ruhu5s" sourceRef="Activity_0r1fyr9" targetRef="Activity_13km4np" />
125     <bpmn:sequenceFlow id="Flow_0wjhvtf" sourceRef="Activity_13km4np" targetRef="Activity_1jbt8op" />
126   </bpmn:process>
127   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
128     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ActivateSliceSubnet">
129       <bpmndi:BPMNEdge id="Flow_115ylm7_di" bpmnElement="Flow_115ylm7">
130         <di:waypoint x="1050" y="360" />
131         <di:waypoint x="1140" y="360" />
132         <di:waypoint x="1140" y="258" />
133       </bpmndi:BPMNEdge>
134       <bpmndi:BPMNEdge id="Flow_0wwue07_di" bpmnElement="Flow_0wwue07">
135         <di:waypoint x="1050" y="240" />
136         <di:waypoint x="1122" y="240" />
137       </bpmndi:BPMNEdge>
138       <bpmndi:BPMNEdge id="Flow_0krl0oq_di" bpmnElement="Flow_0krl0oq">
139         <di:waypoint x="1050" y="120" />
140         <di:waypoint x="1140" y="120" />
141         <di:waypoint x="1140" y="222" />
142       </bpmndi:BPMNEdge>
143       <bpmndi:BPMNEdge id="Flow_0ptiwv3_di" bpmnElement="Flow_0ptiwv3">
144         <di:waypoint x="860" y="215" />
145         <di:waypoint x="860" y="120" />
146         <di:waypoint x="950" y="120" />
147         <bpmndi:BPMNLabel>
148           <dc:Bounds x="881" y="166" width="37" height="14" />
149         </bpmndi:BPMNLabel>
150       </bpmndi:BPMNEdge>
151       <bpmndi:BPMNEdge id="Flow_1q1kc3c_di" bpmnElement="Flow_1q1kc3c">
152         <di:waypoint x="860" y="265" />
153         <di:waypoint x="860" y="360" />
154         <di:waypoint x="950" y="360" />
155         <bpmndi:BPMNLabel>
156           <dc:Bounds x="882" y="333" width="36" height="14" />
157         </bpmndi:BPMNLabel>
158       </bpmndi:BPMNEdge>
159       <bpmndi:BPMNEdge id="Flow_1t9x0sg_di" bpmnElement="Flow_1t9x0sg">
160         <di:waypoint x="885" y="240" />
161         <di:waypoint x="950" y="240" />
162         <bpmndi:BPMNLabel>
163           <dc:Bounds x="894" y="222" width="37" height="14" />
164         </bpmndi:BPMNLabel>
165       </bpmndi:BPMNEdge>
166       <bpmndi:BPMNEdge id="Flow_17ebcpc_di" bpmnElement="Flow_17ebcpc">
167         <di:waypoint x="770" y="240" />
168         <di:waypoint x="835" y="240" />
169       </bpmndi:BPMNEdge>
170       <bpmndi:BPMNEdge id="Flow_1da78f4_di" bpmnElement="Flow_1da78f4">
171         <di:waypoint x="620" y="240" />
172         <di:waypoint x="670" y="240" />
173       </bpmndi:BPMNEdge>
174       <bpmndi:BPMNEdge id="Flow_1ruhu5s_di" bpmnElement="Flow_1ruhu5s">
175         <di:waypoint x="330" y="240" />
176         <di:waypoint x="390" y="240" />
177       </bpmndi:BPMNEdge>
178       <bpmndi:BPMNEdge id="Flow_1rnck9o_di" bpmnElement="Flow_1rnck9o">
179         <di:waypoint x="188" y="240" />
180         <di:waypoint x="230" y="240" />
181       </bpmndi:BPMNEdge>
182       <bpmndi:BPMNEdge id="Flow_0wjhvtf_di" bpmnElement="Flow_0wjhvtf">
183         <di:waypoint x="490" y="240" />
184         <di:waypoint x="520" y="240" />
185       </bpmndi:BPMNEdge>
186       <bpmndi:BPMNShape id="Activity_19eqlu7_di" bpmnElement="Activity_19eqlu7">
187         <dc:Bounds x="670" y="200" width="100" height="80" />
188       </bpmndi:BPMNShape>
189       <bpmndi:BPMNShape id="Gateway_150n9jp_di" bpmnElement="Gateway_150n9jp" isMarkerVisible="true">
190         <dc:Bounds x="835" y="215" width="50" height="50" />
191         <bpmndi:BPMNLabel>
192           <dc:Bounds x="817" y="258" width="85" height="27" />
193         </bpmndi:BPMNLabel>
194       </bpmndi:BPMNShape>
195       <bpmndi:BPMNShape id="Event_07betxq_di" bpmnElement="Event_07betxq">
196         <dc:Bounds x="1122" y="222" width="36" height="36" />
197       </bpmndi:BPMNShape>
198       <bpmndi:BPMNShape id="Activity_1jbt8op_di" bpmnElement="Activity_1jbt8op">
199         <dc:Bounds x="520" y="200" width="100" height="80" />
200       </bpmndi:BPMNShape>
201       <bpmndi:BPMNShape id="Activity_0663qmy_di" bpmnElement="CallDoActivateAccessNSSI">
202         <dc:Bounds x="950" y="80" width="100" height="80" />
203       </bpmndi:BPMNShape>
204       <bpmndi:BPMNShape id="Activity_0k9faej_di" bpmnElement="CallDoActivateCoreNSSI">
205         <dc:Bounds x="950" y="200" width="100" height="80" />
206       </bpmndi:BPMNShape>
207       <bpmndi:BPMNShape id="Activity_0rmx5qf_di" bpmnElement="CallDoActivateTransportNSSI">
208         <dc:Bounds x="950" y="320" width="100" height="80" />
209       </bpmndi:BPMNShape>
210       <bpmndi:BPMNShape id="Event_1h6wq31_di" bpmnElement="Event_1h6wq31">
211         <dc:Bounds x="152" y="222" width="36" height="36" />
212         <bpmndi:BPMNLabel>
213           <dc:Bounds x="158" y="265" width="24" height="14" />
214         </bpmndi:BPMNLabel>
215       </bpmndi:BPMNShape>
216       <bpmndi:BPMNShape id="Activity_0r1fyr9_di" bpmnElement="Activity_0r1fyr9">
217         <dc:Bounds x="230" y="200" width="100" height="80" />
218       </bpmndi:BPMNShape>
219       <bpmndi:BPMNShape id="Activity_13km4np_di" bpmnElement="Activity_13km4np">
220         <dc:Bounds x="390" y="200" width="100" height="80" />
221       </bpmndi:BPMNShape>
222     </bpmndi:BPMNPlane>
223   </bpmndi:BPMNDiagram>
224 </bpmn:definitions>