3 "id": "f8944be3.096ab8",
\r
9 "z": "9dcfec88.5f292",
\r
17 "id": "68420034.5c6d98",
\r
18 "type": "service-logic",
\r
19 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
20 "module": "GENERIC-RESOURCE-API",
\r
21 "version": "${project.version}",
\r
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}'>",
\r
25 "x": 242.2856903076172,
\r
26 "y": 105.23810863494873,
\r
27 "z": "9dcfec88.5f292",
\r
35 "id": "9e33642a.9ab6b8",
\r
37 "name": "method sotn-vnf-topology-operation-underlay-activate",
\r
38 "xml": "<method rpc='sotn-vnf-topology-operation-underlay-activate' mode='sync'>\n",
\r
41 "x": 245.42861938476562,
\r
42 "y": 190.00003242492676,
\r
43 "z": "9dcfec88.5f292",
\r
51 "id": "f3fc4610.118298",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 395.238037109375,
\r
58 "y": 319.6666564941406,
\r
59 "z": "9dcfec88.5f292",
\r
73 "id": "321f78ca.ccdc38",
\r
75 "name": "set vnf-level-oper-status to Active",
\r
76 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",
\r
78 "x": 738.3849563598633,
\r
79 "y": 556.6705458434299,
\r
80 "z": "9dcfec88.5f292",
\r
84 "id": "47a0d8c5.66ef38",
\r
85 "type": "returnSuccess",
\r
86 "name": "return success",
\r
87 "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",
\r
89 "x": 658.571647644043,
\r
90 "y": 682.5970833571628,
\r
91 "z": "9dcfec88.5f292",
\r
95 "id": "30a9bb6d.ac3de4",
\r
97 "name": "set vnf-index and vnf-object-path",
\r
98 "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/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
\r
100 "x": 744.5716018676758,
\r
101 "y": 504.5968001158908,
\r
102 "z": "9dcfec88.5f292",
\r
106 "id": "470fa21f.c90dac",
\r
107 "type": "switchNode",
\r
108 "name": "switch service-data.vnfs.vnf_length",
\r
109 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
114 "z": "9dcfec88.5f292",
\r
124 "id": "946699e9.3b5b1",
\r
127 "xml": "<outcome value='0'>\n",
\r
130 "x": 1145.968994140625,
\r
132 "z": "9dcfec88.5f292",
\r
140 "id": "5b4e6761.75d918",
\r
141 "type": "returnFailure",
\r
142 "name": "return failure",
\r
143 "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",
\r
145 "x": 1300.7778816223145,
\r
146 "y": 243.889018535614,
\r
147 "z": "9dcfec88.5f292",
\r
151 "id": "bde1ee44.7683d",
\r
154 "xml": "<outcome value=''>\n",
\r
157 "x": 1139.0001335144043,
\r
158 "y": 264.00007152557373,
\r
159 "z": "9dcfec88.5f292",
\r
167 "id": "2e788e91.c6a1c2",
\r
170 "xml": "<outcome value='Other'>\n",
\r
173 "x": 1132.0005416870117,
\r
174 "y": 297.000075340271,
\r
175 "z": "9dcfec88.5f292",
\r
183 "id": "ebf17a44.2210a8",
\r
185 "name": "block : atomic",
\r
186 "xml": "<block atomic=\"true\">",
\r
189 "x": 1279.2700843811035,
\r
190 "y": 297.5547204017639,
\r
191 "z": "9dcfec88.5f292",
\r
199 "id": "e3ab2fd7.ebbf08",
\r
201 "name": "for vidx..service-data.vnfs.vnf_length[]",
\r
202 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
205 "x": 1525.2862014770508,
\r
206 "y": 304.42864084243774,
\r
207 "z": "9dcfec88.5f292",
\r
215 "id": "18572251.98d83e",
\r
218 "xml": "<block>\n",
\r
222 "x": 1744.6358337402344,
\r
223 "y": 303.96872091293335,
\r
224 "z": "9dcfec88.5f292",
\r
232 "id": "4a39ea58.7fb184",
\r
233 "type": "switchNode",
\r
234 "name": "switch vnfid found",
\r
235 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
\r
238 "x": 1898.715431213379,
\r
239 "y": 303.67880296707153,
\r
240 "z": "9dcfec88.5f292",
\r
248 "id": "669b0d11.8a0824",
\r
249 "type": "outcomeTrue",
\r
251 "xml": "<outcome value='true'>\n",
\r
254 "x": 2109.6675758361816,
\r
255 "y": 306.571494102478,
\r
256 "z": "9dcfec88.5f292",
\r
264 "id": "e89a8750.1f8e18",
\r
266 "name": "set tmp.vidx and ctx.vnf-data",
\r
267 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
\r
269 "x": 2319.199951171875,
\r
270 "y": 308.32159423828125,
\r
271 "z": "9dcfec88.5f292",
\r
275 "id": "a9e79f17.0260f",
\r
277 "name": "update AnAI - vnf-instance.orchestration-status",
\r
278 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
\r
281 "x": 763.9999618530273,
\r
282 "y": 623.0103714736179,
\r
283 "z": "9dcfec88.5f292",
\r
289 "id": "79db1524.d2b97c",
\r
291 "name": "copy input data to service data",
\r
292 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",
\r
294 "x": 743.0000762939453,
\r
295 "y": 454.01033284980804,
\r
296 "z": "9dcfec88.5f292",
\r
300 "id": "47e6b5ed.41cf1c",
\r
301 "type": "switchNode",
\r
302 "name": "switch vnf-level-oper-status",
\r
303 "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
\r
306 "x": 729.7499389648438,
\r
307 "y": 359.00390270072967,
\r
308 "z": "9dcfec88.5f292",
\r
317 "id": "3e2d00ea.214d9",
\r
319 "name": "outcome Created",
\r
320 "xml": "<outcome value='Created'>\n",
\r
323 "x": 1109.5833320617676,
\r
324 "y": 364.1149909766391,
\r
325 "z": "9dcfec88.5f292",
\r
333 "id": "ed7ee56e.298fc8",
\r
336 "xml": "<outcome value='Other'>\n",
\r
339 "x": 1087.583351135254,
\r
340 "y": 414.1150024207309,
\r
341 "z": "9dcfec88.5f292",
\r
349 "id": "4a64950b.2e4a84",
\r
350 "type": "returnFailure",
\r
351 "name": "return failure",
\r
352 "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`\" />",
\r
354 "x": 1247.0831184387207,
\r
355 "y": 417.1150014670566,
\r
356 "z": "9dcfec88.5f292",
\r
360 "id": "34b25335.603514",
\r
362 "name": "block : atomic",
\r
363 "xml": "<block atomic=\"true\">",
\r
366 "x": 1319.889705657959,
\r
367 "y": 375.44016626197845,
\r
368 "z": "9dcfec88.5f292",
\r