3 "id": "b6f76cf0.bed9d",
17 "id": "ff3a2e96.20279",
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": 391.2380790710449,
26 "y": 250.95239067077637,
27 "z": "1afa105.0a3f0f",
35 "id": "b753df27.1ee1e",
37 "name": "security-zone-topology-operation-create",
38 "xml": "<method rpc='security-zone-topology-operation-create' mode='sync'>\n",
41 "x": 437.15485763549805,
42 "y": 286.1904458999634,
43 "z": "1afa105.0a3f0f",
51 "id": "3d5f9815.bb72d8",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
58 "x": 345.47619247436523,
59 "y": 429.5237879753113,
60 "z": "1afa105.0a3f0f",
78 "id": "58426f57.d9671",
79 "type": "returnSuccess",
80 "name": "return success",
81 "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",
83 "x": 612.0001106262207,
84 "y": 1099.2145080566406,
85 "z": "1afa105.0a3f0f",
89 "id": "bd924d4b.6ac3d",
91 "name": "set output to api handler",
92 "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",
94 "x": 640.7540245056152,
95 "y": 1063.3370542526245,
96 "z": "1afa105.0a3f0f",
100 "id": "c1426d52.6c3f3",
102 "name": "set allotted-resource-oper-status",
103 "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\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",
105 "x": 651.7542190551758,
106 "y": 810.0514001846313,
107 "z": "1afa105.0a3f0f",
111 "id": "24e1c2bf.f38e3e",
113 "name": "set tmp.ar.self-link",
114 "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",
116 "x": 607.7380638122559,
117 "y": 403.33332538604736,
118 "z": "1afa105.0a3f0f",
122 "id": "87dd9628.4b8e08",
124 "name": "set tmp.ar.allotted-resource-id,etc",
125 "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",
127 "x": 654.9973258972168,
128 "y": 369.59259128570557,
129 "z": "1afa105.0a3f0f",
133 "id": "56c65e21.0c536",
135 "name": "execute Properties",
136 "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",
139 "x": 613.9934196472168,
140 "y": 439.23152446746826,
141 "z": "1afa105.0a3f0f",
147 "id": "ad98be46.853ca",
149 "name": "execute RestApiCallNode - Get AR by id",
150 "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",
153 "x": 676.5187530517578,
154 "y": 600.4594917297363,
155 "z": "1afa105.0a3f0f",
164 "id": "42ea3bdc.05eb14",
166 "name": "generate allotted-resource url",
167 "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",
170 "x": 642.0648536682129,
171 "y": 499.0172290802002,
172 "z": "1afa105.0a3f0f",
178 "id": "26a7a122.8ca35e",
181 "xml": "<outcome value='success'>\n",
184 "x": 933.8148918151855,
185 "y": 599.2672522068024,
186 "z": "1afa105.0a3f0f",
194 "id": "9549d5d.4d0ae28",
196 "name": "execute RestApiCallNode - PUT AR by id",
197 "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",
200 "x": 684.5293121337891,
201 "y": 953.4341316223145,
202 "z": "1afa105.0a3f0f",
212 "id": "c81ee454.030d28",
215 "xml": "<outcome value='not-found'>\n",
218 "x": 954.837329864502,
219 "y": 1006.432332418859,
220 "z": "1afa105.0a3f0f",
228 "id": "6308f6ba.6c5ee8",
231 "xml": "<outcome value='failure'>\n",
234 "x": 945.8373794555664,
235 "y": 974.9323581680655,
236 "z": "1afa105.0a3f0f",
244 "id": "f6e148d1.5bbbc8",
247 "xml": "<outcome value='success'>\n",
250 "x": 949.5874176025391,
251 "y": 945.2894630432129,
252 "z": "1afa105.0a3f0f",
260 "id": "a2f954df.7d6a08",
261 "type": "returnFailure",
262 "name": "return failure",
263 "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",
265 "x": 1115.587417602539,
266 "y": 975.6823820099235,
267 "z": "1afa105.0a3f0f",
271 "id": "ba2d298f.ee9da8",
273 "name": "block: atomic",
274 "xml": "<block atomic=\"true\">\n",
278 "x": 1114.8148460388184,
279 "y": 599.7672016620636,
280 "z": "1afa105.0a3f0f",
289 "id": "f6b8a443.ce37c8",
290 "type": "switchNode",
291 "name": "switch sz length",
292 "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
295 "x": 1360.6720924377441,
296 "y": 634.052964925766,
297 "z": "1afa105.0a3f0f",
305 "id": "c19598d2.19bd88",
308 "xml": "<outcome value='1'>\n",
311 "x": 1551.6720962524414,
312 "y": 634.0529625415802,
313 "z": "1afa105.0a3f0f",
321 "id": "20c1fba5.738554",
323 "name": "set sz-ar from get",
324 "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
326 "x": 1951.5292320251465,
327 "y": 634.6243867874146,
328 "z": "1afa105.0a3f0f",
332 "id": "852776b8.720618",
334 "name": "block: atomic",
335 "xml": "<block atomic='true'>\n",
339 "x": 1722.5290794372559,
340 "y": 634.6244316101074,
341 "z": "1afa105.0a3f0f",
351 "id": "37c4ecf.ab37e14",
353 "name": "set oper-status",
354 "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",
356 "x": 1949.5294761657715,
357 "y": 702.0529508590698,
358 "z": "1afa105.0a3f0f",
362 "id": "a2659467.3372c8",
364 "name": "GET security-zone-allotted-resource from mdsal",
367 "x": 701.8148155212402,
368 "y": 563.7671926021576,
369 "z": "1afa105.0a3f0f",
373 "id": "b8ed9202.62a45",
374 "type": "switchNode",
375 "name": "switch order-status",
376 "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
379 "x": 1959.52925491333,
380 "y": 667.6243848800659,
381 "z": "1afa105.0a3f0f",
390 "id": "994a7d02.f776",
392 "name": "outcome PendingCreate",
393 "xml": "<outcome value='PendingCreate'>\n",
396 "x": 2171.1292114257812,
397 "y": 628.6243848800659,
398 "z": "1afa105.0a3f0f",
406 "id": "c6432d89.74604",
408 "name": "outcome Other",
409 "xml": "<outcome value='Other'>\n",
412 "x": 2196.8435859680176,
413 "y": 664.052975654602,
414 "z": "1afa105.0a3f0f",
422 "id": "242cf515.aebfea",
424 "name": "Set allotted-resource-identifiers",
427 "x": 657.3386383056641,
428 "y": 654.3386459350586,
429 "z": "1afa105.0a3f0f",
433 "id": "7f9a9607.9deb78",
435 "name": "save backup copy of mdsal-ar for rollback",
436 "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
438 "x": 1440.3864250183105,
439 "y": 599.7672936916351,
440 "z": "1afa105.0a3f0f",
444 "id": "1ab1e0dc.601f6f",
446 "name": "Create urls for restapi",
449 "x": 612.9576606750488,
450 "y": 468.6243562698364,
451 "z": "1afa105.0a3f0f",
455 "id": "956bdde7.54a34",
462 "x": 1091.2433853149414,
463 "y": 941.481632232666,
464 "z": "1afa105.0a3f0f",
470 "id": "2ad43a51.cbb826",
472 "name": "TO DO: vnf/put parent",
475 "x": 625.2433776855468,
476 "y": 875.4815540313718,
477 "z": "1afa105.0a3f0f",
481 "id": "7db0224a.ddf40c",
483 "name": "execute getTime",
484 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
487 "x": 599.2433815002441,
488 "y": 771.4815549850464,
489 "z": "1afa105.0a3f0f",
495 "id": "eef0e4d0.faeba8",
498 "xml": "<outcome value='Other'>\n",
501 "x": 933.5766868591309,
502 "y": 635.4814250469208,
503 "z": "1afa105.0a3f0f",
511 "id": "c1d6759.acebc88",
513 "name": "block: atomic",
514 "xml": "<block atomic=\"true\">\n",
518 "x": 1113.5766372680664,
519 "y": 636.1479756832123,
520 "z": "1afa105.0a3f0f",
526 "id": "8fad2375.b2e97",
529 "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.` \" />",
531 "x": 582.2434234619141,
532 "y": 691.1481666564941,
533 "z": "1afa105.0a3f0f",
537 "id": "edf3836c.7ac5a",
544 "x": 2385.5997276306152,
545 "y": 630.0000190734863,
546 "z": "1afa105.0a3f0f",