3 "id": "284e27db.b7e5d8",
7 "x": 184.2857208251953,
8 "y": 55.71428680419922,
9 "z": "65a9f6a1.13f7b8",
17 "id": "21dc623f.cc352e",
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": 280.52379989624023,
26 "y": 116.66667747497559,
27 "z": "65a9f6a1.13f7b8",
35 "id": "eacf77e9.837ad8",
37 "name": "security-zone-topology-operation-deactivate",
38 "xml": "<method rpc='security-zone-topology-operation-deactivate' mode='sync'>\n",
41 "x": 326.44057846069336,
42 "y": 151.9047327041626,
43 "z": "65a9f6a1.13f7b8",
51 "id": "509784b4.18024c",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 234.76191329956055,
59 "y": 295.2380747795105,
60 "z": "65a9f6a1.13f7b8",
79 "id": "29d9b6af.98a21a",
80 "type": "returnSuccess",
81 "name": "return success",
82 "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",
84 "x": 501.285831451416,
85 "y": 964.9287948608398,
86 "z": "65a9f6a1.13f7b8",
90 "id": "e886f0a3.d1a26",
92 "name": "set output to api handler",
93 "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
95 "x": 530.0397453308105,
96 "y": 929.0513410568237,
97 "z": "65a9f6a1.13f7b8",
101 "id": "5c2248b0.cff7c8",
103 "name": "set allotted-resource-oper-status",
104 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$security-zone-topology-operation-input.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
106 "x": 541.0399627685547,
107 "y": 675.7657089233398,
108 "z": "65a9f6a1.13f7b8",
112 "id": "32c0247b.626e1c",
114 "name": "set tmp.ar.self-link",
115 "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n",
117 "x": 497.0237846374512,
118 "y": 269.0476121902466,
119 "z": "65a9f6a1.13f7b8",
123 "id": "8e5a9b8c.613e38",
125 "name": "set tmp.ar.allotted-resource-id,etc",
126 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$security-zone-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' />\n\n\n",
128 "x": 544.2830467224121,
129 "y": 235.30687808990479,
130 "z": "65a9f6a1.13f7b8",
134 "id": "de1f88fd.80fcb8",
136 "name": "execute Properties",
137 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
140 "x": 503.2791404724121,
141 "y": 304.9458112716675,
142 "z": "65a9f6a1.13f7b8",
148 "id": "36f9c9aa.1518a6",
150 "name": "execute RestApiCallNode - Get AR by id",
151 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
154 "x": 565.8044738769531,
155 "y": 466.17377853393555,
156 "z": "65a9f6a1.13f7b8",
165 "id": "b9651040.0d909",
167 "name": "generate allotted-resource url",
168 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.sz-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
171 "x": 531.3505744934082,
172 "y": 364.7315158843994,
173 "z": "65a9f6a1.13f7b8",
179 "id": "e544ca46.98ecd8",
182 "xml": "<outcome value='success'>\n",
185 "x": 823.1006126403809,
186 "y": 464.9815390110016,
187 "z": "65a9f6a1.13f7b8",
195 "id": "91736aaa.410ef8",
197 "name": "execute RestApiCallNode - PUT AR by id",
198 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sz.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
201 "x": 573.8150329589844,
202 "y": 819.1484184265137,
203 "z": "65a9f6a1.13f7b8",
213 "id": "c7834590.fcdd68",
216 "xml": "<outcome value='not-found'>\n",
219 "x": 844.1230506896973,
220 "y": 872.1466192230582,
221 "z": "65a9f6a1.13f7b8",
229 "id": "7bc04e80.8eb95",
232 "xml": "<outcome value='failure'>\n",
235 "x": 835.1231002807617,
236 "y": 840.6466449722648,
237 "z": "65a9f6a1.13f7b8",
245 "id": "a95d7c62.d143f",
248 "xml": "<outcome value='success'>\n",
251 "x": 838.8731384277344,
252 "y": 811.0037498474121,
253 "z": "65a9f6a1.13f7b8",
261 "id": "7bf6e2d9.60f5ec",
262 "type": "returnFailure",
263 "name": "return failure",
264 "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 md-sal for security-zone-allotted-resource\" />\n",
266 "x": 1004.8731384277344,
267 "y": 841.3966688141227,
268 "z": "65a9f6a1.13f7b8",
272 "id": "4acc39b.9104dc8",
274 "name": "block: atomic",
275 "xml": "<block atomic=\"true\">\n",
279 "x": 1004.1005668640137,
280 "y": 465.4814884662628,
281 "z": "65a9f6a1.13f7b8",
290 "id": "524c404c.c6e87",
291 "type": "switchNode",
292 "name": "switch sz length",
293 "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
296 "x": 1249.9578132629395,
297 "y": 499.7672517299652,
298 "z": "65a9f6a1.13f7b8",
306 "id": "3ad43779.db66e8",
309 "xml": "<outcome value='1'>\n",
312 "x": 1440.9578170776367,
313 "y": 499.7672493457794,
314 "z": "65a9f6a1.13f7b8",
322 "id": "a70a2794.6d9408",
324 "name": "set sz-ar from get",
325 "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
327 "x": 1840.8149528503418,
328 "y": 500.33867359161377,
329 "z": "65a9f6a1.13f7b8",
333 "id": "4a46e9c4.f9d128",
335 "name": "block: atomic",
336 "xml": "<block atomic='true'>\n",
340 "x": 1611.8148002624512,
341 "y": 500.33871841430664,
342 "z": "65a9f6a1.13f7b8",
352 "id": "b61c60b8.7a4ec",
354 "name": "set oper-status",
355 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
357 "x": 1838.8151969909668,
358 "y": 567.767237663269,
359 "z": "65a9f6a1.13f7b8",
363 "id": "ae8a5e82.01315",
365 "name": "GET security-zone-allotted-resource from mdsal",
368 "x": 591.1005363464355,
369 "y": 429.4814794063568,
370 "z": "65a9f6a1.13f7b8",
374 "id": "66e00065.03ca4",
375 "type": "switchNode",
376 "name": "switch order-status",
377 "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
380 "x": 1848.8149757385254,
381 "y": 533.3386716842651,
382 "z": "65a9f6a1.13f7b8",
391 "id": "65fba3ae.02978c",
393 "name": "outcome Created",
394 "xml": "<outcome value='Created'>\n",
397 "x": 2060.4149322509766,
398 "y": 494.33867168426514,
399 "z": "65a9f6a1.13f7b8",
407 "id": "709a0f22.b2207",
409 "name": "outcome Other",
410 "xml": "<outcome value='Other'>\n",
413 "x": 2086.129306793213,
414 "y": 529.7672624588013,
415 "z": "65a9f6a1.13f7b8",
423 "id": "c232dfd.abca22",
425 "name": "Set allotted-resource-identifiers",
428 "x": 546.6243591308594,
429 "y": 520.0529327392578,
430 "z": "65a9f6a1.13f7b8",
434 "id": "712583b3.96568c",
436 "name": "save backup copy of mdsal-ar for rollback",
437 "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
439 "x": 1329.6721458435059,
440 "y": 465.48158049583435,
441 "z": "65a9f6a1.13f7b8",
445 "id": "dd477519.74e698",
447 "name": "Create urls for restapi",
450 "x": 502.24338150024414,
451 "y": 334.33864307403564,
452 "z": "65a9f6a1.13f7b8",
456 "id": "50148bc2.55e4c4",
463 "x": 980.5291061401367,
464 "y": 807.1959190368652,
465 "z": "65a9f6a1.13f7b8",
471 "id": "f27feeff.247c1",
473 "name": "TO DO: vnf/put parent",
476 "x": 508.81481170654297,
477 "y": 712.6244564056396,
478 "z": "65a9f6a1.13f7b8",
482 "id": "fe89c5c7.b078a8",
484 "name": "execute getTime",
485 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
488 "x": 488.52910232543945,
489 "y": 637.1958417892456,
490 "z": "65a9f6a1.13f7b8",
496 "id": "e932d850.0e3608",
499 "xml": "<outcome value='Other'>\n",
502 "x": 822.8624076843262,
503 "y": 501.19571185112,
504 "z": "65a9f6a1.13f7b8",
512 "id": "44f65ab4.13daa4",
514 "name": "block: atomic",
515 "xml": "<block atomic=\"true\">\n",
519 "x": 1002.8623580932617,
520 "y": 501.8622624874115,
521 "z": "65a9f6a1.13f7b8",
527 "id": "f23600d4.282d8",
530 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='sz-ar.allotted-resource-status.action' value=\"`$security-zone-topology-operation-input.request-information.request-action` \" />\n<parameter name='sz-ar.allotted-resource-status.rpc-name' value=\"security-zone-topology-operation\" />\n<parameter name='sz-ar.allotted-resource-status.rpc-action' value=\"`$security-zone-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$security-zone-topology-operation-input.request-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$security-zone-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$security-zone-topology-operation-input.service-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$security-zone-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.' value=\"`$security-zone-topology-operation-input.security-zone-request-input.` \" />",
532 "x": 471.5291442871094,
533 "y": 556.8624534606934,
534 "z": "65a9f6a1.13f7b8",
538 "id": "389e0eec.32fdf2",
545 "x": 2274.8854484558105,
546 "y": 495.71430587768555,
547 "z": "65a9f6a1.13f7b8",
553 "id": "3eb0bb84.9332a4",
555 "name": "update AAI allotted-resource",
556 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n",
559 "x": 535.7142944335938,
560 "y": 754.2857055664062,
561 "z": "65a9f6a1.13f7b8",
570 "id": "a77d093e.701398",
573 "xml": "<outcome value='failure'>\n",
576 "x": 791.476203918457,
577 "y": 737.2382092475891,
578 "z": "65a9f6a1.13f7b8",
586 "id": "dce668a3.1b94f8",
587 "type": "returnFailure",
588 "name": "return failure",
589 "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=\"AAI failed\" />\n",
591 "x": 958.0000839233398,
592 "y": 748.857280254364,
593 "z": "65a9f6a1.13f7b8",
597 "id": "a0e58ee0.5d11b",
600 "xml": "<outcome value='not-found'>\n",
603 "x": 798.5714912414551,
604 "y": 770.0001769065857,
605 "z": "65a9f6a1.13f7b8",