3 "id": "a7726866.c82328",
8 "y": 120.41365623474121,
9 "z": "3abedd3.792ad22",
17 "id": "3384c619.e1dafa",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
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}'>",
25 "x": 270.28570556640625,
26 "y": 160.6517677307129,
27 "z": "3abedd3.792ad22",
35 "id": "ca099e7c.f45ae",
37 "name": "method site-vnf-topology-operation-delete",
38 "xml": "<method rpc='site-vnf-topology-operation-delete' mode='sync'>\n",
41 "x": 250.42861938476562,
42 "y": 296.4136562347412,
43 "z": "3abedd3.792ad22",
51 "id": "965a63f9.a0196",
53 "name": "site-vnf-topology-operation-delete",
56 "x": 644.3449172973633,
57 "y": 194.00005531311035,
58 "z": "3abedd3.792ad22",
62 "id": "cdd2879.5989078",
64 "name": "block : atomic",
65 "xml": "<block atomic=\"true\">",
68 "x": 271.66666412353516,
69 "y": 422.0803279876709,
70 "z": "3abedd3.792ad22",
86 "id": "26f755dc.77218a",
88 "name": "switch service-data.vnfs.vnf_length",
89 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
92 "x": 733.0947036743164,
93 "y": 355.6748266220093,
94 "z": "3abedd3.792ad22",
103 "id": "41237296.cb603c",
105 "name": "outcome Null",
106 "xml": "<outcome value=''>\n",
109 "x": 997.8170166015625,
110 "y": 338.23044872283936,
111 "z": "3abedd3.792ad22",
119 "id": "37a1ebd3.c0d944",
120 "type": "returnFailure",
121 "name": "return failure",
122 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
124 "x": 1178.8168869018555,
125 "y": 333.23032665252686,
126 "z": "3abedd3.792ad22",
130 "id": "1b9b9bc6.ffabe4",
133 "xml": "<outcome value='Other'>\n",
136 "x": 983.3170166015625,
137 "y": 390.230411529541,
138 "z": "3abedd3.792ad22",
146 "id": "af3a8c66.5e3d1",
148 "name": "block : atomic",
149 "xml": "<block atomic=\"true\">",
152 "x": 1155.316722869873,
153 "y": 390.2304096221924,
154 "z": "3abedd3.792ad22",
163 "id": "8b080a11.ba38d8",
164 "type": "switchNode",
165 "name": "switch tmp.nidx ",
166 "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
169 "x": 1330.31689453125,
170 "y": 409.23033142089844,
171 "z": "3abedd3.792ad22",
179 "id": "52c3ad0c.e6f634",
180 "type": "switchNode",
181 "name": "switch vnf-level-oper-status",
182 "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
185 "x": 703.4837036132812,
186 "y": 430.1192903518677,
187 "z": "3abedd3.792ad22",
196 "id": "80dde12f.593ab",
198 "name": "outcome PendingDelete",
199 "xml": "<outcome value='PendingDelete'>\n",
202 "x": 994.3169708251953,
203 "y": 434.23041343688965,
204 "z": "3abedd3.792ad22",
212 "id": "95f83539.1330d8",
215 "xml": "<outcome value='Other'>\n",
218 "x": 940.3170318603516,
219 "y": 481.2304172515869,
220 "z": "3abedd3.792ad22",
228 "id": "c4d6206d.a0bea",
229 "type": "returnFailure",
230 "name": "return failure",
231 "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=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
233 "x": 1099.8167991638184,
234 "y": 484.2304162979126,
235 "z": "3abedd3.792ad22",
239 "id": "ea9d888e.357438",
240 "type": "switchNode",
241 "name": "switch vnf-id",
242 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
245 "x": 669.3170204162598,
246 "y": 311.23042011260986,
247 "z": "3abedd3.792ad22",
255 "id": "62e62064.0111a",
258 "xml": "<outcome value=''>",
261 "x": 867.3170852661133,
262 "y": 301.230432510376,
263 "z": "3abedd3.792ad22",
271 "id": "583791bd.81172",
272 "type": "returnFailure",
273 "name": "return failure",
274 "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=\"vnf-request-input.vnf-input-parameters.name is a required input\" />\n",
276 "x": 1033.8169708251953,
277 "y": 298.2304267883301,
278 "z": "3abedd3.792ad22",
282 "id": "a4fc2f21.bb9f6",
284 "name": "execute requiredParameters",
285 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
288 "x": 726.8170776367188,
289 "y": 251.23041915893555,
290 "z": "3abedd3.792ad22",
296 "id": "2540b8b2.d6e138",
298 "name": "for nidx..service-data.vnfs.vnf[]",
299 "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
302 "x": 1390.8168983459473,
303 "y": 345.2303276062012,
304 "z": "3abedd3.792ad22",
312 "id": "58bd02b1.41b51c",
313 "type": "switchNode",
314 "name": "switch vnf-id found",
315 "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
318 "x": 1646.8169174194336,
319 "y": 345.2303276062012,
320 "z": "3abedd3.792ad22",
328 "id": "c5d4dadf.96bed8",
329 "type": "outcomeTrue",
331 "xml": "<outcome value='true'>\n",
334 "x": 1823.3169708251953,
335 "y": 348.2303276062012,
336 "z": "3abedd3.792ad22",
344 "id": "fef684cd.0b0aa8",
346 "name": "set tmp.nidx and ctx.vnf-data",
347 "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",
349 "x": 1990.3169860839844,
350 "y": 409.2303276062012,
351 "z": "3abedd3.792ad22",
355 "id": "a5b8b731.dc3498",
356 "type": "returnFailure",
357 "name": "return failure",
358 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
360 "x": 1635.816909790039,
361 "y": 409.23033142089844,
362 "z": "3abedd3.792ad22",
366 "id": "29f38b0a.335fc4",
369 "xml": "<outcome value=''>\n",
372 "x": 1498.316909790039,
373 "y": 409.23033142089844,
374 "z": "3abedd3.792ad22",
382 "id": "6ffb0bce.7eb574",
384 "name": "set vnfId and vnf-object-path",
385 "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
387 "x": 681.3334350585938,
388 "y": 605.747073173523,
389 "z": "3abedd3.792ad22",
393 "id": "ba634d70.518cb",
394 "type": "returnSuccess",
395 "name": "return success",
396 "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",
398 "x": 630.4445953369141,
399 "y": 731.3025035858154,
400 "z": "3abedd3.792ad22",
404 "id": "e52597d4.97d0a8",
406 "name": "set new vnf length",
407 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
409 "x": 661.9660186767578,
410 "y": 503.2179307937622,
411 "z": "3abedd3.792ad22",
415 "id": "6a942976.e989d8",
417 "name": "Remove vnf from ServiceData",
418 "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$tmp.nidx].\" value=\"\"/>\n\n",
420 "x": 697.5902099609375,
421 "y": 547.1858978271484,
422 "z": "3abedd3.792ad22",
426 "id": "e74f18c4.f49f98",
428 "name": "delete site instance configuration in AAI",
429 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='site-resource' \n key='site-resource.id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n",
432 "x": 707.8549957275391,
433 "y": 674.5513019561768,
434 "z": "3abedd3.792ad22",
440 "id": "c271a18f.ad7ae",
442 "name": "block : atomic",
443 "xml": "<block atomic=\"true\">",
446 "x": 1191.6233711242676,
447 "y": 444.55556774139404,
448 "z": "3abedd3.792ad22",