[SO] Release so 1.13.0 image
[so.git] / bpmn / so-bpmn-infrastructure-flows / src / main / resources / process / ModifySliceSubnet.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_0fme930" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.1.1">
3   <bpmn:process id="ModifySliceSubnet" name="ModifySliceSubnet" isExecutable="true">
4     <bpmn:startEvent id="Event_05idy03" name="Start">
5       <bpmn:outgoing>Flow_1t0w8dn</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:scriptTask id="Activity_0kd9pxx" name="Preprocess Request" scriptFormat="groovy">
8       <bpmn:incoming>Flow_1t0w8dn</bpmn:incoming>
9       <bpmn:outgoing>Flow_0fzchbl</bpmn:outgoing>
10       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11 def nss = new ModifySliceSubnet()
12 nss.preProcessRequest(execution)</bpmn:script>
13     </bpmn:scriptTask>
14     <bpmn:scriptTask id="Activity_1dzkfh2" name="Send Sync Response" scriptFormat="groovy">
15       <bpmn:incoming>Flow_1q030ul</bpmn:incoming>
16       <bpmn:outgoing>Flow_0ps6iyc</bpmn:outgoing>
17       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
18 def nss = new ModifySliceSubnet()
19 nss.sendSyncResponse(execution)</bpmn:script>
20     </bpmn:scriptTask>
21     <bpmn:exclusiveGateway id="Gateway_1baxf7k" name="Whether Network type">
22       <bpmn:incoming>Flow_0ps6iyc</bpmn:incoming>
23       <bpmn:outgoing>Flow_15luvlg</bpmn:outgoing>
24       <bpmn:outgoing>Flow_0usuozn</bpmn:outgoing>
25       <bpmn:outgoing>Flow_1dfyoe6</bpmn:outgoing>
26     </bpmn:exclusiveGateway>
27     <bpmn:endEvent id="Event_103vvkf">
28       <bpmn:incoming>Flow_1b2k523</bpmn:incoming>
29       <bpmn:incoming>Flow_0pklfqu</bpmn:incoming>
30       <bpmn:incoming>Flow_1bbqkjv</bpmn:incoming>
31     </bpmn:endEvent>
32     <bpmn:serviceTask id="Activity_0ptby3d" 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_1grhlet</bpmn:incoming>
52       <bpmn:outgoing>Flow_1q030ul</bpmn:outgoing>
53     </bpmn:serviceTask>
54     <bpmn:sequenceFlow id="Flow_1t0w8dn" sourceRef="Event_05idy03" targetRef="Activity_0kd9pxx" />
55     <bpmn:sequenceFlow id="Flow_0fzchbl" sourceRef="Activity_0kd9pxx" targetRef="Activity_1s8ojcr" />
56     <bpmn:sequenceFlow id="Flow_1q030ul" sourceRef="Activity_0ptby3d" targetRef="Activity_1dzkfh2" />
57     <bpmn:sequenceFlow id="Flow_0ps6iyc" sourceRef="Activity_1dzkfh2" targetRef="Gateway_1baxf7k" />
58     <bpmn:sequenceFlow id="Flow_15luvlg" name="Is TN ?" sourceRef="Gateway_1baxf7k" targetRef="Activity_192bdyv">
59       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "TN"}</bpmn:conditionExpression>
60     </bpmn:sequenceFlow>
61     <bpmn:sequenceFlow id="Flow_0usuozn" name="Is AN ?" sourceRef="Gateway_1baxf7k" targetRef="Activity_0t1g4mp">
62       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "AN"}</bpmn:conditionExpression>
63     </bpmn:sequenceFlow>
64     <bpmn:scriptTask id="Activity_1s8ojcr" name="Init Resource Operation Status" scriptFormat="groovy">
65       <bpmn:incoming>Flow_0fzchbl</bpmn:incoming>
66       <bpmn:outgoing>Flow_1grhlet</bpmn:outgoing>
67       <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
68 def nss = new ModifySliceSubnet()
69 nss.prepareInitOperationStatus(execution)</bpmn:script>
70     </bpmn:scriptTask>
71     <bpmn:sequenceFlow id="Flow_1grhlet" sourceRef="Activity_1s8ojcr" targetRef="Activity_0ptby3d" />
72     <bpmn:callActivity id="Activity_0t1g4mp" name="Call ANModifyNSSI" calledElement="DoModifyAccessNSSI">
73       <bpmn:extensionElements>
74         <camunda:in source="msoRequestId" target="msoRequestId" />
75         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
76         <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
77         <camunda:in source="nsiId" target="nsiId" />
78         <camunda:in source="networkType" target="networkType" />
79         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
80         <camunda:in source="jobId" target="jobId" />
81         <camunda:in source="sliceParams" target="sliceParams" />
82         <camunda:out source="WorkflowException" target="WorkflowException" />
83         <camunda:in source="servicename" target="servicename" />
84       </bpmn:extensionElements>
85       <bpmn:incoming>Flow_0usuozn</bpmn:incoming>
86       <bpmn:outgoing>Flow_1b2k523</bpmn:outgoing>
87     </bpmn:callActivity>
88     <bpmn:sequenceFlow id="Flow_1b2k523" sourceRef="Activity_0t1g4mp" targetRef="Event_103vvkf" />
89     <bpmn:callActivity id="Activity_0v2hxmv" name="Call CNModifyNSSI" calledElement="DoModifyCoreNSSI">
90       <bpmn:extensionElements>
91         <camunda:in source="msoRequestId" target="msoRequestId" />
92         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
93         <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
94         <camunda:in source="nsiId" target="nsiId" />
95         <camunda:in source="networkType" target="networkType" />
96         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
97         <camunda:in source="jobId" target="jobId" />
98         <camunda:in source="sliceParams" target="sliceParams" />
99         <camunda:out source="WorkflowException" target="WorkflowException" />
100         <camunda:in source="servicename" target="servicename" />
101       </bpmn:extensionElements>
102       <bpmn:incoming>Flow_1dfyoe6</bpmn:incoming>
103       <bpmn:outgoing>Flow_0pklfqu</bpmn:outgoing>
104     </bpmn:callActivity>
105     <bpmn:callActivity id="Activity_192bdyv" name="Call TNModifyNSSI" calledElement="DoModifyTransportNSSI">
106       <bpmn:extensionElements>
107         <camunda:in source="msoRequestId" target="msoRequestId" />
108         <camunda:in source="globalSubscriberId" target="globalSubscriberId" />
109         <camunda:in source="serviceInstanceID" target="serviceInstanceID" />
110         <camunda:in source="nsiId" target="nsiId" />
111         <camunda:in source="networkType" target="networkType" />
112         <camunda:in source="subscriptionServiceType" target="subscriptionServiceType" />
113         <camunda:in source="jobId" target="jobId" />
114         <camunda:in source="sliceParams" target="sliceParams" />
115         <camunda:out source="WorkflowException" target="WorkflowException" />
116         <camunda:in source="servicename" target="servicename" />
117       </bpmn:extensionElements>
118       <bpmn:incoming>Flow_15luvlg</bpmn:incoming>
119       <bpmn:outgoing>Flow_1bbqkjv</bpmn:outgoing>
120     </bpmn:callActivity>
121     <bpmn:sequenceFlow id="Flow_0pklfqu" sourceRef="Activity_0v2hxmv" targetRef="Event_103vvkf" />
122     <bpmn:sequenceFlow id="Flow_1dfyoe6" name="Is CN ?" sourceRef="Gateway_1baxf7k" targetRef="Activity_0v2hxmv">
123       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("networkType") == "CN"}</bpmn:conditionExpression>
124     </bpmn:sequenceFlow>
125     <bpmn:sequenceFlow id="Flow_1bbqkjv" sourceRef="Activity_192bdyv" targetRef="Event_103vvkf" />
126   </bpmn:process>
127   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
128     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ModifySliceSubnet">
129       <bpmndi:BPMNEdge id="Flow_0usuozn_di" bpmnElement="Flow_0usuozn">
130         <di:waypoint x="830" y="245" />
131         <di:waypoint x="830" y="140" />
132         <di:waypoint x="920" y="140" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="794" y="149" width="37" height="14" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNEdge id="Flow_15luvlg_di" bpmnElement="Flow_15luvlg">
138         <di:waypoint x="830" y="295" />
139         <di:waypoint x="830" y="380" />
140         <di:waypoint x="920" y="380" />
141         <bpmndi:BPMNLabel>
142           <dc:Bounds x="830" y="365" width="36" height="14" />
143         </bpmndi:BPMNLabel>
144       </bpmndi:BPMNEdge>
145       <bpmndi:BPMNEdge id="Flow_1dfyoe6_di" bpmnElement="Flow_1dfyoe6">
146         <di:waypoint x="855" y="270" />
147         <di:waypoint x="920" y="270" />
148         <bpmndi:BPMNLabel>
149           <dc:Bounds x="865" y="252" width="37" height="14" />
150         </bpmndi:BPMNLabel>
151       </bpmndi:BPMNEdge>
152       <bpmndi:BPMNEdge id="Flow_0ps6iyc_di" bpmnElement="Flow_0ps6iyc">
153         <di:waypoint x="740" y="270" />
154         <di:waypoint x="805" y="270" />
155       </bpmndi:BPMNEdge>
156       <bpmndi:BPMNEdge id="Flow_1q030ul_di" bpmnElement="Flow_1q030ul">
157         <di:waypoint x="590" y="270" />
158         <di:waypoint x="640" y="270" />
159       </bpmndi:BPMNEdge>
160       <bpmndi:BPMNEdge id="Flow_0fzchbl_di" bpmnElement="Flow_0fzchbl">
161         <di:waypoint x="310" y="270" />
162         <di:waypoint x="340" y="270" />
163       </bpmndi:BPMNEdge>
164       <bpmndi:BPMNEdge id="Flow_1t0w8dn_di" bpmnElement="Flow_1t0w8dn">
165         <di:waypoint x="188" y="270" />
166         <di:waypoint x="210" y="270" />
167       </bpmndi:BPMNEdge>
168       <bpmndi:BPMNEdge id="Flow_1grhlet_di" bpmnElement="Flow_1grhlet">
169         <di:waypoint x="440" y="270" />
170         <di:waypoint x="490" y="270" />
171       </bpmndi:BPMNEdge>
172       <bpmndi:BPMNEdge id="Flow_1b2k523_di" bpmnElement="Flow_1b2k523">
173         <di:waypoint x="1020" y="140" />
174         <di:waypoint x="1110" y="140" />
175         <di:waypoint x="1110" y="252" />
176       </bpmndi:BPMNEdge>
177       <bpmndi:BPMNEdge id="Flow_0pklfqu_di" bpmnElement="Flow_0pklfqu">
178         <di:waypoint x="1020" y="270" />
179         <di:waypoint x="1092" y="270" />
180       </bpmndi:BPMNEdge>
181       <bpmndi:BPMNEdge id="Flow_1bbqkjv_di" bpmnElement="Flow_1bbqkjv">
182         <di:waypoint x="1020" y="380" />
183         <di:waypoint x="1110" y="380" />
184         <di:waypoint x="1110" y="288" />
185       </bpmndi:BPMNEdge>
186       <bpmndi:BPMNShape id="Activity_1dzkfh2_di" bpmnElement="Activity_1dzkfh2">
187         <dc:Bounds x="640" y="230" width="100" height="80" />
188       </bpmndi:BPMNShape>
189       <bpmndi:BPMNShape id="Gateway_1baxf7k_di" bpmnElement="Gateway_1baxf7k" isMarkerVisible="true">
190         <dc:Bounds x="805" y="245" width="50" height="50" />
191         <bpmndi:BPMNLabel>
192           <dc:Bounds x="787" y="288" width="85" height="27" />
193         </bpmndi:BPMNLabel>
194       </bpmndi:BPMNShape>
195       <bpmndi:BPMNShape id="Event_103vvkf_di" bpmnElement="Event_103vvkf">
196         <dc:Bounds x="1092" y="252" width="36" height="36" />
197       </bpmndi:BPMNShape>
198       <bpmndi:BPMNShape id="Activity_0ptby3d_di" bpmnElement="Activity_0ptby3d">
199         <dc:Bounds x="490" y="230" width="100" height="80" />
200       </bpmndi:BPMNShape>
201       <bpmndi:BPMNShape id="Event_05idy03_di" bpmnElement="Event_05idy03">
202         <dc:Bounds x="152" y="252" width="36" height="36" />
203         <bpmndi:BPMNLabel>
204           <dc:Bounds x="158" y="295" width="24" height="14" />
205         </bpmndi:BPMNLabel>
206       </bpmndi:BPMNShape>
207       <bpmndi:BPMNShape id="Activity_0kd9pxx_di" bpmnElement="Activity_0kd9pxx">
208         <dc:Bounds x="210" y="230" width="100" height="80" />
209       </bpmndi:BPMNShape>
210       <bpmndi:BPMNShape id="Activity_1s8ojcr_di" bpmnElement="Activity_1s8ojcr">
211         <dc:Bounds x="340" y="230" width="100" height="80" />
212       </bpmndi:BPMNShape>
213       <bpmndi:BPMNShape id="Activity_0t1g4mp_di" bpmnElement="Activity_0t1g4mp">
214         <dc:Bounds x="920" y="100" width="100" height="80" />
215       </bpmndi:BPMNShape>
216       <bpmndi:BPMNShape id="Activity_0v2hxmv_di" bpmnElement="Activity_0v2hxmv">
217         <dc:Bounds x="920" y="230" width="100" height="80" />
218       </bpmndi:BPMNShape>
219       <bpmndi:BPMNShape id="Activity_192bdyv_di" bpmnElement="Activity_192bdyv">
220         <dc:Bounds x="920" y="340" width="100" height="80" />
221       </bpmndi:BPMNShape>
222     </bpmndi:BPMNPlane>
223   </bpmndi:BPMNDiagram>
224 </bpmn:definitions>