d2164e725bf4a4d3a587761477f31eb9976276ca
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-pnf-ra-assignment.json
1 [\r
2     {\r
3         "id": "a5295fa5.2cebc",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 105,\r
8         "y": 31,\r
9         "z": "b3572fdc.57a7c",\r
10         "wires": [\r
11             [\r
12                 "91ec004b.fde43"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "91ec004b.fde43",\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
22         "comments": "",\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
24         "outputs": 1,\r
25         "x": 381,\r
26         "y": 32,\r
27         "z": "b3572fdc.57a7c",\r
28         "wires": [\r
29             [\r
30                 "8873b97.77d8048"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "8873b97.77d8048",\r
36         "type": "method",\r
37         "name": "self-serve-pnf-ra-assignment",\r
38         "xml": "<method rpc='self-serve-pnf-ra-assignment' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 237,\r
42         "y": 82,\r
43         "z": "b3572fdc.57a7c",\r
44         "wires": [\r
45             [\r
46                 "871f97d8.236f68"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "871f97d8.236f68",\r
52         "type": "block",\r
53         "name": "block atomic",\r
54         "xml": "<block atomic=\"true\">\n",\r
55         "atomic": "false",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 200.16664123535156,\r
59         "y": 133.3333339691162,\r
60         "z": "b3572fdc.57a7c",\r
61         "wires": [\r
62             [\r
63                 "1d7f791b.bbebb7",\r
64                 "809ef1f2.9d13a",\r
65                 "dfab7c99.217af",\r
66                 "e9a6ef1b.98436",\r
67                 "36dea652.27073a",\r
68                 "937d5326.69965",\r
69                 "e221b302.f0199",\r
70                 "864aa7c9.1f7118",\r
71                 "2ad3fcee.93df44",\r
72                 "3461757d.afec6a",\r
73                 "b7b3409c.b7131",\r
74                 "cb318b66.0796c8",\r
75                 "3d6976b6.27f80a",\r
76                 "94bf3501.be3848",\r
77                 "a566a00c.4994a"\r
78             ]\r
79         ]\r
80     },\r
81     {\r
82         "id": "809ef1f2.9d13a",\r
83         "type": "set",\r
84         "name": "set",\r
85         "xml": "<set>\n   <parameter name=\"request-id\" value=\"`$tmp.return.generate.pnf-se-serv-uuid`\"/>\n   <parameter name=\"resource-type\" value=\"`$pnf-topology-operation-input.pnf-details.pnf-type`\" />  \n   <parameter name=\"resource-id\" value=\"`$pnf-topology-operation-input.pnf-details.pnf-id`\" />   \n   <parameter name=\"action-name\" value=\"resource-assignment\"/> \n   <parameter name=\"responsePrefix\" value=\"raAssign\" />\n",\r
86         "comments": "",\r
87         "x": 385.9166603088379,\r
88         "y": 178.08333015441895,\r
89         "z": "b3572fdc.57a7c",\r
90         "wires": []\r
91     },\r
92     {\r
93         "id": "961e1d7.52131e",\r
94         "type": "get-resource",\r
95         "name": "get-resource VF_MODEL",\r
96         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODEL WHERE customization_uuid = $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid'\n  pfx='db1.vf-model'>\n  \n\n",\r
97         "comments": "",\r
98         "outputs": 1,\r
99         "x": 924.8094635009766,\r
100         "y": 569.6189861297607,\r
101         "z": "b3572fdc.57a7c",\r
102         "wires": [\r
103             [\r
104                 "d57245a1.3d8f88",\r
105                 "b3bcf1b9.7736d",\r
106                 "8b4b4f46.8310f"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "d57245a1.3d8f88",\r
112         "type": "failure",\r
113         "name": "failure",\r
114         "xml": "<outcome value='failure'>\n",\r
115         "comments": "",\r
116         "outputs": 1,\r
117         "x": 1169.8095626831055,\r
118         "y": 518.904709815979,\r
119         "z": "b3572fdc.57a7c",\r
120         "wires": [\r
121             [\r
122                 "e952f42f.db9b58"\r
123             ]\r
124         ]\r
125     },\r
126     {\r
127         "id": "e952f42f.db9b58",\r
128         "type": "returnFailure",\r
129         "name": "return failure",\r
130         "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 reading VF_MODEL table\" />\n",\r
131         "comments": "",\r
132         "x": 1342.8095626831055,\r
133         "y": 517.904709815979,\r
134         "z": "b3572fdc.57a7c",\r
135         "wires": []\r
136     },\r
137     {\r
138         "id": "d8999389.3a4ec",\r
139         "type": "set",\r
140         "name": "set tmp.sdnc-model-name, tmp.sdnc-model-version, tmp.sdnc-artifact-name",\r
141         "xml": "<set>\n<parameter name='tmp.sdnc-model-name' value='`$db1.vf-model.sdnc-model-name`' />\n<parameter name='tmp.sdnc-model-version' value='`$db1.vf-model.sdnc-model-version`' />\n<parameter name='tmp.sdnc-artifact-name' value='`$db1.vf-model.sdnc-artifact-name`' />\n\n\n\n\n",\r
142         "comments": "",\r
143         "x": 1545.2380638122559,\r
144         "y": 619.047513961792,\r
145         "z": "b3572fdc.57a7c",\r
146         "wires": []\r
147     },\r
148     {\r
149         "id": "a316c173.c965a",\r
150         "type": "returnFailure",\r
151         "name": "return failure",\r
152         "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 VF_MODEL found where customization_uuid = ' + $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid`\" />\n",\r
153         "comments": "",\r
154         "x": 1344.8095626831055,\r
155         "y": 566.904709815979,\r
156         "z": "b3572fdc.57a7c",\r
157         "wires": []\r
158     },\r
159     {\r
160         "id": "36dea652.27073a",\r
161         "type": "switchNode",\r
162         "name": "switch: model info == NULL",\r
163         "xml": "<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.sdnc-artifact-name == ''`\">\n",\r
164         "comments": "",\r
165         "outputs": 1,\r
166         "x": 445.80946350097656,\r
167         "y": 570.6189861297607,\r
168         "z": "b3572fdc.57a7c",\r
169         "wires": [\r
170             [\r
171                 "ea42d6d6.3100d8"\r
172             ]\r
173         ]\r
174     },\r
175     {\r
176         "id": "b3bcf1b9.7736d",\r
177         "type": "not-found",\r
178         "name": "not-found",\r
179         "xml": "<outcome value='not-found'>\n",\r
180         "comments": "",\r
181         "outputs": 1,\r
182         "x": 1175.8095626831055,\r
183         "y": 567.904709815979,\r
184         "z": "b3572fdc.57a7c",\r
185         "wires": [\r
186             [\r
187                 "a316c173.c965a"\r
188             ]\r
189         ]\r
190     },\r
191     {\r
192         "id": "ea42d6d6.3100d8",\r
193         "type": "outcome",\r
194         "name": "true",\r
195         "xml": "<outcome value='true'>",\r
196         "comments": "",\r
197         "outputs": 1,\r
198         "x": 694.8094635009766,\r
199         "y": 570.6189861297607,\r
200         "z": "b3572fdc.57a7c",\r
201         "wires": [\r
202             [\r
203                 "961e1d7.52131e"\r
204             ]\r
205         ]\r
206     },\r
207     {\r
208         "id": "e9a6ef1b.98436",\r
209         "type": "for",\r
210         "name": "for pnf-topology-operation-input",\r
211         "xml": "<for silentFailure='true' index='i' start='0' end='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param_length`' >",\r
212         "comments": "",\r
213         "outputs": 1,\r
214         "x": 461.66664123535156,\r
215         "y": 370.3333339691162,\r
216         "z": "b3572fdc.57a7c",\r
217         "wires": [\r
218             [\r
219                 "13eb53e4.18313c"\r
220             ]\r
221         ]\r
222     },\r
223     {\r
224         "id": "13eb53e4.18313c",\r
225         "type": "block",\r
226         "name": "block atomic",\r
227         "xml": "<block atomic=\"true\">",\r
228         "atomic": "false",\r
229         "comments": "",\r
230         "outputs": 1,\r
231         "x": 683.6666412353516,\r
232         "y": 369.3333339691162,\r
233         "z": "b3572fdc.57a7c",\r
234         "wires": [\r
235             [\r
236                 "b51d5848.247668"\r
237             ]\r
238         ]\r
239     },\r
240     {\r
241         "id": "9d71fcdf.711af",\r
242         "type": "set",\r
243         "name": "set tmp.sdnc-model-name",\r
244         "xml": "<set>\n<parameter name='tmp.sdnc-model-name' value='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].value`' />\n",\r
245         "comments": "",\r
246         "x": 1334.6666412353516,\r
247         "y": 302.3333339691162,\r
248         "z": "b3572fdc.57a7c",\r
249         "wires": []\r
250     },\r
251     {\r
252         "id": "6bfa0dba.32b084",\r
253         "type": "outcome",\r
254         "name": "sdnc_model_name",\r
255         "xml": "<outcome value='sdnc_model_name'>\n",\r
256         "comments": "",\r
257         "outputs": 1,\r
258         "x": 1080.6666412353516,\r
259         "y": 302.3333339691162,\r
260         "z": "b3572fdc.57a7c",\r
261         "wires": [\r
262             [\r
263                 "9d71fcdf.711af"\r
264             ]\r
265         ]\r
266     },\r
267     {\r
268         "id": "b51d5848.247668",\r
269         "type": "switchNode",\r
270         "name": "switch",\r
271         "xml": "<switch test='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].name`'>\n\n",\r
272         "comments": "",\r
273         "outputs": 1,\r
274         "x": 842.6666412353516,\r
275         "y": 369.3333339691162,\r
276         "z": "b3572fdc.57a7c",\r
277         "wires": [\r
278             [\r
279                 "6bfa0dba.32b084",\r
280                 "51d582d0.51e8dc",\r
281                 "3cc10349.41b40c",\r
282                 "3f7b410a.8138ce"\r
283             ]\r
284         ]\r
285     },\r
286     {\r
287         "id": "51d582d0.51e8dc",\r
288         "type": "outcome",\r
289         "name": "sdnc_model_version",\r
290         "xml": "<outcome value='sdnc_model_version'>\n",\r
291         "comments": "",\r
292         "outputs": 1,\r
293         "x": 1083.6666412353516,\r
294         "y": 348.3333339691162,\r
295         "z": "b3572fdc.57a7c",\r
296         "wires": [\r
297             [\r
298                 "86fc17c4.fccda8"\r
299             ]\r
300         ]\r
301     },\r
302     {\r
303         "id": "3cc10349.41b40c",\r
304         "type": "outcome",\r
305         "name": "sdnc_artifact_name",\r
306         "xml": "<outcome value='sdnc_artifact_name'>\n",\r
307         "comments": "",\r
308         "outputs": 1,\r
309         "x": 1082.6666412353516,\r
310         "y": 397.3333339691162,\r
311         "z": "b3572fdc.57a7c",\r
312         "wires": [\r
313             [\r
314                 "259cc042.9d044"\r
315             ]\r
316         ]\r
317     },\r
318     {\r
319         "id": "86fc17c4.fccda8",\r
320         "type": "set",\r
321         "name": "set tmp.sdnc-model-version",\r
322         "xml": "<set>\n<parameter name='tmp.sdnc-model-version' value='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].value`' />\n\n",\r
323         "comments": "",\r
324         "x": 1338.6666412353516,\r
325         "y": 348.3333339691162,\r
326         "z": "b3572fdc.57a7c",\r
327         "wires": []\r
328     },\r
329     {\r
330         "id": "259cc042.9d044",\r
331         "type": "set",\r
332         "name": "set tmp.sdnc-artifact-name",\r
333         "xml": "<set>\n<parameter name='tmp.sdnc-artifact-name' value='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].value`' />\n\n",\r
334         "comments": "",\r
335         "x": 1334.6666412353516,\r
336         "y": 397.3333339691162,\r
337         "z": "b3572fdc.57a7c",\r
338         "wires": []\r
339     },\r
340     {\r
341         "id": "11646aa2.a63495",\r
342         "type": "set",\r
343         "name": "set name-value other JsonString",\r
344         "xml": "<set>\n<parameter name=\"tmp.config-name-value-other-payload\" value=\"`$tmp.config-name-value-other-payload + '&quot;' + $pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].name + '&quot;:&quot;' + $pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].value + '&quot;,'`\"/>\n\n",\r
345         "comments": "",\r
346         "x": 1251.916648864746,\r
347         "y": 448.83335041999817,\r
348         "z": "b3572fdc.57a7c",\r
349         "wires": []\r
350     },\r
351     {\r
352         "id": "3f7b410a.8138ce",\r
353         "type": "outcome",\r
354         "name": "other",\r
355         "xml": "<outcome value='Other'>\n",\r
356         "comments": "",\r
357         "outputs": 1,\r
358         "x": 1042.666648864746,\r
359         "y": 446.9047546386719,\r
360         "z": "b3572fdc.57a7c",\r
361         "wires": [\r
362             [\r
363                 "11646aa2.a63495"\r
364             ]\r
365         ]\r
366     },\r
367     {\r
368         "id": "937d5326.69965",\r
369         "type": "set",\r
370         "name": "set configAssignment JsonString",\r
371         "xml": "<set>\n<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '&quot;service-instance-id&quot;:&quot;' + $pnf-topology-operation-input.service-information.service-instance-id   + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '&quot;pnf-model-customization-uuid&quot;:&quot;' + $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '&quot;pnf-id&quot;:&quot;' + $pnf-topology-operation-input.pnf-details.pnf-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '&quot;aic-cloud-region&quot;:&quot;' + $pnf-topology-operation-input.pnf-request-input.aic-cloud-region + '&quot;'`\"/>\n<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload7 + '}'`\" />",\r
372         "comments": "",\r
373         "x": 455.66664123535156,\r
374         "y": 689.3333339691162,\r
375         "z": "b3572fdc.57a7c",\r
376         "wires": []\r
377     },\r
378     {\r
379         "id": "e221b302.f0199",\r
380         "type": "execute",\r
381         "name": "execute BlueprintProcessingClient",\r
382         "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.grpc.cds.BlueprintProcessingClient' method='sendRequest'>\n <parameter name='blueprint_name' value='`$tmp.sdnc-model-name`' />\n <parameter name='blueprint_version' value='`$tmp.sdnc-model-version`' />\n <parameter name='action' value='`$action-name`' />\n <parameter name='mode' value='sync' />\n <parameter name='force' value='false' />\n <parameter name='ttl' value='0' />\n <parameter name='prefix' value='`$responsePrefix`' />\n <parameter name='payload' value=\"`'{\n  &quot;resource-assignment-request&quot;: {\n    &quot;template-prefix&quot;: [\n      &quot;' + $tmp.sdnc-artifact-name + '&quot;\n    ],\n    &quot;resource-assignment-properties&quot;: \n        ' + $tmp.json-payload + '\n  }\n}'`\"/>",\r
383         "comments": "",\r
384         "outputs": 1,\r
385         "x": 463.33331298828125,\r
386         "y": 844,\r
387         "z": "b3572fdc.57a7c",\r
388         "wires": [\r
389             [\r
390                 "ca21c8f3.691628",\r
391                 "1cca5644.52e2da"\r
392             ]\r
393         ]\r
394     },\r
395     {\r
396         "id": "ca21c8f3.691628",\r
397         "type": "failure",\r
398         "name": "failure",\r
399         "xml": "<outcome value='failure'>\n",\r
400         "comments": "",\r
401         "outputs": 1,\r
402         "x": 703.3333129882812,\r
403         "y": 818,\r
404         "z": "b3572fdc.57a7c",\r
405         "wires": [\r
406             [\r
407                 "cbb84843.6aa378"\r
408             ]\r
409         ]\r
410     },\r
411     {\r
412         "id": "cbb84843.6aa378",\r
413         "type": "returnFailure",\r
414         "name": "return failure",\r
415         "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 from BlueprintProcessingClient\" />\n",\r
416         "comments": "",\r
417         "x": 885.3333129882812,\r
418         "y": 839,\r
419         "z": "b3572fdc.57a7c",\r
420         "wires": []\r
421     },\r
422     {\r
423         "id": "2ad3fcee.93df44",\r
424         "type": "for",\r
425         "name": "for resource-accumulator-resolved-data loop",\r
426         "xml": "<for silentFailure='true'  index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n",\r
427         "comments": "",\r
428         "outputs": 1,\r
429         "x": 487.66664123535156,\r
430         "y": 1061.333324432373,\r
431         "z": "b3572fdc.57a7c",\r
432         "wires": [\r
433             [\r
434                 "2c3ea9bb.7f7946"\r
435             ]\r
436         ]\r
437     },\r
438     {\r
439         "id": "9d41528b.93ca8",\r
440         "type": "set",\r
441         "name": "set from resource-accumulator-resolved-data",\r
442         "xml": "<set>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].name`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'/>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' value='RA Resolved'/>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\n",\r
443         "comments": "",\r
444         "x": 1717.6666412353516,\r
445         "y": 1113.333324432373,\r
446         "z": "b3572fdc.57a7c",\r
447         "wires": []\r
448     },\r
449     {\r
450         "id": "3461757d.afec6a",\r
451         "type": "for",\r
452         "name": "for capability-data",\r
453         "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n",\r
454         "comments": "",\r
455         "outputs": 1,\r
456         "x": 412.66664123535156,\r
457         "y": 1403.333324432373,\r
458         "z": "b3572fdc.57a7c",\r
459         "wires": [\r
460             [\r
461                 "d627a27f.2cb5b"\r
462             ]\r
463         ]\r
464     },\r
465     {\r
466         "id": "d627a27f.2cb5b",\r
467         "type": "for",\r
468         "name": "for key-mapping",\r
469         "xml": "<for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >",\r
470         "comments": "",\r
471         "outputs": 1,\r
472         "x": 621.6666412353516,\r
473         "y": 1403.333324432373,\r
474         "z": "b3572fdc.57a7c",\r
475         "wires": [\r
476             [\r
477                 "216ffe0c.205142"\r
478             ]\r
479         ]\r
480     },\r
481     {\r
482         "id": "864aa7c9.1f7118",\r
483         "type": "execute",\r
484         "name": "execute jsonStringToCtx",\r
485         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'raAssign.payload.resource-assignment-response.meshed-template.' + $tmp.sdnc-artifact-name`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n",\r
486         "comments": "",\r
487         "outputs": 1,\r
488         "x": 431.66664123535156,\r
489         "y": 982.333324432373,\r
490         "z": "b3572fdc.57a7c",\r
491         "wires": [\r
492             []\r
493         ]\r
494     },\r
495     {\r
496         "id": "1d7f791b.bbebb7",\r
497         "type": "execute",\r
498         "name": "execute generateUUID",\r
499         "xml": " <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" > \n <parameter name=\"ctx-destination\" value=\"tmp.return.generate.pnf-se-serv-uuid\" /> \n ",\r
500         "comments": "",\r
501         "outputs": 1,\r
502         "x": 437.66664123535156,\r
503         "y": 133.3333339691162,\r
504         "z": "b3572fdc.57a7c",\r
505         "wires": [\r
506             [\r
507                 "760c8db3.569a74"\r
508             ]\r
509         ]\r
510     },\r
511     {\r
512         "id": "760c8db3.569a74",\r
513         "type": "failure",\r
514         "name": "failure",\r
515         "xml": "<outcome value='failure'>\n",\r
516         "comments": "",\r
517         "outputs": 1,\r
518         "x": 615.6666412353516,\r
519         "y": 131.3333339691162,\r
520         "z": "b3572fdc.57a7c",\r
521         "wires": [\r
522             [\r
523                 "7161cbe8.334ea4"\r
524             ]\r
525         ]\r
526     },\r
527     {\r
528         "id": "7161cbe8.334ea4",\r
529         "type": "returnFailure",\r
530         "name": "return failure",\r
531         "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=\"generateUUID is failed\" />\n",\r
532         "comments": "",\r
533         "x": 762.6666412353516,\r
534         "y": 132.3333339691162,\r
535         "z": "b3572fdc.57a7c",\r
536         "wires": []\r
537     },\r
538     {\r
539         "id": "3ddac87b.4f3da8",\r
540         "type": "for",\r
541         "name": "for pnf-parameters-data.param[]",\r
542         "xml": "<for silentFailure='true' index='cnt' start='0' end='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' >\n",\r
543         "comments": "",\r
544         "outputs": 1,\r
545         "x": 1460.6666412353516,\r
546         "y": 1062.333324432373,\r
547         "z": "b3572fdc.57a7c",\r
548         "wires": [\r
549             [\r
550                 "20ea2728.c6c858"\r
551             ]\r
552         ]\r
553     },\r
554     {\r
555         "id": "2c3ea9bb.7f7946",\r
556         "type": "block",\r
557         "name": "block atomic",\r
558         "xml": "<block atomic=\"true\">",\r
559         "atomic": "false",\r
560         "comments": "",\r
561         "outputs": 1,\r
562         "x": 766.6666412353516,\r
563         "y": 1062.333324432373,\r
564         "z": "b3572fdc.57a7c",\r
565         "wires": [\r
566             [\r
567                 "c9a47a5b.74ce78",\r
568                 "704f5605.ef2be8",\r
569                 "e738ca50.9bb188"\r
570             ]\r
571         ]\r
572     },\r
573     {\r
574         "id": "dfab7c99.217af",\r
575         "type": "switchNode",\r
576         "name": "switch pnf-parameters-data.param_length",\r
577         "xml": "<switch test='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`'>\n",\r
578         "comments": "",\r
579         "outputs": 1,\r
580         "x": 489.66664123535156,\r
581         "y": 231.3333339691162,\r
582         "z": "b3572fdc.57a7c",\r
583         "wires": [\r
584             [\r
585                 "6b291f06.ba442",\r
586                 "d14aa673.b0f938"\r
587             ]\r
588         ]\r
589     },\r
590     {\r
591         "id": "6b291f06.ba442",\r
592         "type": "outcome",\r
593         "name": "null",\r
594         "xml": "<outcome value=''>",\r
595         "comments": "",\r
596         "outputs": 1,\r
597         "x": 727.6666412353516,\r
598         "y": 199.3333339691162,\r
599         "z": "b3572fdc.57a7c",\r
600         "wires": [\r
601             [\r
602                 "c7a81447.af0e28"\r
603             ]\r
604         ]\r
605     },\r
606     {\r
607         "id": "d14aa673.b0f938",\r
608         "type": "other",\r
609         "name": "other",\r
610         "xml": "<outcome value='Other'>\n",\r
611         "comments": "",\r
612         "outputs": 1,\r
613         "x": 726.6666412353516,\r
614         "y": 263.3333339691162,\r
615         "z": "b3572fdc.57a7c",\r
616         "wires": [\r
617             [\r
618                 "8406cee0.8a168"\r
619             ]\r
620         ]\r
621     },\r
622     {\r
623         "id": "c7a81447.af0e28",\r
624         "type": "set",\r
625         "name": "set pre service param len as 0",\r
626         "xml": "<set>\n   <parameter name='highnum' value='0' />\n   <parameter name='prehighnum' value='0'/>\n",\r
627         "comments": "",\r
628         "x": 940.6666412353516,\r
629         "y": 199.3333339691162,\r
630         "z": "b3572fdc.57a7c",\r
631         "wires": []\r
632     },\r
633     {\r
634         "id": "8406cee0.8a168",\r
635         "type": "set",\r
636         "name": "set pre service param len",\r
637         "xml": "<set>\n   <parameter name='highnum' value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' />\n   <parameter name='prehighnum' value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' />",\r
638         "comments": "",\r
639         "x": 925.6666412353516,\r
640         "y": 263.3333339691162,\r
641         "z": "b3572fdc.57a7c",\r
642         "wires": []\r
643     },\r
644     {\r
645         "id": "20ea2728.c6c858",\r
646         "type": "switchNode",\r
647         "name": "switch param[].name - input vs. jsonContextPrefix",\r
648         "xml": "<switch test='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$cnt].name == $jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'>\n",\r
649         "comments": "",\r
650         "outputs": 1,\r
651         "x": 1839.6666412353516,\r
652         "y": 1062.333324432373,\r
653         "z": "b3572fdc.57a7c",\r
654         "wires": [\r
655             [\r
656                 "1f97b8fe.14f627"\r
657             ]\r
658         ]\r
659     },\r
660     {\r
661         "id": "1f97b8fe.14f627",\r
662         "type": "not-found",\r
663         "name": "true",\r
664         "xml": "<outcome value='true'>\n",\r
665         "comments": "",\r
666         "outputs": 1,\r
667         "x": 2123.6666412353516,\r
668         "y": 1062.333324432373,\r
669         "z": "b3572fdc.57a7c",\r
670         "wires": [\r
671             [\r
672                 "cfd1df65.8c421"\r
673             ]\r
674         ]\r
675     },\r
676     {\r
677         "id": "cfd1df65.8c421",\r
678         "type": "set",\r
679         "name": "set for existing param name",\r
680         "xml": "<set>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$cnt].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='tmp.mso.param.found' value='true' />\n",\r
681         "comments": "",\r
682         "x": 2333.6666412353516,\r
683         "y": 1062.333324432373,\r
684         "z": "b3572fdc.57a7c",\r
685         "wires": []\r
686     },\r
687     {\r
688         "id": "e738ca50.9bb188",\r
689         "type": "switchNode",\r
690         "name": "switch tmp.mso.param.found",\r
691         "xml": "<switch test='`$tmp.mso.param.found`'>\n",\r
692         "comments": "",\r
693         "outputs": 1,\r
694         "x": 1008.6666412353516,\r
695         "y": 1114.333324432373,\r
696         "z": "b3572fdc.57a7c",\r
697         "wires": [\r
698             [\r
699                 "5d54064f.f0a378"\r
700             ]\r
701         ]\r
702     },\r
703     {\r
704         "id": "5d54064f.f0a378",\r
705         "type": "not-found",\r
706         "name": "false",\r
707         "xml": "<outcome value='false'>\n",\r
708         "comments": "",\r
709         "outputs": 1,\r
710         "x": 1242.6666412353516,\r
711         "y": 1113.333324432373,\r
712         "z": "b3572fdc.57a7c",\r
713         "wires": [\r
714             [\r
715                 "91cea0a0.32463"\r
716             ]\r
717         ]\r
718     },\r
719     {\r
720         "id": "c9a47a5b.74ce78",\r
721         "type": "set",\r
722         "name": "set for existing param name",\r
723         "xml": "<set>\n<parameter name='tmp.mso.param.found' value='false' />\n",\r
724         "comments": "",\r
725         "x": 990.1666412353516,\r
726         "y": 1000.8333282470703,\r
727         "z": "b3572fdc.57a7c",\r
728         "wires": []\r
729     },\r
730     {\r
731         "id": "704f5605.ef2be8",\r
732         "type": "switchNode",\r
733         "name": "switch check length > 0",\r
734         "xml": "<switch test='`$prehighnum &gt; 0`'>\n",\r
735         "comments": "",\r
736         "outputs": 1,\r
737         "x": 985.1666412353516,\r
738         "y": 1062.333324432373,\r
739         "z": "b3572fdc.57a7c",\r
740         "wires": [\r
741             [\r
742                 "82f274ba.e58e48"\r
743             ]\r
744         ]\r
745     },\r
746     {\r
747         "id": "82f274ba.e58e48",\r
748         "type": "not-found",\r
749         "name": "true",\r
750         "xml": "<outcome value='true'>\n",\r
751         "comments": "",\r
752         "outputs": 1,\r
753         "x": 1232.1666412353516,\r
754         "y": 1062.333324432373,\r
755         "z": "b3572fdc.57a7c",\r
756         "wires": [\r
757             [\r
758                 "3ddac87b.4f3da8"\r
759             ]\r
760         ]\r
761     },\r
762     {\r
763         "id": "c2b9329e.7b7fe",\r
764         "type": "for",\r
765         "name": "for payload",\r
766         "xml": "<for silentFailure='true' index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >",\r
767         "comments": "",\r
768         "outputs": 1,\r
769         "x": 1803.6666412353516,\r
770         "y": 1421.333324432373,\r
771         "z": "b3572fdc.57a7c",\r
772         "wires": [\r
773             [\r
774                 "1973b2f9.8576bd"\r
775             ]\r
776         ]\r
777     },\r
778     {\r
779         "id": "9263a471.304a78",\r
780         "type": "set",\r
781         "name": "set resource-key",\r
782         "xml": "<set>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$num].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-name`'/>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$num].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-value`'/>\n\n",\r
783         "comments": "",\r
784         "x": 2152.6666412353516,\r
785         "y": 1357.333324432373,\r
786         "z": "b3572fdc.57a7c",\r
787         "wires": []\r
788     },\r
789     {\r
790         "id": "bdc6e9e5.246078",\r
791         "type": "set",\r
792         "name": "set output-data ",\r
793         "xml": "<set>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-name`'/>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-value`'/>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' value='`$jsonContextPrefix.capability-data[$i].capability-name`'/>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\n<parameter name='num' value='0' />",\r
794         "comments": "",\r
795         "x": 1376.6666412353516,\r
796         "y": 1301.333324432373,\r
797         "z": "b3572fdc.57a7c",\r
798         "wires": []\r
799     },\r
800     {\r
801         "id": "216ffe0c.205142",\r
802         "type": "for",\r
803         "name": "for output-key-mapping",\r
804         "xml": "<for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >",\r
805         "comments": "",\r
806         "outputs": 1,\r
807         "x": 844.6666412353516,\r
808         "y": 1403.333324432373,\r
809         "z": "b3572fdc.57a7c",\r
810         "wires": [\r
811             [\r
812                 "d332f89d.5d7ed8"\r
813             ]\r
814         ]\r
815     },\r
816     {\r
817         "id": "d332f89d.5d7ed8",\r
818         "type": "block",\r
819         "name": "block atomic",\r
820         "xml": "<block atomic=\"true\">",\r
821         "atomic": "false",\r
822         "comments": "",\r
823         "outputs": 1,\r
824         "x": 1095.6666412353516,\r
825         "y": 1403.333324432373,\r
826         "z": "b3572fdc.57a7c",\r
827         "wires": [\r
828             [\r
829                 "bdc6e9e5.246078",\r
830                 "9a22b4d.28af748",\r
831                 "14d775fb.50189a",\r
832                 "d1982b17.6b7748"\r
833             ]\r
834         ]\r
835     },\r
836     {\r
837         "id": "9a22b4d.28af748",\r
838         "type": "set",\r
839         "name": "set length",\r
840         "xml": "<set>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' value='`$highnum + 1`'/>\n",\r
841         "comments": "",\r
842         "x": 1364.6666412353516,\r
843         "y": 1439.333324432373,\r
844         "z": "b3572fdc.57a7c",\r
845         "wires": []\r
846     },\r
847     {\r
848         "id": "1cca5644.52e2da",\r
849         "type": "failure",\r
850         "name": "not-found",\r
851         "xml": "<outcome value='not-found'>\n",\r
852         "comments": "",\r
853         "outputs": 1,\r
854         "x": 708.3333129882812,\r
855         "y": 880,\r
856         "z": "b3572fdc.57a7c",\r
857         "wires": [\r
858             [\r
859                 "cbb84843.6aa378"\r
860             ]\r
861         ]\r
862     },\r
863     {\r
864         "id": "14d775fb.50189a",\r
865         "type": "switchNode",\r
866         "name": "switch payload_length",\r
867         "xml": "<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n",\r
868         "comments": "",\r
869         "outputs": 1,\r
870         "x": 1400.6666412353516,\r
871         "y": 1372.333324432373,\r
872         "z": "b3572fdc.57a7c",\r
873         "wires": [\r
874             [\r
875                 "abcb7f77.07548",\r
876                 "2376e062.61cda"\r
877             ]\r
878         ]\r
879     },\r
880     {\r
881         "id": "abcb7f77.07548",\r
882         "type": "outcome",\r
883         "name": "true",\r
884         "xml": "<outcome value='true'>",\r
885         "comments": "",\r
886         "outputs": 1,\r
887         "x": 1621.6666412353516,\r
888         "y": 1303.333324432373,\r
889         "z": "b3572fdc.57a7c",\r
890         "wires": [\r
891             []\r
892         ]\r
893     },\r
894     {\r
895         "id": "2376e062.61cda",\r
896         "type": "other",\r
897         "name": "false",\r
898         "xml": "<outcome value='false'>\n",\r
899         "comments": "",\r
900         "outputs": 1,\r
901         "x": 1628.6666412353516,\r
902         "y": 1421.333324432373,\r
903         "z": "b3572fdc.57a7c",\r
904         "wires": [\r
905             [\r
906                 "c2b9329e.7b7fe"\r
907             ]\r
908         ]\r
909     },\r
910     {\r
911         "id": "8b4b4f46.8310f",\r
912         "type": "success",\r
913         "name": "success",\r
914         "xml": "<outcome value='success'>\n",\r
915         "comments": "",\r
916         "outputs": 1,\r
917         "x": 1171.9523658752441,\r
918         "y": 618.9046821594238,\r
919         "z": "b3572fdc.57a7c",\r
920         "wires": [\r
921             [\r
922                 "d8999389.3a4ec"\r
923             ]\r
924         ]\r
925     },\r
926     {\r
927         "id": "6b7f75ff.e599ec",\r
928         "type": "set",\r
929         "name": "set length",\r
930         "xml": "<set>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.resource-key_length`' value='`$num + 1`'/>\n",\r
931         "comments": "",\r
932         "x": 2141.6666412353516,\r
933         "y": 1421.333324432373,\r
934         "z": "b3572fdc.57a7c",\r
935         "wires": []\r
936     },\r
937     {\r
938         "id": "adccc85e.eca3a8",\r
939         "type": "set",\r
940         "name": "increment length",\r
941         "xml": "<set>\n\t<parameter name='num' value='`$num + 1`' />\n",\r
942         "comments": "",\r
943         "x": 2159.6666412353516,\r
944         "y": 1495.333324432373,\r
945         "z": "b3572fdc.57a7c",\r
946         "wires": []\r
947     },\r
948     {\r
949         "id": "d1982b17.6b7748",\r
950         "type": "set",\r
951         "name": "increment length",\r
952         "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n\n",\r
953         "comments": "",\r
954         "x": 1385.6666412353516,\r
955         "y": 1506.333324432373,\r
956         "z": "b3572fdc.57a7c",\r
957         "wires": []\r
958     },\r
959     {\r
960         "id": "91cea0a0.32463",\r
961         "type": "block",\r
962         "name": "block : atomic",\r
963         "xml": "<block atomic='true'>",\r
964         "atomic": "true",\r
965         "comments": "",\r
966         "outputs": 1,\r
967         "x": 1419.6666412353516,\r
968         "y": 1112.333324432373,\r
969         "z": "b3572fdc.57a7c",\r
970         "wires": [\r
971             [\r
972                 "9d41528b.93ca8",\r
973                 "2b6854a1.91680c"\r
974             ]\r
975         ]\r
976     },\r
977     {\r
978         "id": "2b6854a1.91680c",\r
979         "type": "set",\r
980         "name": "increment length",\r
981         "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",\r
982         "comments": "",\r
983         "x": 1634.6666412353516,\r
984         "y": 1172.333324432373,\r
985         "z": "b3572fdc.57a7c",\r
986         "wires": []\r
987     },\r
988     {\r
989         "id": "1973b2f9.8576bd",\r
990         "type": "block",\r
991         "name": "block atomic",\r
992         "xml": "<block atomic=\"true\">",\r
993         "atomic": "false",\r
994         "comments": "",\r
995         "outputs": 1,\r
996         "x": 1959.6666412353516,\r
997         "y": 1422.333324432373,\r
998         "z": "b3572fdc.57a7c",\r
999         "wires": [\r
1000             [\r
1001                 "9263a471.304a78",\r
1002                 "6b7f75ff.e599ec",\r
1003                 "adccc85e.eca3a8"\r
1004             ]\r
1005         ]\r
1006     },\r
1007     {\r
1008         "id": "b7b3409c.b7131",\r
1009         "type": "record",\r
1010         "name": "record",\r
1011         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE BlueprintProcessingClient\"/>\n\n",\r
1012         "comments": "",\r
1013         "outputs": 1,\r
1014         "x": 385.9999809265137,\r
1015         "y": 765.333324432373,\r
1016         "z": "b3572fdc.57a7c",\r
1017         "wires": [\r
1018             []\r
1019         ]\r
1020     },\r
1021     {\r
1022         "id": "cb318b66.0796c8",\r
1023         "type": "record",\r
1024         "name": "record",\r
1025         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER BlueprintProcessingClient\"/>\n\n",\r
1026         "comments": "",\r
1027         "outputs": 1,\r
1028         "x": 382.6666488647461,\r
1029         "y": 920.3333320617676,\r
1030         "z": "b3572fdc.57a7c",\r
1031         "wires": [\r
1032             []\r
1033         ]\r
1034     },\r
1035     {\r
1036         "id": "94bf3501.be3848",\r
1037         "type": "execute",\r
1038         "name": "printContext",\r
1039         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n",\r
1040         "comments": "",\r
1041         "outputs": 1,\r
1042         "x": 391.00000762939453,\r
1043         "y": 1724.5000267028809,\r
1044         "z": "b3572fdc.57a7c",\r
1045         "wires": [\r
1046             []\r
1047         ]\r
1048     },\r
1049     {\r
1050         "id": "3d6976b6.27f80a",\r
1051         "type": "set",\r
1052         "name": "set pathname",\r
1053         "xml": "<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-pnf-ra-assignment-' + \n\t$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-details.pnf-id + '.log'`\" />\n",\r
1054         "comments": "",\r
1055         "x": 397.25000762939453,\r
1056         "y": 1672.0000247955322,\r
1057         "z": "b3572fdc.57a7c",\r
1058         "wires": []\r
1059     },\r
1060     {\r
1061         "id": "a566a00c.4994a",\r
1062         "type": "record",\r
1063         "name": "record",\r
1064         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"DONE: pnf-ra-assignment\"/>\n\n",\r
1065         "comments": "",\r
1066         "outputs": 1,\r
1067         "x": 374.75000381469727,\r
1068         "y": 1625.7500247955322,\r
1069         "z": "b3572fdc.57a7c",\r
1070         "wires": [\r
1071             []\r
1072         ]\r
1073     }\r
1074 ]