3 "id": "c1cda377.e6968",
\r
9 "z": "decb865e.560cf8",
\r
17 "id": "58dce5c3.307dcc",
\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": 272.3690414428711,
\r
26 "y": 132.73811054229736,
\r
27 "z": "decb865e.560cf8",
\r
35 "id": "9667d3fe.1b151",
\r
37 "name": "method pnf-topology-operation-activate",
\r
38 "xml": "<method rpc='pnf-topology-operation-activate' mode='sync'>\n",
\r
41 "x": 250.1786346435547,
\r
42 "y": 173.166654586792,
\r
43 "z": "decb865e.560cf8",
\r
51 "id": "49fe6017.3a4b5",
\r
53 "name": "pnf-topology-operation-activate",
\r
56 "x": 553.094856262207,
\r
57 "y": 40.08634376525879,
\r
58 "z": "decb865e.560cf8",
\r
62 "id": "490a17e0.43a998",
\r
63 "type": "switchNode",
\r
64 "name": "switch request-action",
\r
65 "xml": "<switch test='`$pnf-topology-operation-input.request-information.request-action`'>\n",
\r
68 "x": 562.273811340332,
\r
69 "y": 271.3571376800537,
\r
70 "z": "decb865e.560cf8",
\r
79 "id": "f5055a1f.74b9c8",
\r
81 "name": "CreatePnfInstance",
\r
82 "xml": "<outcome value='CreatePnfInstance'>\n",
\r
85 "x": 780.6547737121582,
\r
86 "y": 248.50002193450928,
\r
87 "z": "decb865e.560cf8",
\r
95 "id": "707a8e66.03ca9",
\r
98 "xml": "<outcome value='Other'>\n",
\r
101 "x": 744.6547393798828,
\r
102 "y": 294.2143497467041,
\r
103 "z": "decb865e.560cf8",
\r
111 "id": "92dc7585.b94628",
\r
114 "xml": "<block>\n",
\r
118 "x": 967.5119018554688,
\r
119 "y": 248.5000514984131,
\r
120 "z": "decb865e.560cf8",
\r
126 "id": "e8067f7e.1e237",
\r
127 "type": "returnFailure",
\r
128 "name": "return failure",
\r
129 "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=\"If svc-action is 'activate' then request-action must be 'CreatePnfInstance'\" />\n",
\r
131 "x": 984.6547470092773,
\r
132 "y": 294.2143077850342,
\r
133 "z": "decb865e.560cf8",
\r
137 "id": "af3e8af.a61e978",
\r
139 "name": "block : atomic",
\r
140 "xml": "<block atomic=\"true\">",
\r
143 "x": 240.41666412353516,
\r
144 "y": 481.6666622161865,
\r
145 "z": "decb865e.560cf8",
\r
160 "id": "5bf28db1.61b564",
\r
161 "type": "switchNode",
\r
162 "name": "switch pnf_length",
\r
163 "xml": "<switch test='`$service-data.pnfs.pnf_length`'>\n",
\r
166 "x": 548.7499847412109,
\r
167 "y": 340.83336353302,
\r
168 "z": "decb865e.560cf8",
\r
176 "id": "89467472.09d148",
\r
179 "xml": "<outcome value=''>\n",
\r
182 "x": 735.4166641235352,
\r
183 "y": 340.1666612625122,
\r
184 "z": "decb865e.560cf8",
\r
192 "id": "7e601764.405ac8",
\r
193 "type": "returnFailure",
\r
194 "name": "return failure",
\r
195 "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=\"There are no PNFs in MD-SAL\" />\n",
\r
197 "x": 917.0832901000977,
\r
198 "y": 340.1666612625122,
\r
199 "z": "decb865e.560cf8",
\r
203 "id": "5b09bd46.5c0574",
\r
205 "name": "for each pnf",
\r
206 "xml": "<for index='idx' start='0' end='`$service-data.pnfs.pnf_length`' >\n",
\r
209 "x": 530.4166641235352,
\r
210 "y": 389.16668128967285,
\r
211 "z": "decb865e.560cf8",
\r
219 "id": "4e154697.d6fc28",
\r
220 "type": "switchNode",
\r
221 "name": "switch this pnf-id == input pnf-id",
\r
222 "xml": "<switch test='`$service-data.pnfs.pnf[$idx].pnf-id == $pnf-topology-operation-input.pnf-details.pnf-id`'>\n",
\r
225 "x": 785.4167518615723,
\r
226 "y": 387.8333492279053,
\r
227 "z": "decb865e.560cf8",
\r
235 "id": "e7691b1.8180fe8",
\r
236 "type": "outcomeTrue",
\r
238 "xml": "<outcome value='true'>\n",
\r
241 "x": 1023.7500381469727,
\r
242 "y": 386.833327293396,
\r
243 "z": "decb865e.560cf8",
\r
251 "id": "cc442217.f25db",
\r
253 "name": "set pnf-index",
\r
254 "xml": "<set>\n<parameter name='pnf-index' value='`$idx`' />\n",
\r
256 "x": 1192.0832328796387,
\r
257 "y": 386.8333492279053,
\r
258 "z": "decb865e.560cf8",
\r
262 "id": "a8e6104b.8eaab",
\r
263 "type": "switchNode",
\r
264 "name": "switch pnf-index",
\r
265 "xml": "<switch test='`$pnf-index`'>\n",
\r
268 "x": 542.0833282470703,
\r
269 "y": 435.8333511352539,
\r
270 "z": "decb865e.560cf8",
\r
278 "id": "f4e58e32.9147f",
\r
281 "xml": "<outcome value=''>\n",
\r
284 "x": 723.7499465942383,
\r
285 "y": 435.16668128967285,
\r
286 "z": "decb865e.560cf8",
\r
294 "id": "1460f65f.17708a",
\r
295 "type": "returnFailure",
\r
296 "name": "return failure",
\r
297 "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=\"'Could not find PNF ' + $pnf-topology-operation-input.pnf-details.pnf-id + ' in MD-SAL'\" />\n",
\r
299 "x": 890.416633605957,
\r
300 "y": 434.83330726623535,
\r
301 "z": "decb865e.560cf8",
\r
305 "id": "9b19e105.b2e98",
\r
306 "type": "returnSuccess",
\r
307 "name": "return success",
\r
308 "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
310 "x": 530.8332901000977,
\r
311 "y": 788.7500114440918,
\r
312 "z": "decb865e.560cf8",
\r
316 "id": "653d68c6.7140b8",
\r
318 "name": "set pnf-level-oper-status to Created",
\r
319 "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-rpc-action' value='`$pnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-action' value='`$pnf-topology-operation-input.request-information.request-action`' />\n",
\r
321 "x": 594.5633964538574,
\r
322 "y": 739.8371295928955,
\r
323 "z": "decb865e.560cf8",
\r
327 "id": "5ddadd37.238e54",
\r
329 "name": "copy input data",
\r
330 "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.sdnc-request-header.' value='$pnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.request-information.' value='$pnf-topology-operation-input.request-information.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.' value='$pnf-topology-operation-input.service-information.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-details.' value='$pnf-topology-operation-input.pnf-details.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.' value='$pnf-topology-operation-input.pnf-request-input.' />\n\n",
\r
332 "x": 535.4165382385254,
\r
333 "y": 695.8333110809326,
\r
334 "z": "decb865e.560cf8",
\r
338 "id": "cb0c3cab.3e7f9",
\r
339 "type": "returnFailure",
\r
340 "name": "return failure",
\r
341 "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=\"`'No pnf found in AAI with pnf-id = ' + $service-data.pnfs.pnf[$pnf-index].pnf-id`\" />\n",
\r
343 "x": 1053.7500190734863,
\r
344 "y": 581.4999418258667,
\r
345 "z": "decb865e.560cf8",
\r
349 "id": "7ccf7c78.770534",
\r
352 "xml": "<outcome value='failure'>\n",
\r
355 "x": 884.7739181518555,
\r
356 "y": 537.7857532501221,
\r
357 "z": "decb865e.560cf8",
\r
365 "id": "877c806f.dc481",
\r
366 "type": "not-found",
\r
367 "name": "not-found",
\r
368 "xml": "<outcome value='not-found'>\n",
\r
371 "x": 893.3453483581543,
\r
372 "y": 582.0714664459229,
\r
373 "z": "decb865e.560cf8",
\r
381 "id": "bb23b26b.3439a",
\r
382 "type": "returnFailure",
\r
383 "name": "return failure",
\r
384 "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 pnf in AAI\" />\n",
\r
386 "x": 1056.4406127929688,
\r
387 "y": 538.2621469497681,
\r
388 "z": "decb865e.560cf8",
\r
392 "id": "7bd93c51.6f0374",
\r
394 "name": "update generic-pnf prov-status to NVTPROV",
\r
395 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"pnf\"\n key=\"pnf.pnf-id = $service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-topology-identifier-structure.pnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"prov-status\" value=\"NVTPROV\" />\n",
\r
398 "x": 632.0833435058594,
\r
399 "y": 557.5000095367432,
\r
400 "z": "decb865e.560cf8",
\r