3 "id": "75921ba5.e84f04",
17 "id": "67179bf.f30bb64",
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": 345.49999237060547,
26 "y": 111.99999287677929,
27 "z": "4c77a098.14bed",
35 "id": "df585947.1b0688",
37 "name": "sotn-network-topology-operation-reoptimize",
38 "xml": "<method rpc='sotn-network-topology-operation-reoptimize' mode='sync'>\n",
43 "z": "4c77a098.14bed",
51 "id": "970cf081.0efd5",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 424.50000762939453,
59 "y": 223.000009059906,
60 "z": "4c77a098.14bed",
73 "id": "32a56503.ce58fa",
75 "name": "set tmp.network.parent-network-id,etc",
76 "xml": "<set>\n<parameter name='tmp.network.network-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='tmp.network.service-instance-id' value='`$network-topology-operation-input.service-information.service-instance-id`' />\n\n\n",
78 "x": 772.0000152587891,
79 "y": 118.00000476837158,
80 "z": "4c77a098.14bed",
84 "id": "21fcd909.4488b6",
86 "name": "set tmp connectivity-id to fetch resource from MDSAL",
89 "x": 841.9603424072266,
90 "y": 83.03180408477783,
91 "z": "4c77a098.14bed",
95 "id": "b0b6546.423eca8",
97 "name": "execute Properties",
98 "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",
101 "x": 715.9999542236328,
102 "y": 201.00000476837158,
103 "z": "4c77a098.14bed",
109 "id": "deead92.2e05028",
111 "name": "Obtain different URL, template location etc",
112 "info": "For saving resource information to MDSAL & for AAI",
114 "x": 811.7380523681641,
115 "y": 166.22217273712158,
116 "z": "4c77a098.14bed",
120 "id": "103fcffc.47e2d",
122 "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
123 "xml": "<for index='pidx' start='0' end='1' >\n",
126 "x": 926.0000991821289,
127 "y": 283.0000705718994,
128 "z": "4c77a098.14bed",
136 "id": "4ff3cba6.0577e4",
138 "name": "block atomic",
139 "xml": "<block atomic=\"true\">\n",
143 "x": 897.8459091186523,
144 "y": 339.224645614624,
145 "z": "4c77a098.14bed",
162 "id": "efb008da.002a38",
164 "name": "set prop.ar.provided-allotted-resource-id",
165 "xml": "<set>\n<parameter name='prop.ar.provided-allotted-resource-id' value='`$service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id`' />\n\n",
167 "x": 1167.8153915405273,
168 "y": 322.02744245529175,
169 "z": "4c77a098.14bed",
173 "id": "56cd0f49.c1db2",
175 "name": "generate tmp.ar-url-connection url",
176 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value='`$prop.ar.provided-allotted-resource-id`'/>\n",
179 "x": 1156.815284729004,
180 "y": 374.5724229812622,
181 "z": "4c77a098.14bed",
187 "id": "1e3aa974.204b57",
189 "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
190 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\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-providedAr\" />\n",
193 "x": 1297.8151321411133,
194 "y": 430.2390090227127,
195 "z": "4c77a098.14bed",
204 "id": "4145e899.11bf48",
207 "xml": "<outcome value='success'>\n",
210 "x": 1673.185203552246,
211 "y": 430.7611274719238,
212 "z": "4c77a098.14bed",
220 "id": "75032056.67182",
223 "xml": "<outcome value='Other'>\n",
226 "x": 1665.0370063781738,
227 "y": 465.8272123336792,
228 "z": "4c77a098.14bed",
236 "id": "a6a898ea.1345e8",
243 "x": 1804.1852989196777,
244 "y": 430.7611885070801,
245 "z": "4c77a098.14bed",
251 "id": "b38b08ff.bf1c28",
252 "type": "returnFailure",
253 "name": "return failure",
254 "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=\"Error: Parent service data not available\" />\n \n",
256 "x": 1811.1857872009277,
257 "y": 465.0946235656738,
258 "z": "4c77a098.14bed",
262 "id": "ea908538.cdcb68",
264 "name": "set model-data to input",
265 "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.onap-model-information.` \" />",
267 "x": 1138.0001907348633,
268 "y": 565.0000371932983,
269 "z": "4c77a098.14bed",
273 "id": "b2b348e8.930c38",
275 "name": "set connection-attachment-ar-identifiers to input",
276 "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.service-information.service-instance-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.parent-service-instance-id` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-type` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.allotted-resource-id` \" />\n",
278 "x": 1213.301872253418,
279 "y": 527.0159864425659,
280 "z": "4c77a098.14bed",
284 "id": "c0e08604.031d68",
286 "name": "set ar-data to input",
287 "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-status.action` \" />\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-status.rpc-action` \" />\n<parameter name='connection-attachment-topology-operation-input.request-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.request-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.service-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.allotted-resource-information.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.` \" />\n<parameter name='connection-attachment-topology-operation-input.connection-attachment-request-input.' value=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.` \" />\n",
289 "x": 1120.1586456298828,
290 "y": 485.8253927230835,
291 "z": "4c77a098.14bed",
295 "id": "4d332c82.ad3af4",
297 "name": "call sotn-attachment-topology-operation-activate",
298 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-activate' mode='sync' >\n",
301 "x": 1214.0001945495605,
302 "y": 740.0000486373901,
303 "z": "4c77a098.14bed",
309 "id": "9da5cea0.60ef2",
311 "name": "call sotn-attachment-topology-operation-deactivate",
312 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-deactivate' mode='sync' >\n",
315 "x": 1223.0002746582031,
316 "y": 649.0000429153442,
317 "z": "4c77a098.14bed",
323 "id": "a382c856.52c0b8",
325 "name": "set request-action and svc-action",
326 "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"activate\" />\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"ActivateSOTNAttachmentInstance\" />\n\n\n",
328 "x": 1169.0002746582031,
329 "y": 694.0000457763672,
330 "z": "4c77a098.14bed",
334 "id": "63bd98b8.1ea0d8",
336 "name": "set request-action and svc-action",
337 "xml": "<set>\n<parameter name='connection-attachment-topology-operation-input.sdnc-request-header.svc-action' value=\"deactivate\" />\n<parameter name='connection-attachment-topology-operation-input.request-information.request-action' value=\"DeactivateSOTNAttachmentInstance\" />\n<parameter name='connection-attachment-topology-operation-input.service-information.global-customer-id' value=\"`$service-data.service-information.global-customer-id` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.subscription-service-type' value=\"`$service-data.service-information.subscription-service-type` \" />\n<parameter name='connection-attachment-topology-operation-input.service-information.subscriber-name' value=\"`$service-data.service-information.subscriber-name` \" />",
339 "x": 1169.000114440918,
340 "y": 608.0000410079956,
341 "z": "4c77a098.14bed",
345 "id": "77dde683.c05af8",
347 "name": "set service-data in tmp var",
348 "xml": "<set>\n<parameter name = 'tmp.service-data.' value=\"`$service-data.`\"/>\n",
350 "x": 734.0001983642578,
351 "y": 237.00009441375732,
352 "z": "4c77a098.14bed",
356 "id": "c64a9e95.de368",
358 "name": "set tmp.service-data to service-data",
359 "xml": "<set>\n<parameter name = 'service-data. ' value = \"`$tmp.service-data.`\"/>\n",
361 "x": 837.0003814697266,
362 "y": 816.0001068115234,
363 "z": "4c77a098.14bed",
367 "id": "f4c6a746.18c888",
368 "type": "returnSuccess",
369 "name": "return success",
370 "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",
372 "x": 758.0001831054688,
373 "y": 860.0000267028809,
374 "z": "4c77a098.14bed",