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>
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>
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>
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>
32 <bpmn:serviceTask id="Activity_1jbt8op" name="Update Resource Operation Status">
33 <bpmn:extensionElements>
36 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
37 <camunda:inputParameter name="headers">
39 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
40 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
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>
50 </bpmn:extensionElements>
51 <bpmn:incoming>Flow_0wjhvtf</bpmn:incoming>
52 <bpmn:outgoing>Flow_1da78f4</bpmn:outgoing>
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>
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>
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>
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>
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>
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>
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>
124 <bpmn:sequenceFlow id="Flow_1ruhu5s" sourceRef="Activity_0r1fyr9" targetRef="Activity_13km4np" />
125 <bpmn:sequenceFlow id="Flow_0wjhvtf" sourceRef="Activity_13km4np" targetRef="Activity_1jbt8op" />
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" />
134 <bpmndi:BPMNEdge id="Flow_0wwue07_di" bpmnElement="Flow_0wwue07">
135 <di:waypoint x="1050" y="240" />
136 <di:waypoint x="1122" y="240" />
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" />
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" />
148 <dc:Bounds x="881" y="166" width="37" height="14" />
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" />
156 <dc:Bounds x="882" y="333" width="36" height="14" />
159 <bpmndi:BPMNEdge id="Flow_1t9x0sg_di" bpmnElement="Flow_1t9x0sg">
160 <di:waypoint x="885" y="240" />
161 <di:waypoint x="950" y="240" />
163 <dc:Bounds x="894" y="222" width="37" height="14" />
166 <bpmndi:BPMNEdge id="Flow_17ebcpc_di" bpmnElement="Flow_17ebcpc">
167 <di:waypoint x="770" y="240" />
168 <di:waypoint x="835" y="240" />
170 <bpmndi:BPMNEdge id="Flow_1da78f4_di" bpmnElement="Flow_1da78f4">
171 <di:waypoint x="620" y="240" />
172 <di:waypoint x="670" y="240" />
174 <bpmndi:BPMNEdge id="Flow_1ruhu5s_di" bpmnElement="Flow_1ruhu5s">
175 <di:waypoint x="330" y="240" />
176 <di:waypoint x="390" y="240" />
178 <bpmndi:BPMNEdge id="Flow_1rnck9o_di" bpmnElement="Flow_1rnck9o">
179 <di:waypoint x="188" y="240" />
180 <di:waypoint x="230" y="240" />
182 <bpmndi:BPMNEdge id="Flow_0wjhvtf_di" bpmnElement="Flow_0wjhvtf">
183 <di:waypoint x="490" y="240" />
184 <di:waypoint x="520" y="240" />
186 <bpmndi:BPMNShape id="Activity_19eqlu7_di" bpmnElement="Activity_19eqlu7">
187 <dc:Bounds x="670" y="200" width="100" height="80" />
189 <bpmndi:BPMNShape id="Gateway_150n9jp_di" bpmnElement="Gateway_150n9jp" isMarkerVisible="true">
190 <dc:Bounds x="835" y="215" width="50" height="50" />
192 <dc:Bounds x="817" y="258" width="85" height="27" />
195 <bpmndi:BPMNShape id="Event_07betxq_di" bpmnElement="Event_07betxq">
196 <dc:Bounds x="1122" y="222" width="36" height="36" />
198 <bpmndi:BPMNShape id="Activity_1jbt8op_di" bpmnElement="Activity_1jbt8op">
199 <dc:Bounds x="520" y="200" width="100" height="80" />
201 <bpmndi:BPMNShape id="Activity_0663qmy_di" bpmnElement="CallDoActivateAccessNSSI">
202 <dc:Bounds x="950" y="80" width="100" height="80" />
204 <bpmndi:BPMNShape id="Activity_0k9faej_di" bpmnElement="CallDoActivateCoreNSSI">
205 <dc:Bounds x="950" y="200" width="100" height="80" />
207 <bpmndi:BPMNShape id="Activity_0rmx5qf_di" bpmnElement="CallDoActivateTransportNSSI">
208 <dc:Bounds x="950" y="320" width="100" height="80" />
210 <bpmndi:BPMNShape id="Event_1h6wq31_di" bpmnElement="Event_1h6wq31">
211 <dc:Bounds x="152" y="222" width="36" height="36" />
213 <dc:Bounds x="158" y="265" width="24" height="14" />
216 <bpmndi:BPMNShape id="Activity_0r1fyr9_di" bpmnElement="Activity_0r1fyr9">
217 <dc:Bounds x="230" y="200" width="100" height="80" />
219 <bpmndi:BPMNShape id="Activity_13km4np_di" bpmnElement="Activity_13km4np">
220 <dc:Bounds x="390" y="200" width="100" height="80" />
223 </bpmndi:BPMNDiagram>