3 "id": "f4d06dda.30316",
7 "x": 167.14285278320312,
8 "y": 61.42856979370117,
17 "id": "7f7c6af3.215f74",
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": 263.38093185424805,
26 "y": 122.38096046447754,
27 "z": "d029d2a.974963",
35 "id": "5a1c2468.67872c",
37 "name": "security-zone-topology-operation-activate",
38 "xml": "<method rpc='security-zone-topology-operation-activate' mode='sync'>\n",
41 "x": 309.2977104187012,
42 "y": 157.61901569366455,
43 "z": "d029d2a.974963",
51 "id": "dfe1dc14.5964",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 217.61904525756836,
59 "y": 300.95235776901245,
60 "z": "d029d2a.974963",
79 "id": "d411dae1.fde8d8",
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": 484.1429634094238,
85 "y": 970.6430778503418,
86 "z": "d029d2a.974963",
90 "id": "3dde4199.1c9e2e",
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": 512.8968772888184,
96 "y": 934.7656240463257,
97 "z": "d029d2a.974963",
101 "id": "66ef7002.abb7e",
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='Active' />\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": 523.8970718383789,
107 "y": 681.4799699783325,
108 "z": "d029d2a.974963",
112 "id": "6861327d.73bc7c",
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": 479.880916595459,
118 "y": 274.76189517974854,
119 "z": "d029d2a.974963",
123 "id": "30cc1a1b.8e88e6",
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": 527.1401786804199,
129 "y": 241.02116107940674,
130 "z": "d029d2a.974963",
134 "id": "add0f6b0.d7fa28",
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": 486.1362724304199,
141 "y": 310.66009426116943,
142 "z": "d029d2a.974963",
148 "id": "5c57b0ca.b25a6",
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": 548.6616058349609,
155 "y": 471.8880615234375,
156 "z": "d029d2a.974963",
165 "id": "b3f7a9f5.747648",
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": 514.207706451416,
172 "y": 370.44579887390137,
173 "z": "d029d2a.974963",
179 "id": "bcc2124f.d53a2",
182 "xml": "<outcome value='success'>\n",
185 "x": 805.9577445983887,
186 "y": 470.69582200050354,
187 "z": "d029d2a.974963",
195 "id": "b6f5439f.b0624",
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": 556.6721649169922,
202 "y": 824.8627014160156,
203 "z": "d029d2a.974963",
213 "id": "f821a3fb.c285e",
216 "xml": "<outcome value='not-found'>\n",
219 "x": 826.9801826477051,
220 "y": 877.8609022125602,
221 "z": "d029d2a.974963",
229 "id": "f757d471.7dc7d8",
232 "xml": "<outcome value='failure'>\n",
235 "x": 817.9802322387695,
236 "y": 846.3609279617667,
237 "z": "d029d2a.974963",
245 "id": "49853f9a.93d68",
248 "xml": "<outcome value='success'>\n",
251 "x": 821.7302703857422,
252 "y": 816.7180328369141,
253 "z": "d029d2a.974963",
261 "id": "630debdb.168f04",
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": 987.7302703857422,
267 "y": 847.1109518036246,
268 "z": "d029d2a.974963",
272 "id": "f78da3bd.a0afd",
274 "name": "block: atomic",
275 "xml": "<block atomic=\"true\">\n",
279 "x": 986.9576988220215,
280 "y": 471.19577145576477,
281 "z": "d029d2a.974963",
290 "id": "a88d57e7.ea7b68",
291 "type": "switchNode",
292 "name": "switch sz length",
293 "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
296 "x": 1232.8149452209473,
297 "y": 505.48153471946716,
298 "z": "d029d2a.974963",
306 "id": "b5653c05.23ac6",
309 "xml": "<outcome value='1'>\n",
312 "x": 1423.8149490356445,
313 "y": 505.4815323352814,
314 "z": "d029d2a.974963",
322 "id": "803be05.23d262",
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": 1823.6720848083496,
328 "y": 506.0529565811157,
329 "z": "d029d2a.974963",
333 "id": "750425c0.df6c0c",
335 "name": "block: atomic",
336 "xml": "<block atomic='true'>\n",
340 "x": 1594.671932220459,
341 "y": 506.0530014038086,
342 "z": "d029d2a.974963",
352 "id": "86d2d032.ec9c7",
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": 1821.6723289489746,
358 "y": 573.481520652771,
359 "z": "d029d2a.974963",
363 "id": "ae3be0c3.a3ad4",
365 "name": "GET security-zone-allotted-resource from mdsal",
368 "x": 573.9576683044434,
369 "y": 435.19576239585876,
370 "z": "d029d2a.974963",
374 "id": "1fd599c8.bea286",
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": 1831.6721076965332,
381 "y": 539.0529546737671,
382 "z": "d029d2a.974963",
391 "id": "ea7abf8a.d6c0e",
393 "name": "outcome Created",
394 "xml": "<outcome value='Created'>\n",
397 "x": 2043.2720642089844,
398 "y": 500.0529546737671,
399 "z": "d029d2a.974963",
407 "id": "88378d84.e1337",
409 "name": "outcome Other",
410 "xml": "<outcome value='Other'>\n",
413 "x": 2068.9864387512207,
414 "y": 535.4815454483032,
415 "z": "d029d2a.974963",
423 "id": "81dbbc42.6cf3b",
425 "name": "Set allotted-resource-identifiers",
428 "x": 529.4814910888672,
429 "y": 525.7672157287598,
430 "z": "d029d2a.974963",
434 "id": "874276d9.71a568",
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": 1312.5292778015137,
440 "y": 471.1958634853363,
441 "z": "d029d2a.974963",
445 "id": "ef3a6e4c.51d76",
447 "name": "Create urls for restapi",
450 "x": 485.10051345825195,
451 "y": 340.0529260635376,
452 "z": "d029d2a.974963",
456 "id": "fb95f526.14ff08",
463 "x": 963.3862380981445,
464 "y": 812.9102020263672,
465 "z": "d029d2a.974963",
471 "id": "369a0f6a.c9ad8",
473 "name": "TO DO: vnf/put parent",
476 "x": 487.38623046875,
477 "y": 713.5767650604248,
478 "z": "d029d2a.974963",
482 "id": "fc0c4385.ee3a5",
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": 471.38623428344727,
489 "y": 642.9101247787476,
490 "z": "d029d2a.974963",
496 "id": "f31fdf96.9d6cc",
499 "xml": "<outcome value='Other'>\n",
502 "x": 805.719539642334,
503 "y": 506.90999484062195,
504 "z": "d029d2a.974963",
512 "id": "19da75c4.bf509a",
514 "name": "block: atomic",
515 "xml": "<block atomic=\"true\">\n",
519 "x": 985.7194900512695,
520 "y": 507.57654547691345,
521 "z": "d029d2a.974963",
527 "id": "56345297.bc34dc",
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": 454.3862762451172,
533 "y": 562.5767364501953,
534 "z": "d029d2a.974963",
538 "id": "c95729c.38426d8",
545 "x": 2257.7425804138184,
546 "y": 501.4285888671875,
547 "z": "d029d2a.974963",
553 "id": "62744ec2.dbf8",
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=\"in-service-path\" />\n",
559 "x": 515.0000152587891,
560 "y": 746.6666326522827,
561 "z": "d029d2a.974963",
570 "id": "5211695c.bb63d8",
573 "xml": "<outcome value='failure'>\n",
576 "x": 770.7619094848633,
577 "y": 729.6191296577454,
578 "z": "d029d2a.974963",
586 "id": "fa37c9f8.eb9288",
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": 937.2857894897461,
592 "y": 741.2382006645203,
593 "z": "d029d2a.974963",
597 "id": "6077137b.90cddc",
600 "xml": "<outcome value='not-found'>\n",
603 "x": 777.8571968078613,
604 "y": 762.381097316742,
605 "z": "d029d2a.974963",