3 "id": "8506af40.5640e",
\r
8 "y": 152.4136562347412,
\r
9 "z": "e258b0aa.62b08",
\r
17 "id": "8720000f.3622",
\r
18 "type": "service-logic",
\r
19 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
20 "module": "GENERIC-RESOURCE-API",
\r
21 "version": "${project.version}",
\r
23 "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
\r
25 "x": 296.78570556640625,
\r
26 "y": 192.6517677307129,
\r
27 "z": "e258b0aa.62b08",
\r
35 "id": "35837ff.2b64c8",
\r
37 "name": "method pnf-topology-operation-deactivate",
\r
38 "xml": "<method rpc='pnf-topology-operation-deactivate' mode='sync'>\n",
\r
41 "x": 282.92862701416016,
\r
42 "y": 232.4136562347412,
\r
43 "z": "e258b0aa.62b08",
\r
51 "id": "988f9bfd.746e88",
\r
53 "name": "pnf-topology-operation-deactivate",
\r
56 "x": 576.844856262207,
\r
58 "z": "e258b0aa.62b08",
\r
62 "id": "f4c58140.97edc",
\r
63 "type": "switchNode",
\r
64 "name": "switch request-action",
\r
65 "xml": "<switch test='`$pnf-topology-operation-input.request-information.request-action`'>\n",
\r
68 "x": 586.023811340332,
\r
69 "y": 331.2707939147949,
\r
70 "z": "e258b0aa.62b08",
\r
79 "id": "726a3e0d.32be6",
\r
81 "name": "DeletePnfInstance",
\r
82 "xml": "<outcome value='DeletePnfInstance'>\n",
\r
85 "x": 812.7380867004395,
\r
86 "y": 306.74701023101807,
\r
87 "z": "e258b0aa.62b08",
\r
95 "id": "1cb14b3d.d899b5",
\r
98 "xml": "<outcome value='Other'>\n",
\r
101 "x": 776.7380523681641,
\r
102 "y": 352.4613380432129,
\r
103 "z": "e258b0aa.62b08",
\r
111 "id": "a3bbd2.65d8743",
\r
114 "xml": "<block>\n",
\r
118 "x": 999.59521484375,
\r
119 "y": 306.7470397949219,
\r
120 "z": "e258b0aa.62b08",
\r
126 "id": "4344bfcd.bedc2",
\r
127 "type": "returnFailure",
\r
128 "name": "return failure",
\r
129 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"If svc-action is 'deactivate' then request-action must be 'DeletePnfInstance'\" />\n",
\r
131 "x": 1016.7380599975586,
\r
132 "y": 352.46129608154297,
\r
133 "z": "e258b0aa.62b08",
\r
137 "id": "5faec448.e83a7c",
\r
139 "name": "block : atomic",
\r
140 "xml": "<block atomic=\"true\">",
\r
143 "x": 259.16666412353516,
\r
144 "y": 454.0803279876709,
\r
145 "z": "e258b0aa.62b08",
\r
160 "id": "12e91417.a114bc",
\r
161 "type": "switchNode",
\r
162 "name": "switch pnf_length",
\r
163 "xml": "<switch test='`$service-data.pnfs.pnf_length`'>\n",
\r
166 "x": 572.4999847412109,
\r
167 "y": 400.74701976776123,
\r
168 "z": "e258b0aa.62b08",
\r
176 "id": "65a7dfe.70d192",
\r
179 "xml": "<outcome value=''>\n",
\r
182 "x": 759.1666641235352,
\r
183 "y": 400.0803174972534,
\r
184 "z": "e258b0aa.62b08",
\r
192 "id": "72a5bc7.446c444",
\r
193 "type": "returnFailure",
\r
194 "name": "return failure",
\r
195 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"There are no PNFs in MD-SAL\" />\n",
\r
197 "x": 940.8332901000977,
\r
198 "y": 400.0803174972534,
\r
199 "z": "e258b0aa.62b08",
\r
203 "id": "de22c438.12dd88",
\r
205 "name": "for each pnf",
\r
206 "xml": "<for index='idx' start='0' end='`$service-data.pnfs.pnf_length`' >\n",
\r
209 "x": 554.1666641235352,
\r
210 "y": 449.08033752441406,
\r
211 "z": "e258b0aa.62b08",
\r
219 "id": "20aebd62.e37282",
\r
220 "type": "switchNode",
\r
221 "name": "switch this pnf-id == input pnf-id",
\r
222 "xml": "<switch test='`$service-data.pnfs.pnf[$idx].pnf-id == $pnf-topology-operation-input.pnf-details.pnf-id`'>\n",
\r
225 "x": 809.1667518615723,
\r
226 "y": 447.7470054626465,
\r
227 "z": "e258b0aa.62b08",
\r
235 "id": "ea9be52a.cc9c48",
\r
236 "type": "outcomeTrue",
\r
238 "xml": "<outcome value='true'>\n",
\r
241 "x": 1047.5000381469727,
\r
242 "y": 446.7469835281372,
\r
243 "z": "e258b0aa.62b08",
\r
251 "id": "f14f1154.64ba2",
\r
253 "name": "set pnf-index",
\r
254 "xml": "<set>\n<parameter name='pnf-index' value='`$idx`' />\n",
\r
256 "x": 1215.8332328796387,
\r
257 "y": 446.7470054626465,
\r
258 "z": "e258b0aa.62b08",
\r
262 "id": "8ecfe532.9e7b28",
\r
263 "type": "switchNode",
\r
264 "name": "switch pnf-index",
\r
265 "xml": "<switch test='`$pnf-index`'>\n",
\r
268 "x": 565.8333206176758,
\r
269 "y": 495.74700689315796,
\r
270 "z": "e258b0aa.62b08",
\r
278 "id": "9637a20a.14e2a",
\r
281 "xml": "<outcome value=''>\n",
\r
284 "x": 747.4999465942383,
\r
285 "y": 495.08033752441406,
\r
286 "z": "e258b0aa.62b08",
\r
294 "id": "f6ea119e.d9b2b",
\r
295 "type": "returnFailure",
\r
296 "name": "return failure",
\r
297 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"'Could not find PNF with pnf-id = ' + $pnf-topology-operation-input.pnf-details.pnf-id + ' in MD-SAL'\" />\n",
\r
299 "x": 914.166633605957,
\r
300 "y": 494.74696350097656,
\r
301 "z": "e258b0aa.62b08",
\r
305 "id": "abfda14e.5c5ef",
\r
306 "type": "returnSuccess",
\r
307 "name": "return success",
\r
308 "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
\r
310 "x": 559.1666488647461,
\r
311 "y": 715.7469959259033,
\r
312 "z": "e258b0aa.62b08",
\r
316 "id": "33eac0f7.3cb6e",
\r
318 "name": "set pnf-level-oper-status to PendingDelete",
\r
319 "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-rpc-action' value='`$pnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-action' value='`$pnf-topology-operation-input.request-information.request-action`' />\n",
\r
321 "x": 646.646728515625,
\r
322 "y": 671.4174251556396,
\r
323 "z": "e258b0aa.62b08",
\r
327 "id": "3a413756.ae65c8",
\r
329 "name": "copy input data",
\r
330 "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.sdnc-request-header.' value='$pnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.request-information.' value='$pnf-topology-operation-input.request-information.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.' value='$pnf-topology-operation-input.service-information.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-details.' value='$pnf-topology-operation-input.pnf-details.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.' value='$pnf-topology-operation-input.pnf-request-input.' />\n\n",
\r
332 "x": 560.8332290649414,
\r
333 "y": 629.0803050994873,
\r
334 "z": "e258b0aa.62b08",
\r
338 "id": "e04691b0.11c04",
\r
339 "type": "returnFailure",
\r
340 "name": "return failure",
\r
341 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No pnf found in AAI with pnf-id = ' + $service-data.pnfs.pnf[$pnf-index].pnf-id`\" />\n",
\r
343 "x": 1112.499942779541,
\r
344 "y": 581.6666793823242,
\r
345 "z": "e258b0aa.62b08",
\r
349 "id": "cbdddd32.ce5af",
\r
352 "xml": "<outcome value='failure'>\n",
\r
355 "x": 943.5238418579102,
\r
356 "y": 537.9524908065796,
\r
357 "z": "e258b0aa.62b08",
\r
365 "id": "156cb32c.728abd",
\r
366 "type": "not-found",
\r
367 "name": "not-found",
\r
368 "xml": "<outcome value='not-found'>\n",
\r
371 "x": 952.095272064209,
\r
372 "y": 582.2382040023804,
\r
373 "z": "e258b0aa.62b08",
\r
381 "id": "1f3441b2.bf159e",
\r
382 "type": "returnFailure",
\r
383 "name": "return failure",
\r
384 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating pnf in AAI\" />\n",
\r
386 "x": 1115.1905364990234,
\r
387 "y": 538.4288845062256,
\r
388 "z": "e258b0aa.62b08",
\r
392 "id": "391576a4.28d9fa",
\r
394 "name": "update pnf orch-status to PendingDelete",
\r
395 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"pnf\"\n key=\"pnf.pnf-id = $service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-topology-identifier-structure.pnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n",
\r
398 "x": 667.4999084472656,
\r
399 "y": 557.6667184829712,
\r
400 "z": "e258b0aa.62b08",
\r