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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1">
3 <bpmn:process id="CreateSDNCNetworkResource" name="CreateSDNCNetworkResource" isExecutable="true">
4 <bpmn:startEvent id="createNS_StartEvent" name="createNS_StartEvent">
5 <bpmn:outgoing>SequenceFlow_1qo2pln</bpmn:outgoing>
7 <bpmn:sequenceFlow id="SequenceFlow_1qo2pln" sourceRef="createNS_StartEvent" targetRef="Task_1dlrfiw" />
8 <bpmn:sequenceFlow id="SequenceFlow_0khtova" sourceRef="PreprocessIncomingRequest_task" targetRef="Task_0tezqd4" />
9 <bpmn:scriptTask id="PreprocessIncomingRequest_task" name="prepare SDNC Request" scriptFormat="groovy">
10 <bpmn:incoming>SequenceFlow_0svppaq</bpmn:incoming>
11 <bpmn:outgoing>SequenceFlow_0khtova</bpmn:outgoing>
12 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
13 def dcsi = new CreateSDNCNetworkResource()
14 dcsi.prepareSDNCRequest(execution)</bpmn:script>
16 <bpmn:endEvent id="EndEvent_1x6k78c" name="create SDNC call end">
17 <bpmn:incoming>SequenceFlow_0auvfvm</bpmn:incoming>
19 <bpmn:callActivity id="CallActivity_1600xlj" name="Call SDNC RSRC Create Adapter V1 " calledElement="sdncAdapter">
20 <bpmn:extensionElements>
21 <camunda:in source="mso-request-id" target="mso-request-id" />
22 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
23 <camunda:out source="sdncAdapterResponse" target="CRENWKI_createSDNCResponse" />
24 <camunda:out source="SDNCA_ResponseCode" target="CRESDNCRES_sdncCreateReturnCode" />
25 <camunda:out source="SDNCA_SuccessIndicator" target="CRESDNCRES_SuccessIndicator" />
26 <camunda:out source="WorkflowException" target="WorkflowException" />
27 <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
28 </bpmn:extensionElements>
29 <bpmn:incoming>SequenceFlow_11i5vrt</bpmn:incoming>
30 <bpmn:outgoing>SequenceFlow_0u8d8j5</bpmn:outgoing>
32 <bpmn:sequenceFlow id="SequenceFlow_0w2es8j" sourceRef="Task_1dlrfiw" targetRef="Task_13sx2bp" />
33 <bpmn:sequenceFlow id="SequenceFlow_18l3crb" sourceRef="Task_13sx2bp" targetRef="Task_1mbzgl7" />
34 <bpmn:scriptTask id="Task_1dlrfiw" name="Set the Recipe DesignTimeParam" scriptFormat="groovy">
35 <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming>
36 <bpmn:outgoing>SequenceFlow_0w2es8j</bpmn:outgoing>
37 <bpmn:script>String recipeParamXsdDemo="""{"operationType":"GRE"}"""
38 String recipeParamXsd=""
39 execution.setVariable("recipeParamXsd", recipeParamXsd)</bpmn:script>
41 <bpmn:scriptTask id="Task_13sx2bp" name="Pre Process Request" scriptFormat="groovy">
42 <bpmn:incoming>SequenceFlow_0w2es8j</bpmn:incoming>
43 <bpmn:outgoing>SequenceFlow_18l3crb</bpmn:outgoing>
44 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
45 def dcsi = new CreateSDNCNetworkResource()
46 dcsi.preProcessRequest(execution)</bpmn:script>
48 <bpmn:sequenceFlow id="SequenceFlow_1mz0vdx" sourceRef="Task_0tezqd4" targetRef="Task_18tomkl" />
49 <bpmn:sequenceFlow id="SequenceFlow_15mvedq" sourceRef="Task_18tomkl" targetRef="ExclusiveGateway_08sinju" />
50 <bpmn:scriptTask id="Task_0tezqd4" name="Create progress update parameters before create" scriptFormat="groovy">
51 <bpmn:incoming>SequenceFlow_0khtova</bpmn:incoming>
52 <bpmn:outgoing>SequenceFlow_1mz0vdx</bpmn:outgoing>
53 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
54 def dcsi = new CreateSDNCNetworkResource()
55 dcsi.prepareUpdateBeforeCreateSDNCResource(execution)</bpmn:script>
57 <bpmn:serviceTask id="Task_18tomkl" name="update progress update">
58 <bpmn:extensionElements>
61 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
62 <camunda:inputParameter name="headers">
64 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
65 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
67 </camunda:inputParameter>
68 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
69 <camunda:inputParameter name="method">POST</camunda:inputParameter>
70 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
71 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
72 </camunda:inputOutput>
73 <camunda:connectorId>http-connector</camunda:connectorId>
75 </bpmn:extensionElements>
76 <bpmn:incoming>SequenceFlow_1mz0vdx</bpmn:incoming>
77 <bpmn:outgoing>SequenceFlow_15mvedq</bpmn:outgoing>
79 <bpmn:serviceTask id="ServiceTask_1cm8iwr" name="update progress update">
80 <bpmn:extensionElements>
83 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
84 <camunda:inputParameter name="headers">
86 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
87 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
89 </camunda:inputParameter>
90 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
91 <camunda:inputParameter name="method">POST</camunda:inputParameter>
92 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
93 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
94 </camunda:inputOutput>
95 <camunda:connectorId>http-connector</camunda:connectorId>
97 </bpmn:extensionElements>
98 <bpmn:incoming>SequenceFlow_1cd8ujq</bpmn:incoming>
99 <bpmn:outgoing>SequenceFlow_0drbyvd</bpmn:outgoing>
101 <bpmn:scriptTask id="ScriptTask_1g5zyi6" name="Send Sync Ack Response" scriptFormat="groovy">
102 <bpmn:incoming>SequenceFlow_0drbyvd</bpmn:incoming>
103 <bpmn:outgoing>SequenceFlow_0auvfvm</bpmn:outgoing>
104 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
105 def csi = new CreateSDNCNetworkResource()
106 csi.sendSyncResponse(execution)</bpmn:script>
108 <bpmn:exclusiveGateway id="ExclusiveGateway_0cdulnk" name="is deActivate required" default="SequenceFlow_05m2j56">
109 <bpmn:incoming>SequenceFlow_0oqe2oa</bpmn:incoming>
110 <bpmn:outgoing>SequenceFlow_1dww8ye</bpmn:outgoing>
111 <bpmn:outgoing>SequenceFlow_05m2j56</bpmn:outgoing>
112 </bpmn:exclusiveGateway>
113 <bpmn:sequenceFlow id="SequenceFlow_1dww8ye" name="yes" sourceRef="ExclusiveGateway_0cdulnk" targetRef="Task_0bga3e8">
114 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isActivateRequired") == "true")}</bpmn:conditionExpression>
116 <bpmn:scriptTask id="Task_0uwlr22" name="Create progress update parameters After create" scriptFormat="groovy">
117 <bpmn:incoming>SequenceFlow_05m2j56</bpmn:incoming>
118 <bpmn:incoming>SequenceFlow_05niqbf</bpmn:incoming>
119 <bpmn:outgoing>SequenceFlow_1cd8ujq</bpmn:outgoing>
120 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
121 def dcsi = new CreateSDNCNetworkResource()
122 dcsi.prepareUpdateAfterCreateSDNCResource(execution)</bpmn:script>
124 <bpmn:sequenceFlow id="SequenceFlow_05m2j56" name="No" sourceRef="ExclusiveGateway_0cdulnk" targetRef="Task_0uwlr22" />
125 <bpmn:sequenceFlow id="SequenceFlow_05niqbf" sourceRef="Task_0bga3e8" targetRef="Task_0uwlr22" />
126 <bpmn:sequenceFlow id="SequenceFlow_1cd8ujq" sourceRef="Task_0uwlr22" targetRef="ServiceTask_1cm8iwr" />
127 <bpmn:sequenceFlow id="SequenceFlow_0auvfvm" sourceRef="ScriptTask_1g5zyi6" targetRef="EndEvent_1x6k78c" />
128 <bpmn:callActivity id="Task_0bga3e8" name="call Activate SDNC network Resource" calledElement="ActivateSDNCNetworkResource">
129 <bpmn:extensionElements>
130 <camunda:in source="mso-request-id" target="mso-request-id" />
131 <camunda:in source="requestAction" target="requestAction" />
132 <camunda:in source="recipeParams" target="recipeParams" />
133 <camunda:in source="resourceInput" target="resourceInput" />
134 <camunda:in source="recipeParamXsd" target="recipeParamXsd" />
135 <camunda:in source="operationId" target="operationId" />
136 <camunda:in source="svcAction" target="svcAction" />
137 <camunda:in source="requestAction" target="requestAction" />
138 <camunda:in source="URN_mso_workflow_sdncadapter_callback" target="URN_mso_workflow_sdncadapter_callback" />
139 <camunda:in source="networkRequest" target="networkRequest" />
140 <camunda:in source="resourceInstanceId" target="resourceInstanceId" />
141 </bpmn:extensionElements>
142 <bpmn:incoming>SequenceFlow_1dww8ye</bpmn:incoming>
143 <bpmn:outgoing>SequenceFlow_05niqbf</bpmn:outgoing>
145 <bpmn:sequenceFlow id="SequenceFlow_0svppaq" sourceRef="Task_1mbzgl7" targetRef="PreprocessIncomingRequest_task" />
146 <bpmn:scriptTask id="Task_1mbzgl7" name="Update resource input" scriptFormat="groovy">
147 <bpmn:incoming>SequenceFlow_18l3crb</bpmn:incoming>
148 <bpmn:outgoing>SequenceFlow_0svppaq</bpmn:outgoing>
149 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
150 def dcsi = new CreateSDNCNetworkResource()
151 dcsi.updateResourceInput(execution)</bpmn:script>
153 <bpmn:sequenceFlow id="SequenceFlow_0drbyvd" sourceRef="ServiceTask_1cm8iwr" targetRef="ScriptTask_1g5zyi6" />
154 <bpmn:sequenceFlow id="SequenceFlow_0u8d8j5" sourceRef="CallActivity_1600xlj" targetRef="Task_1czbh37" />
155 <bpmn:sequenceFlow id="SequenceFlow_0oqe2oa" sourceRef="Task_1czbh37" targetRef="ExclusiveGateway_0cdulnk" />
156 <bpmn:scriptTask id="Task_1czbh37" name="post SDNC create call" scriptFormat="groovy">
157 <bpmn:incoming>SequenceFlow_0u8d8j5</bpmn:incoming>
158 <bpmn:incoming>SequenceFlow_06wc3j9</bpmn:incoming>
159 <bpmn:outgoing>SequenceFlow_0oqe2oa</bpmn:outgoing>
160 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
161 def dcsi = new CreateSDNCNetworkResource()
162 dcsi.afterCreateSDNCCall(execution)</bpmn:script>
164 <bpmn:exclusiveGateway id="ExclusiveGateway_08sinju" name="is Async Required" default="SequenceFlow_11i5vrt">
165 <bpmn:incoming>SequenceFlow_15mvedq</bpmn:incoming>
166 <bpmn:outgoing>SequenceFlow_11i5vrt</bpmn:outgoing>
167 <bpmn:outgoing>SequenceFlow_1r9zpux</bpmn:outgoing>
168 </bpmn:exclusiveGateway>
169 <bpmn:sequenceFlow id="SequenceFlow_11i5vrt" name="No" sourceRef="ExclusiveGateway_08sinju" targetRef="CallActivity_1600xlj" />
170 <bpmn:callActivity id="CallActivity_12vwqrq" name="Call SDNC Service Create Adapter V2 " calledElement="SDNCAdapterRestV2">
171 <bpmn:extensionElements>
172 <camunda:in source="mso-request-id" target="mso-request-id" />
173 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
174 <camunda:out source="sdncAdapterResponse" target="CRENWKI_createSDNCResponse" />
175 <camunda:out source="SDNCA_ResponseCode" target="CRESDNCRES_sdncCreateReturnCode" />
176 <camunda:out source="SDNCA_SuccessIndicator" target="CRESDNCRES_SuccessIndicator" />
177 <camunda:out source="WorkflowException" target="WorkflowException" />
178 <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
179 </bpmn:extensionElements>
180 <bpmn:incoming>SequenceFlow_1r9zpux</bpmn:incoming>
181 <bpmn:outgoing>SequenceFlow_06wc3j9</bpmn:outgoing>
183 <bpmn:sequenceFlow id="SequenceFlow_1r9zpux" name="Yes" sourceRef="ExclusiveGateway_08sinju" targetRef="CallActivity_12vwqrq">
184 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isAsyncRequired") == "Yes")}</bpmn:conditionExpression>
186 <bpmn:sequenceFlow id="SequenceFlow_06wc3j9" sourceRef="CallActivity_12vwqrq" targetRef="Task_1czbh37" />
188 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
189 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateSDNCNetworkResource">
190 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent">
191 <dc:Bounds x="182" y="111" width="36" height="36" />
193 <dc:Bounds x="159" y="147" width="84" height="27" />
196 <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
197 <di:waypoint x="218" y="129" />
198 <di:waypoint x="274" y="129" />
200 <dc:Bounds x="-87.5" y="108" width="90" height="12" />
203 <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova">
204 <di:waypoint x="883" y="129" />
205 <di:waypoint x="943" y="129" />
207 <dc:Bounds x="391.5" y="108" width="90" height="12" />
210 <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
211 <dc:Bounds x="783" y="89" width="100" height="80" />
213 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
214 <dc:Bounds x="1416" y="317" width="36" height="36" />
216 <dc:Bounds x="1379" y="359" width="85" height="27" />
219 <bpmndi:BPMNShape id="CallActivity_1600xlj_di" bpmnElement="CallActivity_1600xlj">
220 <dc:Bounds x="380" y="295" width="100" height="80" />
222 <bpmndi:BPMNEdge id="SequenceFlow_0w2es8j_di" bpmnElement="SequenceFlow_0w2es8j">
223 <di:waypoint x="374" y="129" />
224 <di:waypoint x="437" y="129" />
226 <dc:Bounds x="74" y="108" width="90" height="12" />
229 <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb">
230 <di:waypoint x="537" y="129" />
231 <di:waypoint x="601" y="129" />
233 <dc:Bounds x="235.5" y="108" width="90" height="12" />
236 <bpmndi:BPMNShape id="ScriptTask_0lc6l7a_di" bpmnElement="Task_1dlrfiw">
237 <dc:Bounds x="274" y="89" width="100" height="80" />
239 <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp">
240 <dc:Bounds x="437" y="89" width="100" height="80" />
242 <bpmndi:BPMNEdge id="SequenceFlow_1mz0vdx_di" bpmnElement="SequenceFlow_1mz0vdx">
243 <di:waypoint x="1043" y="129" />
244 <di:waypoint x="1108" y="129" />
246 <dc:Bounds x="608" y="123" width="90" height="12" />
249 <bpmndi:BPMNEdge id="SequenceFlow_15mvedq_di" bpmnElement="SequenceFlow_15mvedq">
250 <di:waypoint x="1158" y="169" />
251 <di:waypoint x="1158" y="218" />
252 <di:waypoint x="220" y="218" />
253 <di:waypoint x="220" y="335" />
254 <di:waypoint x="265" y="335" />
256 <dc:Bounds x="349" y="197" width="90" height="12" />
259 <bpmndi:BPMNShape id="ScriptTask_1kqf4ge_di" bpmnElement="Task_0tezqd4">
260 <dc:Bounds x="943" y="89" width="100" height="80" />
262 <bpmndi:BPMNShape id="ServiceTask_1q6ssz7_di" bpmnElement="Task_18tomkl">
263 <dc:Bounds x="1108" y="89" width="100" height="80" />
265 <bpmndi:BPMNShape id="ServiceTask_1cm8iwr_di" bpmnElement="ServiceTask_1cm8iwr">
266 <dc:Bounds x="1090" y="295" width="100" height="80" />
268 <bpmndi:BPMNShape id="ScriptTask_1g5zyi6_di" bpmnElement="ScriptTask_1g5zyi6">
269 <dc:Bounds x="1260" y="295" width="100" height="80" />
271 <bpmndi:BPMNShape id="ExclusiveGateway_0cdulnk_di" bpmnElement="ExclusiveGateway_0cdulnk" isMarkerVisible="true">
272 <dc:Bounds x="741" y="310" width="50" height="50" />
274 <dc:Bounds x="735" y="273" width="63" height="27" />
277 <bpmndi:BPMNEdge id="SequenceFlow_1dww8ye_di" bpmnElement="SequenceFlow_1dww8ye">
278 <di:waypoint x="766" y="360" />
279 <di:waypoint x="766" y="471" />
280 <di:waypoint x="810" y="471" />
282 <dc:Bounds x="774" y="391" width="17" height="14" />
285 <bpmndi:BPMNShape id="ScriptTask_0hu4lhm_di" bpmnElement="Task_0uwlr22">
286 <dc:Bounds x="923" y="295" width="100" height="80" />
288 <bpmndi:BPMNEdge id="SequenceFlow_05m2j56_di" bpmnElement="SequenceFlow_05m2j56">
289 <di:waypoint x="791" y="335" />
290 <di:waypoint x="923" y="335" />
292 <dc:Bounds x="850" y="317" width="15" height="14" />
295 <bpmndi:BPMNEdge id="SequenceFlow_05niqbf_di" bpmnElement="SequenceFlow_05niqbf">
296 <di:waypoint x="910" y="471" />
297 <di:waypoint x="973" y="471" />
298 <di:waypoint x="973" y="375" />
300 <bpmndi:BPMNEdge id="SequenceFlow_1cd8ujq_di" bpmnElement="SequenceFlow_1cd8ujq">
301 <di:waypoint x="1023" y="335" />
302 <di:waypoint x="1090" y="335" />
304 <bpmndi:BPMNEdge id="SequenceFlow_0auvfvm_di" bpmnElement="SequenceFlow_0auvfvm">
305 <di:waypoint x="1360" y="335" />
306 <di:waypoint x="1416" y="335" />
308 <bpmndi:BPMNShape id="CallActivity_0aywvn3_di" bpmnElement="Task_0bga3e8">
309 <dc:Bounds x="810" y="431" width="100" height="80" />
311 <bpmndi:BPMNEdge id="SequenceFlow_0svppaq_di" bpmnElement="SequenceFlow_0svppaq">
312 <di:waypoint x="701" y="129" />
313 <di:waypoint x="783" y="129" />
315 <bpmndi:BPMNShape id="ScriptTask_1kzr9lu_di" bpmnElement="Task_1mbzgl7">
316 <dc:Bounds x="601" y="89" width="100" height="80" />
318 <bpmndi:BPMNEdge id="SequenceFlow_0drbyvd_di" bpmnElement="SequenceFlow_0drbyvd">
319 <di:waypoint x="1190" y="335" />
320 <di:waypoint x="1260" y="335" />
322 <bpmndi:BPMNEdge id="SequenceFlow_0u8d8j5_di" bpmnElement="SequenceFlow_0u8d8j5">
323 <di:waypoint x="480" y="335" />
324 <di:waypoint x="555" y="335" />
326 <bpmndi:BPMNEdge id="SequenceFlow_0oqe2oa_di" bpmnElement="SequenceFlow_0oqe2oa">
327 <di:waypoint x="655" y="335" />
328 <di:waypoint x="741" y="335" />
330 <bpmndi:BPMNShape id="ScriptTask_1njkyn8_di" bpmnElement="Task_1czbh37">
331 <dc:Bounds x="555" y="295" width="100" height="80" />
333 <bpmndi:BPMNShape id="ExclusiveGateway_08sinju_di" bpmnElement="ExclusiveGateway_08sinju" isMarkerVisible="true">
334 <dc:Bounds x="265" y="310" width="50" height="50" />
336 <dc:Bounds x="247" y="273" width="89" height="14" />
339 <bpmndi:BPMNEdge id="SequenceFlow_11i5vrt_di" bpmnElement="SequenceFlow_11i5vrt">
340 <di:waypoint x="315" y="335" />
341 <di:waypoint x="380" y="335" />
343 <dc:Bounds x="340" y="317" width="15" height="14" />
346 <bpmndi:BPMNShape id="CallActivity_12vwqrq_di" bpmnElement="CallActivity_12vwqrq">
347 <dc:Bounds x="380" y="431" width="100" height="80" />
349 <bpmndi:BPMNEdge id="SequenceFlow_1r9zpux_di" bpmnElement="SequenceFlow_1r9zpux">
350 <di:waypoint x="290" y="360" />
351 <di:waypoint x="290" y="471" />
352 <di:waypoint x="380" y="471" />
354 <dc:Bounds x="296" y="413" width="18" height="14" />
357 <bpmndi:BPMNEdge id="SequenceFlow_06wc3j9_di" bpmnElement="SequenceFlow_06wc3j9">
358 <di:waypoint x="480" y="471" />
359 <di:waypoint x="605" y="471" />
360 <di:waypoint x="605" y="375" />
363 </bpmndi:BPMNDiagram>