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="1.16.2">
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_18l3crb</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="CRESDNCRES_activateSDNCRequest" target="sdncAdapterWorkflowRequest" />
22 <camunda:in source="mso-request-id" target="mso-request-id" />
23 <camunda:in source="mso-service-instance-id" target="mso-service-instance-id" />
24 <camunda:out source="sdncAdapterResponse" target="CRENWKI_activateSDNCResponse" />
25 <camunda:out source="SDNCA_ResponseCode" target="CRESDNCRES_sdncCreateReturnCode" />
26 <camunda:out source="SDNCA_SuccessIndicator" target="CRESDNCRES_SuccessIndicator" />
27 <camunda:out source="WorkflowException" target="WorkflowException" />
28 <camunda:in source="sdncAdapterWorkflowRequest" target="sdncAdapterWorkflowRequest" />
29 </bpmn:extensionElements>
30 <bpmn:incoming>SequenceFlow_15mvedq</bpmn:incoming>
31 <bpmn:outgoing>SequenceFlow_1ex9ov6</bpmn:outgoing>
33 <bpmn:scriptTask id="Task_023hred" name="post SDNC create call">
34 <bpmn:incoming>SequenceFlow_1ex9ov6</bpmn:incoming>
35 <bpmn:outgoing>SequenceFlow_1kzj1j5</bpmn:outgoing>
36 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
37 def dcsi = new CreateSDNCNetworkResource()
38 dcsi.postCreateSDNCCall(execution)</bpmn:script>
40 <bpmn:sequenceFlow id="SequenceFlow_0w2es8j" sourceRef="Task_1dlrfiw" targetRef="Task_13sx2bp" />
41 <bpmn:sequenceFlow id="SequenceFlow_18l3crb" sourceRef="Task_13sx2bp" targetRef="PreprocessIncomingRequest_task" />
42 <bpmn:scriptTask id="Task_1dlrfiw" name="Set the Recipe DesignTimeParam" scriptFormat="groovy">
43 <bpmn:incoming>SequenceFlow_1qo2pln</bpmn:incoming>
44 <bpmn:outgoing>SequenceFlow_0w2es8j</bpmn:outgoing>
45 <bpmn:script>String recipeParamXsdDemo="""{"operationType":"GRE"}"""
46 String recipeParamXsd=""
47 execution.setVariable("recipeParamXsd", recipeParamXsd)</bpmn:script>
49 <bpmn:scriptTask id="Task_13sx2bp" name="Pre Process Request" scriptFormat="groovy">
50 <bpmn:incoming>SequenceFlow_0w2es8j</bpmn:incoming>
51 <bpmn:outgoing>SequenceFlow_18l3crb</bpmn:outgoing>
52 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
53 def dcsi = new CreateSDNCNetworkResource()
54 dcsi.preProcessRequest(execution)</bpmn:script>
56 <bpmn:sequenceFlow id="SequenceFlow_1mz0vdx" sourceRef="Task_0tezqd4" targetRef="Task_18tomkl" />
57 <bpmn:sequenceFlow id="SequenceFlow_15mvedq" sourceRef="Task_18tomkl" targetRef="CallActivity_1600xlj" />
58 <bpmn:scriptTask id="Task_0tezqd4" name="Create progress update parameters before create" scriptFormat="groovy">
59 <bpmn:incoming>SequenceFlow_0khtova</bpmn:incoming>
60 <bpmn:outgoing>SequenceFlow_1mz0vdx</bpmn:outgoing>
61 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
62 def dcsi = new CreateSDNCNetworkResource()
63 dcsi.prepareUpdateBeforeCreateSDNCResource(execution)</bpmn:script>
65 <bpmn:serviceTask id="Task_18tomkl" name="update progress update">
66 <bpmn:extensionElements>
69 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
70 <camunda:inputParameter name="headers">
72 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
73 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
75 </camunda:inputParameter>
76 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
77 <camunda:inputParameter name="method">POST</camunda:inputParameter>
78 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
79 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
80 </camunda:inputOutput>
81 <camunda:connectorId>http-connector</camunda:connectorId>
83 </bpmn:extensionElements>
84 <bpmn:incoming>SequenceFlow_1mz0vdx</bpmn:incoming>
85 <bpmn:outgoing>SequenceFlow_15mvedq</bpmn:outgoing>
87 <bpmn:serviceTask id="ServiceTask_1cm8iwr" name="update progress update">
88 <bpmn:extensionElements>
91 <camunda:inputParameter name="url">${CVFMI_dbAdapterEndpoint}</camunda:inputParameter>
92 <camunda:inputParameter name="headers">
94 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
95 <camunda:entry key="Authorization">Basic QlBFTENsaWVudDpwYXNzd29yZDEk</camunda:entry>
97 </camunda:inputParameter>
98 <camunda:inputParameter name="payload">${CVFMI_updateResOperStatusRequest}</camunda:inputParameter>
99 <camunda:inputParameter name="method">POST</camunda:inputParameter>
100 <camunda:outputParameter name="CVFMI_dbResponseCode">${statusCode}</camunda:outputParameter>
101 <camunda:outputParameter name="CVFMI_dbResponse">${response}</camunda:outputParameter>
102 </camunda:inputOutput>
103 <camunda:connectorId>http-connector</camunda:connectorId>
105 </bpmn:extensionElements>
106 <bpmn:incoming>SequenceFlow_1kzj1j5</bpmn:incoming>
107 <bpmn:outgoing>SequenceFlow_0o7h0ag</bpmn:outgoing>
109 <bpmn:scriptTask id="ScriptTask_1g5zyi6" name="Send Sync Ack Response" scriptFormat="groovy">
110 <bpmn:incoming>SequenceFlow_1cd8ujq</bpmn:incoming>
111 <bpmn:outgoing>SequenceFlow_0auvfvm</bpmn:outgoing>
112 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
113 def csi = new CreateSDNCNetworkResource()
114 csi.sendSyncResponse(execution)</bpmn:script>
116 <bpmn:exclusiveGateway id="ExclusiveGateway_0cdulnk" name="is activate required">
117 <bpmn:incoming>SequenceFlow_0o7h0ag</bpmn:incoming>
118 <bpmn:outgoing>SequenceFlow_1dww8ye</bpmn:outgoing>
119 <bpmn:outgoing>SequenceFlow_05m2j56</bpmn:outgoing>
120 </bpmn:exclusiveGateway>
121 <bpmn:sequenceFlow id="SequenceFlow_1dww8ye" name="yes" sourceRef="ExclusiveGateway_0cdulnk" targetRef="Task_0bga3e8">
122 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isActivateRequired") == "true")}</bpmn:conditionExpression>
124 <bpmn:sequenceFlow id="SequenceFlow_1ex9ov6" sourceRef="CallActivity_1600xlj" targetRef="Task_023hred" />
125 <bpmn:sequenceFlow id="SequenceFlow_1kzj1j5" sourceRef="Task_023hred" targetRef="ServiceTask_1cm8iwr" />
126 <bpmn:sequenceFlow id="SequenceFlow_0o7h0ag" sourceRef="ServiceTask_1cm8iwr" targetRef="ExclusiveGateway_0cdulnk" />
127 <bpmn:scriptTask id="Task_0uwlr22" name="Create progress update parameters After create" scriptFormat="groovy">
128 <bpmn:incoming>SequenceFlow_05m2j56</bpmn:incoming>
129 <bpmn:incoming>SequenceFlow_05niqbf</bpmn:incoming>
130 <bpmn:outgoing>SequenceFlow_1cd8ujq</bpmn:outgoing>
131 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
132 def dcsi = new CreateSDNCNetworkResource()
133 dcsi.prepareUpdateAfterCreateSDNCResource(execution)</bpmn:script>
135 <bpmn:sequenceFlow id="SequenceFlow_05m2j56" name="No" sourceRef="ExclusiveGateway_0cdulnk" targetRef="Task_0uwlr22" />
136 <bpmn:sequenceFlow id="SequenceFlow_05niqbf" sourceRef="Task_0bga3e8" targetRef="Task_0uwlr22" />
137 <bpmn:sequenceFlow id="SequenceFlow_1cd8ujq" sourceRef="Task_0uwlr22" targetRef="ScriptTask_1g5zyi6" />
138 <bpmn:sequenceFlow id="SequenceFlow_0auvfvm" sourceRef="ScriptTask_1g5zyi6" targetRef="EndEvent_1x6k78c" />
139 <bpmn:callActivity id="Task_0bga3e8" name="call Activate SDNC network Resource" calledElement="ActivateSDNCNetworkResource">
140 <bpmn:incoming>SequenceFlow_1dww8ye</bpmn:incoming>
141 <bpmn:outgoing>SequenceFlow_05niqbf</bpmn:outgoing>
144 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
145 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateSDNCNetworkResource">
146 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="createNS_StartEvent">
147 <dc:Bounds x="-111" y="111" width="36" height="36" />
149 <dc:Bounds x="-135" y="147" width="85" height="24" />
152 <bpmndi:BPMNEdge id="SequenceFlow_1qo2pln_di" bpmnElement="SequenceFlow_1qo2pln">
153 <di:waypoint x="-75" y="129" />
154 <di:waypoint x="-10" y="129" />
156 <dc:Bounds x="-87.5" y="108" width="90" height="12" />
159 <bpmndi:BPMNEdge id="SequenceFlow_0khtova_di" bpmnElement="SequenceFlow_0khtova">
160 <di:waypoint x="413" y="129" />
161 <di:waypoint x="460" y="129" />
162 <di:waypoint x="500" y="129" />
164 <dc:Bounds x="391.5" y="108" width="90" height="12" />
167 <bpmndi:BPMNShape id="ScriptTask_03j6ogo_di" bpmnElement="PreprocessIncomingRequest_task">
168 <dc:Bounds x="313" y="89" width="100" height="80" />
170 <bpmndi:BPMNShape id="EndEvent_15pcuuc_di" bpmnElement="EndEvent_1x6k78c">
171 <dc:Bounds x="1046" y="317" width="36" height="36" />
173 <dc:Bounds x="1009" y="359" width="84" height="27" />
176 <bpmndi:BPMNShape id="CallActivity_1600xlj_di" bpmnElement="CallActivity_1600xlj">
177 <dc:Bounds x="-10" y="295" width="100" height="80" />
179 <bpmndi:BPMNShape id="ScriptTask_0gyej62_di" bpmnElement="Task_023hred">
180 <dc:Bounds x="172" y="295" width="100" height="80" />
182 <bpmndi:BPMNEdge id="SequenceFlow_0w2es8j_di" bpmnElement="SequenceFlow_0w2es8j">
183 <di:waypoint x="90" y="129" />
184 <di:waypoint x="148" y="129" />
186 <dc:Bounds x="74" y="108" width="90" height="12" />
189 <bpmndi:BPMNEdge id="SequenceFlow_18l3crb_di" bpmnElement="SequenceFlow_18l3crb">
190 <di:waypoint x="248" y="129" />
191 <di:waypoint x="313" y="129" />
193 <dc:Bounds x="235.5" y="108" width="90" height="12" />
196 <bpmndi:BPMNShape id="ScriptTask_0lc6l7a_di" bpmnElement="Task_1dlrfiw">
197 <dc:Bounds x="-10" y="89" width="100" height="80" />
199 <bpmndi:BPMNShape id="ScriptTask_14l9mlv_di" bpmnElement="Task_13sx2bp">
200 <dc:Bounds x="148" y="89" width="100" height="80" />
202 <bpmndi:BPMNEdge id="SequenceFlow_1mz0vdx_di" bpmnElement="SequenceFlow_1mz0vdx">
203 <di:waypoint x="606" y="129" />
204 <di:waypoint x="638" y="129" />
205 <di:waypoint x="638" y="129" />
206 <di:waypoint x="738" y="129" />
208 <dc:Bounds x="608" y="123" width="90" height="12" />
211 <bpmndi:BPMNEdge id="SequenceFlow_15mvedq_di" bpmnElement="SequenceFlow_15mvedq">
212 <di:waypoint x="788" y="169" />
213 <di:waypoint x="788" y="218" />
214 <di:waypoint x="-89" y="218" />
215 <di:waypoint x="-89" y="335" />
216 <di:waypoint x="-10" y="335" />
218 <dc:Bounds x="349" y="197" width="90" height="12" />
221 <bpmndi:BPMNShape id="ScriptTask_1kqf4ge_di" bpmnElement="Task_0tezqd4">
222 <dc:Bounds x="506" y="89" width="100" height="80" />
224 <bpmndi:BPMNShape id="ServiceTask_1q6ssz7_di" bpmnElement="Task_18tomkl">
225 <dc:Bounds x="738" y="89" width="100" height="80" />
227 <bpmndi:BPMNShape id="ServiceTask_1cm8iwr_di" bpmnElement="ServiceTask_1cm8iwr">
228 <dc:Bounds x="366" y="295" width="100" height="80" />
230 <bpmndi:BPMNShape id="ScriptTask_1g5zyi6_di" bpmnElement="ScriptTask_1g5zyi6">
231 <dc:Bounds x="890" y="295" width="100" height="80" />
233 <bpmndi:BPMNShape id="ExclusiveGateway_0cdulnk_di" bpmnElement="ExclusiveGateway_0cdulnk" isMarkerVisible="true">
234 <dc:Bounds x="539" y="310" width="50" height="50" />
236 <dc:Bounds x="539" y="273" width="49" height="27" />
239 <bpmndi:BPMNEdge id="SequenceFlow_1dww8ye_di" bpmnElement="SequenceFlow_1dww8ye">
240 <di:waypoint x="564" y="360" />
241 <di:waypoint x="564" y="471" />
242 <di:waypoint x="608" y="471" />
244 <dc:Bounds x="571" y="391" width="18" height="14" />
247 <bpmndi:BPMNEdge id="SequenceFlow_1ex9ov6_di" bpmnElement="SequenceFlow_1ex9ov6">
248 <di:waypoint x="90" y="335" />
249 <di:waypoint x="172" y="335" />
251 <bpmndi:BPMNEdge id="SequenceFlow_1kzj1j5_di" bpmnElement="SequenceFlow_1kzj1j5">
252 <di:waypoint x="272" y="335" />
253 <di:waypoint x="366" y="335" />
255 <bpmndi:BPMNEdge id="SequenceFlow_0o7h0ag_di" bpmnElement="SequenceFlow_0o7h0ag">
256 <di:waypoint x="466" y="335" />
257 <di:waypoint x="539" y="335" />
259 <bpmndi:BPMNShape id="ScriptTask_0hu4lhm_di" bpmnElement="Task_0uwlr22">
260 <dc:Bounds x="721" y="295" width="100" height="80" />
262 <bpmndi:BPMNEdge id="SequenceFlow_05m2j56_di" bpmnElement="SequenceFlow_05m2j56">
263 <di:waypoint x="589" y="335" />
264 <di:waypoint x="721" y="335" />
266 <dc:Bounds x="648" y="317" width="14" height="14" />
269 <bpmndi:BPMNEdge id="SequenceFlow_05niqbf_di" bpmnElement="SequenceFlow_05niqbf">
270 <di:waypoint x="708" y="471" />
271 <di:waypoint x="771" y="471" />
272 <di:waypoint x="771" y="375" />
274 <bpmndi:BPMNEdge id="SequenceFlow_1cd8ujq_di" bpmnElement="SequenceFlow_1cd8ujq">
275 <di:waypoint x="821" y="335" />
276 <di:waypoint x="890" y="335" />
278 <bpmndi:BPMNEdge id="SequenceFlow_0auvfvm_di" bpmnElement="SequenceFlow_0auvfvm">
279 <di:waypoint x="990" y="335" />
280 <di:waypoint x="1046" y="335" />
282 <bpmndi:BPMNShape id="CallActivity_0aywvn3_di" bpmnElement="Task_0bga3e8">
283 <dc:Bounds x="608" y="431" width="100" height="80" />
286 </bpmndi:BPMNDiagram>