9f86a0e4c60ced17a094b28c5c4e8a05b70da7ed
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.json
1 [
2     {
3         "id": "62b4ac2.a95e9d4",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 103,
8         "y": 69,
9         "z": "25457e3a.564dda",
10         "wires": [
11             [
12                 "391f2cc4.ebd754"
13             ]
14         ]
15     },
16     {
17         "id": "391f2cc4.ebd754",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
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}'>",
24         "outputs": 1,
25         "x": 379,
26         "y": 70,
27         "z": "25457e3a.564dda",
28         "wires": [
29             [
30                 "90a983eb.65fd9"
31             ]
32         ]
33     },
34     {
35         "id": "90a983eb.65fd9",
36         "type": "method",
37         "name": "self-serve-vfmodule-ra-assignment",
38         "xml": "<method rpc='self-serve-vfmodule-ra-assignment' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 730,
42         "y": 70,
43         "z": "25457e3a.564dda",
44         "wires": [
45             [
46                 "f81932d4.e701e"
47             ]
48         ]
49     },
50     {
51         "id": "f81932d4.e701e",
52         "type": "block",
53         "name": "block atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 115.5,
59         "y": 152,
60         "z": "25457e3a.564dda",
61         "wires": [
62             [
63                 "15b6f898.c038a7",
64                 "75ce745c.c90274",
65                 "2178fdaa.9f4722",
66                 "41638aa2.6a574c",
67                 "7f7fcb9e.5c0444",
68                 "eb354f8e.b9f91",
69                 "b3fed148.ab4d6",
70                 "82beaa2.c0b24d8",
71                 "5224ef9f.f95998",
72                 "f02efea4.67e1a8",
73                 "fc28f089.d04e38",
74                 "a7a9673d.8c8648",
75                 "6f10c8a6.d01ab",
76                 "f4313dca.a2ef98",
77                 "6ddd33ca.15d1fc"
78             ]
79         ]
80     },
81     {
82         "id": "75ce745c.c90274",
83         "type": "set",
84         "name": "set",
85         "xml": "<set>\n   <parameter name=\"request-id\" value=\"`$tmp.return.generate.vnf-se-serv-uuid`\"/>\n   <parameter name=\"resource-type\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-type`\" />  \n   <parameter name=\"resource-id\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" />   \n   <parameter name=\"action-name\" value=\"resource-assignment\"/> \n   <parameter name=\"responsePrefix\" value=\"raAssign\" />\n",
86         "comments": "",
87         "x": 300,
88         "y": 198,
89         "z": "25457e3a.564dda",
90         "wires": []
91     },
92     {
93         "id": "730e137.b92b2ec",
94         "type": "outcome",
95         "name": "true",
96         "xml": "<outcome value='true'>",
97         "comments": "",
98         "outputs": 1,
99         "x": 576.2142486572266,
100         "y": 550.4642963409424,
101         "z": "25457e3a.564dda",
102         "wires": [
103             [
104                 "69655b75.0e578c"
105             ]
106         ]
107     },
108     {
109         "id": "41638aa2.6a574c",
110         "type": "for",
111         "name": "for vf-module-topology-operation-input",
112         "xml": "<for silentFailure='true' index='i' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >",
113         "comments": "",
114         "outputs": 1,
115         "x": 399.71431732177734,
116         "y": 415.7143135070801,
117         "z": "25457e3a.564dda",
118         "wires": [
119             [
120                 "f207181d.dc00e8"
121             ]
122         ]
123     },
124     {
125         "id": "984d45d2.2050e8",
126         "type": "set",
127         "name": "set tmp.sdnc-model-name",
128         "xml": "<set>\n<parameter name='tmp.sdnc-model-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n",
129         "comments": "",
130         "x": 1146.428565979004,
131         "y": 348.1428813934326,
132         "z": "25457e3a.564dda",
133         "wires": []
134     },
135     {
136         "id": "a40d4738.46ee6",
137         "type": "outcome",
138         "name": "sdnc_model_name",
139         "xml": "<outcome value='sdnc_model_name'>\n",
140         "comments": "",
141         "outputs": 1,
142         "x": 892.4285659790039,
143         "y": 348.1428813934326,
144         "z": "25457e3a.564dda",
145         "wires": [
146             [
147                 "984d45d2.2050e8"
148             ]
149         ]
150     },
151     {
152         "id": "f207181d.dc00e8",
153         "type": "switchNode",
154         "name": "switch",
155         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name`'>\n\n",
156         "comments": "",
157         "outputs": 1,
158         "x": 654.4285659790039,
159         "y": 415.1428813934326,
160         "z": "25457e3a.564dda",
161         "wires": [
162             [
163                 "a40d4738.46ee6",
164                 "6b0ee766.140a",
165                 "88e9a62a.e66e",
166                 "21483ce9.b05d14"
167             ]
168         ]
169     },
170     {
171         "id": "6b0ee766.140a",
172         "type": "outcome",
173         "name": "sdnc_model_version",
174         "xml": "<outcome value='sdnc_model_version'>\n",
175         "comments": "",
176         "outputs": 1,
177         "x": 895.4285659790039,
178         "y": 394.1428813934326,
179         "z": "25457e3a.564dda",
180         "wires": [
181             [
182                 "88addd0a.9ca868"
183             ]
184         ]
185     },
186     {
187         "id": "88e9a62a.e66e",
188         "type": "outcome",
189         "name": "vf_module_label",
190         "xml": "<outcome value='vf_module_label'>\n",
191         "comments": "",
192         "outputs": 1,
193         "x": 880.4285659790039,
194         "y": 443.1428813934326,
195         "z": "25457e3a.564dda",
196         "wires": [
197             [
198                 "b46339a.f490748"
199             ]
200         ]
201     },
202     {
203         "id": "88addd0a.9ca868",
204         "type": "set",
205         "name": "set tmp.sdnc-model-version",
206         "xml": "<set>\n<parameter name='tmp.sdnc-model-version' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n\n",
207         "comments": "",
208         "x": 1150.428565979004,
209         "y": 394.1428813934326,
210         "z": "25457e3a.564dda",
211         "wires": []
212     },
213     {
214         "id": "b46339a.f490748",
215         "type": "set",
216         "name": "set tmp.vf-module-label",
217         "xml": "<set>\n<parameter name='tmp.vf-module-label' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`' />\n\n",
218         "comments": "",
219         "x": 1132.428565979004,
220         "y": 443.1428813934326,
221         "z": "25457e3a.564dda",
222         "wires": []
223     },
224     {
225         "id": "7a186b3.6673414",
226         "type": "set",
227         "name": "set name-value other JsonString",
228         "xml": "<set>\n<parameter name=\"tmp.config-name-value-other-payload\" value=\"`$tmp.config-name-value-other-payload + '&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name + '&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value + '&quot;,'`\"/>\n\n",
229         "comments": "",
230         "x": 1150.428565979004,
231         "y": 494.1428813934326,
232         "z": "25457e3a.564dda",
233         "wires": []
234     },
235     {
236         "id": "21483ce9.b05d14",
237         "type": "outcome",
238         "name": "other",
239         "xml": "<outcome value='Other'>\n",
240         "comments": "",
241         "outputs": 1,
242         "x": 852.4285659790039,
243         "y": 494.1428813934326,
244         "z": "25457e3a.564dda",
245         "wires": [
246             [
247                 "7a186b3.6673414"
248             ]
249         ]
250     },
251     {
252         "id": "7f7fcb9e.5c0444",
253         "type": "set",
254         "name": "set configAssignment JsonString",
255         "xml": "<set>\n\t<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '&quot;service-instance-id&quot;:&quot;' + $vf-module-topology-operation-input.service-information.service-instance-id + '&quot;,'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '&quot;vnf-id&quot;:&quot;' + $vf-module-topology-operation-input.vnf-information.vnf-id + '&quot;,'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '&quot;vf-module-model-customization-uuid&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '&quot;vnf-model-customization-uuid&quot;:&quot;' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload8\" value=\"`$tmp.config-name-value-payload7 + '&quot;vf-module-id&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + '&quot;,'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload9\" value=\"`$tmp.config-name-value-payload8 + '&quot;aic-cloud-region&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region + '&quot;'`\"/>\n\t<parameter name=\"tmp.config-name-value-payload91\" value=\"`'{' + $tmp.config-name-value-payload9 + '}'`\" />\n\t\n",
256         "comments": "",
257         "x": 371,
258         "y": 708,
259         "z": "25457e3a.564dda",
260         "wires": []
261     },
262     {
263         "id": "eb354f8e.b9f91",
264         "type": "execute",
265         "name": "execute BlueprintProcessingClient",
266         "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.vf-module-label + '&quot;\n    ],\n    &quot;resource-assignment-properties&quot;: \n        ' + $tmp.config-name-value-payload91 + '\n  }\n}'`\"/>",
267         "comments": "",
268         "outputs": 1,
269         "x": 385.33331298828125,
270         "y": 885,
271         "z": "25457e3a.564dda",
272         "wires": [
273             [
274                 "5c78e84c.ba8ec",
275                 "27108109.bca146"
276             ]
277         ]
278     },
279     {
280         "id": "5c78e84c.ba8ec",
281         "type": "failure",
282         "name": "failure",
283         "xml": "<outcome value='failure'>\n",
284         "comments": "",
285         "outputs": 1,
286         "x": 609.3333129882812,
287         "y": 851,
288         "z": "25457e3a.564dda",
289         "wires": [
290             [
291                 "37ca0be9.afa37c"
292             ]
293         ]
294     },
295     {
296         "id": "37ca0be9.afa37c",
297         "type": "returnFailure",
298         "name": "return failure",
299         "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 ConfigAssignmentNode\" />\n",
300         "comments": "",
301         "x": 807.3333129882812,
302         "y": 851,
303         "z": "25457e3a.564dda",
304         "wires": []
305     },
306     {
307         "id": "82beaa2.c0b24d8",
308         "type": "for",
309         "name": "for resource-accumulator-resolved-data loop",
310         "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n",
311         "comments": "",
312         "outputs": 1,
313         "x": 418.00001525878906,
314         "y": 1153.3333473205566,
315         "z": "25457e3a.564dda",
316         "wires": [
317             [
318                 "371f7985.57bd16"
319             ]
320         ]
321     },
322     {
323         "id": "ea488b64.0cb308",
324         "type": "set",
325         "name": "set from resource-accumulator-resolved-data",
326         "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].name`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.capability-name`' value='RA Resolved'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\n\n",
327         "comments": "",
328         "x": 1632.000015258789,
329         "y": 1204.3333473205566,
330         "z": "25457e3a.564dda",
331         "wires": []
332     },
333     {
334         "id": "5224ef9f.f95998",
335         "type": "for",
336         "name": "for capability-data",
337         "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n",
338         "comments": "",
339         "outputs": 1,
340         "x": 337.00001525878906,
341         "y": 1416.3333473205566,
342         "z": "25457e3a.564dda",
343         "wires": [
344             [
345                 "180834f4.0223fb"
346             ]
347         ]
348     },
349     {
350         "id": "180834f4.0223fb",
351         "type": "for",
352         "name": "for key-mapping",
353         "xml": "<for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >",
354         "comments": "",
355         "outputs": 1,
356         "x": 560.0000152587891,
357         "y": 1416.3333473205566,
358         "z": "25457e3a.564dda",
359         "wires": [
360             [
361                 "90054e48.e44a1"
362             ]
363         ]
364     },
365     {
366         "id": "b3fed148.ab4d6",
367         "type": "execute",
368         "name": "execute jsonStringToCtx",
369         "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.vf-module-label`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n",
370         "comments": "",
371         "outputs": 1,
372         "x": 362.00001525878906,
373         "y": 1074.3333473205566,
374         "z": "25457e3a.564dda",
375         "wires": [
376             []
377         ]
378     },
379     {
380         "id": "15b6f898.c038a7",
381         "type": "execute",
382         "name": "execute generateUUID",
383         "xml": " <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" > \n <parameter name=\"ctx-destination\" value=\"tmp.return.generate.vnf-se-serv-uuid\" /> \n ",
384         "comments": "",
385         "outputs": 1,
386         "x": 345,
387         "y": 152,
388         "z": "25457e3a.564dda",
389         "wires": [
390             [
391                 "7e9fde22.d0f5"
392             ]
393         ]
394     },
395     {
396         "id": "7e9fde22.d0f5",
397         "type": "failure",
398         "name": "failure",
399         "xml": "<outcome value='failure'>\n",
400         "comments": "",
401         "outputs": 1,
402         "x": 550,
403         "y": 152,
404         "z": "25457e3a.564dda",
405         "wires": [
406             [
407                 "1e729d78.2afb63"
408             ]
409         ]
410     },
411     {
412         "id": "1e729d78.2afb63",
413         "type": "returnFailure",
414         "name": "return failure",
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=\"generateUUID is failed\" />\n",
416         "comments": "",
417         "x": 714,
418         "y": 151,
419         "z": "25457e3a.564dda",
420         "wires": []
421     },
422     {
423         "id": "921c6908.5a7c6",
424         "type": "for",
425         "name": "for vnf-parameters-data.param",
426         "xml": "<for silentFailure='true' index='cnt' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n",
427         "comments": "",
428         "outputs": 1,
429         "x": 1391.000015258789,
430         "y": 1153.3333473205566,
431         "z": "25457e3a.564dda",
432         "wires": [
433             [
434                 "4ba8e978.428598"
435             ]
436         ]
437     },
438     {
439         "id": "371f7985.57bd16",
440         "type": "block",
441         "name": "block atomic",
442         "xml": "<block atomic=\"true\">",
443         "atomic": "false",
444         "comments": "",
445         "outputs": 1,
446         "x": 697.0000152587891,
447         "y": 1154.3333473205566,
448         "z": "25457e3a.564dda",
449         "wires": [
450             [
451                 "daec1228.174c78",
452                 "11c1115b.0b9dcf",
453                 "b6fa1afb.0b0068"
454             ]
455         ]
456     },
457     {
458         "id": "2178fdaa.9f4722",
459         "type": "switchNode",
460         "name": "switch vf-parameters-data.param_length",
461         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`'>\n",
462         "comments": "",
463         "outputs": 1,
464         "x": 417,
465         "y": 253,
466         "z": "25457e3a.564dda",
467         "wires": [
468             [
469                 "2f8ba0ac.8cb83",
470                 "585f5e92.feaf28"
471             ]
472         ]
473     },
474     {
475         "id": "2f8ba0ac.8cb83",
476         "type": "outcome",
477         "name": "null",
478         "xml": "<outcome value=''>",
479         "comments": "",
480         "outputs": 1,
481         "x": 680.1428833007812,
482         "y": 220.85715293884277,
483         "z": "25457e3a.564dda",
484         "wires": [
485             [
486                 "95452a78.4cd6e8"
487             ]
488         ]
489     },
490     {
491         "id": "585f5e92.feaf28",
492         "type": "other",
493         "name": "other",
494         "xml": "<outcome value='Other'>\n",
495         "comments": "",
496         "outputs": 1,
497         "x": 679.1428833007812,
498         "y": 284.8571529388428,
499         "z": "25457e3a.564dda",
500         "wires": [
501             [
502                 "274ba7d4.2752e"
503             ]
504         ]
505     },
506     {
507         "id": "95452a78.4cd6e8",
508         "type": "set",
509         "name": "set pre service param len as 0",
510         "xml": "<set>\n   <parameter name='highnum' value='0' />\n   <parameter name='prehighnum' value='0'/>\n",
511         "comments": "",
512         "x": 893.1428833007812,
513         "y": 220.85715293884277,
514         "z": "25457e3a.564dda",
515         "wires": []
516     },
517     {
518         "id": "274ba7d4.2752e",
519         "type": "set",
520         "name": "set pre service param len",
521         "xml": "<set>\n   <parameter name='highnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' />\n   <parameter name='prehighnum' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' />",
522         "comments": "",
523         "x": 878.1428833007812,
524         "y": 284.8571529388428,
525         "z": "25457e3a.564dda",
526         "wires": []
527     },
528     {
529         "id": "4ba8e978.428598",
530         "type": "switchNode",
531         "name": "switch input vnf-name",
532         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cnt].name == $jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'>\n",
533         "comments": "",
534         "outputs": 1,
535         "x": 1649.000015258789,
536         "y": 1153.3333473205566,
537         "z": "25457e3a.564dda",
538         "wires": [
539             [
540                 "51567492.7ec0ac"
541             ]
542         ]
543     },
544     {
545         "id": "51567492.7ec0ac",
546         "type": "not-found",
547         "name": "true",
548         "xml": "<outcome value='true'>\n",
549         "comments": "",
550         "outputs": 1,
551         "x": 1829.000015258789,
552         "y": 1153.3333473205566,
553         "z": "25457e3a.564dda",
554         "wires": [
555             [
556                 "c1a41bbc.f5855"
557             ]
558         ]
559     },
560     {
561         "id": "c1a41bbc.f5855",
562         "type": "set",
563         "name": "set for existing param name",
564         "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$cnt].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='tmp.mso.param.found' value='true' />\n",
565         "comments": "",
566         "x": 2039.000015258789,
567         "y": 1154.3333473205566,
568         "z": "25457e3a.564dda",
569         "wires": []
570     },
571     {
572         "id": "b6fa1afb.0b0068",
573         "type": "switchNode",
574         "name": "switch tmp.mso.param.not-found",
575         "xml": "<switch test='`$tmp.mso.param.found`'>\n",
576         "comments": "",
577         "outputs": 1,
578         "x": 939.0000152587891,
579         "y": 1206.3333473205566,
580         "z": "25457e3a.564dda",
581         "wires": [
582             [
583                 "13042a91.1fbf7d"
584             ]
585         ]
586     },
587     {
588         "id": "13042a91.1fbf7d",
589         "type": "not-found",
590         "name": "false",
591         "xml": "<outcome value='false'>\n",
592         "comments": "",
593         "outputs": 1,
594         "x": 1173.000015258789,
595         "y": 1205.3333473205566,
596         "z": "25457e3a.564dda",
597         "wires": [
598             [
599                 "c99ccd6c.b70598"
600             ]
601         ]
602     },
603     {
604         "id": "daec1228.174c78",
605         "type": "set",
606         "name": "set for existing param name",
607         "xml": "<set>\n<parameter name='tmp.mso.param.found' value='false' />\n",
608         "comments": "",
609         "x": 923.0000152587891,
610         "y": 1095.3333473205566,
611         "z": "25457e3a.564dda",
612         "wires": []
613     },
614     {
615         "id": "11c1115b.0b9dcf",
616         "type": "switchNode",
617         "name": "switch check length > 0",
618         "xml": "<switch test='`$prehighnum &gt; 0`'>\n",
619         "comments": "",
620         "outputs": 1,
621         "x": 915.5000152587891,
622         "y": 1154.3333473205566,
623         "z": "25457e3a.564dda",
624         "wires": [
625             [
626                 "13d6175.5719969"
627             ]
628         ]
629     },
630     {
631         "id": "13d6175.5719969",
632         "type": "not-found",
633         "name": "true",
634         "xml": "<outcome value='true'>\n",
635         "comments": "",
636         "outputs": 1,
637         "x": 1162.500015258789,
638         "y": 1154.3333473205566,
639         "z": "25457e3a.564dda",
640         "wires": [
641             [
642                 "921c6908.5a7c6"
643             ]
644         ]
645     },
646     {
647         "id": "402f5e16.17318",
648         "type": "for",
649         "name": "for payload",
650         "xml": "<for index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >",
651         "comments": "",
652         "outputs": 1,
653         "x": 1609.000015258789,
654         "y": 1468.3333473205566,
655         "z": "25457e3a.564dda",
656         "wires": [
657             [
658                 "5766e1da.218b68"
659             ]
660         ]
661     },
662     {
663         "id": "462cc35.3e8b9bc",
664         "type": "set",
665         "name": "set resource-key",
666         "xml": "<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key[$num].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-name`'/>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key[$num].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-value`'/>\n\t\n",
667         "comments": "",
668         "x": 2008.000015258789,
669         "y": 1409.3333473205566,
670         "z": "25457e3a.564dda",
671         "wires": []
672     },
673     {
674         "id": "ae8db4d3.4b4a48",
675         "type": "set",
676         "name": "set output-data ",
677         "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-value`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.capability-name`' value='`$jsonContextPrefix.capability-data[$i].capability-name`'/>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\n<parameter name='num' value='0' />",
678         "comments": "",
679         "x": 1187.000015258789,
680         "y": 1370.3333473205566,
681         "z": "25457e3a.564dda",
682         "wires": []
683     },
684     {
685         "id": "90054e48.e44a1",
686         "type": "for",
687         "name": "for output-key-mapping",
688         "xml": "<for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >",
689         "comments": "",
690         "outputs": 1,
691         "x": 795.0000152587891,
692         "y": 1417.3333473205566,
693         "z": "25457e3a.564dda",
694         "wires": [
695             [
696                 "5a70cf94.1278d8"
697             ]
698         ]
699     },
700     {
701         "id": "5a70cf94.1278d8",
702         "type": "block",
703         "name": "block atomic",
704         "xml": "<block atomic=\"true\">",
705         "atomic": "false",
706         "comments": "",
707         "outputs": 1,
708         "x": 990.0000152587891,
709         "y": 1416.3333473205566,
710         "z": "25457e3a.564dda",
711         "wires": [
712             [
713                 "ae8db4d3.4b4a48",
714                 "914a95fd.27e4",
715                 "74ac5a29.666eac",
716                 "5d5538e1.f0339"
717             ]
718         ]
719     },
720     {
721         "id": "74ac5a29.666eac",
722         "type": "set",
723         "name": "set length",
724         "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' value='`$highnum + 1`'/>\n\n",
725         "comments": "",
726         "x": 1186.000015258789,
727         "y": 1468.3333473205566,
728         "z": "25457e3a.564dda",
729         "wires": []
730     },
731     {
732         "id": "27108109.bca146",
733         "type": "failure",
734         "name": "not-found",
735         "xml": "<outcome value='not-found'>\n",
736         "comments": "",
737         "outputs": 1,
738         "x": 614.3333129882812,
739         "y": 913,
740         "z": "25457e3a.564dda",
741         "wires": [
742             [
743                 "37ca0be9.afa37c"
744             ]
745         ]
746     },
747     {
748         "id": "914a95fd.27e4",
749         "type": "switchNode",
750         "name": "switch payload_length",
751         "xml": "<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n",
752         "comments": "",
753         "outputs": 1,
754         "x": 1216.000015258789,
755         "y": 1417.3333473205566,
756         "z": "25457e3a.564dda",
757         "wires": [
758             [
759                 "e7579cfd.79cf",
760                 "53b912f8.bc8e44"
761             ]
762         ]
763     },
764     {
765         "id": "e7579cfd.79cf",
766         "type": "outcome",
767         "name": "true",
768         "xml": "<outcome value='true'>",
769         "comments": "",
770         "outputs": 1,
771         "x": 1431.000015258789,
772         "y": 1349.3333473205566,
773         "z": "25457e3a.564dda",
774         "wires": [
775             []
776         ]
777     },
778     {
779         "id": "53b912f8.bc8e44",
780         "type": "other",
781         "name": "false",
782         "xml": "<outcome value='false'>\n",
783         "comments": "",
784         "outputs": 1,
785         "x": 1440.000015258789,
786         "y": 1468.3333473205566,
787         "z": "25457e3a.564dda",
788         "wires": [
789             [
790                 "402f5e16.17318"
791             ]
792         ]
793     },
794     {
795         "id": "f02efea4.67e1a8",
796         "type": "switchNode",
797         "name": "switch: model info == NULL",
798         "xml": "<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.vf-module-label == ''`\">\n",
799         "comments": "",
800         "outputs": 1,
801         "x": 364.78570556640625,
802         "y": 550.6071863174438,
803         "z": "25457e3a.564dda",
804         "wires": [
805             [
806                 "730e137.b92b2ec"
807             ]
808         ]
809     },
810     {
811         "id": "210411fd.9339ae",
812         "type": "get-resource",
813         "name": "get VF_MODEL.sdnc_model_name",
814         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n  pfx='db1.vf-model'>\n\n",
815         "comments": "",
816         "outputs": 1,
817         "x": 1042.9285354614258,
818         "y": 551.464297413826,
819         "z": "25457e3a.564dda",
820         "wires": [
821             [
822                 "1dda43f0.78a6ec",
823                 "17ee1b83.1900bc",
824                 "436821fa.6b6638"
825             ]
826         ]
827     },
828     {
829         "id": "1dda43f0.78a6ec",
830         "type": "failure",
831         "name": "failure",
832         "xml": "<outcome value='failure'>\n",
833         "comments": "",
834         "outputs": 1,
835         "x": 1286.1427536010742,
836         "y": 551.8451566696167,
837         "z": "25457e3a.564dda",
838         "wires": [
839             [
840                 "13103a3.51f8ec6"
841             ]
842         ]
843     },
844     {
845         "id": "13103a3.51f8ec6",
846         "type": "returnFailure",
847         "name": "return failure",
848         "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",
849         "comments": "",
850         "x": 1467.142734527588,
851         "y": 551.9880638122559,
852         "z": "25457e3a.564dda",
853         "wires": []
854     },
855     {
856         "id": "dc45b20d.a2471",
857         "type": "get-resource",
858         "name": "get VF_MODULE_MODEL.vf-module-label",
859         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT vf_module_label from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid \n  \tAND vf_module_label is not null'\n  pfx='db1.vf-module-model'>\n\n",
860         "comments": "",
861         "outputs": 1,
862         "x": 1064.380874633789,
863         "y": 680.3095798492432,
864         "z": "25457e3a.564dda",
865         "wires": [
866             [
867                 "49f2443a.7a2f84",
868                 "1553ab7a.9ccd2d",
869                 "f60a2de7.b86a"
870             ]
871         ]
872     },
873     {
874         "id": "49f2443a.7a2f84",
875         "type": "failure",
876         "name": "failure",
877         "xml": "<outcome value='failure'>\n",
878         "comments": "",
879         "outputs": 1,
880         "x": 1343.1664581298828,
881         "y": 680.6904038190842,
882         "z": "25457e3a.564dda",
883         "wires": [
884             [
885                 "696c0378.dceeec"
886             ]
887         ]
888     },
889     {
890         "id": "696c0378.dceeec",
891         "type": "returnFailure",
892         "name": "return failure",
893         "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_MODULE_MODEL table\" />\n",
894         "comments": "",
895         "x": 1518.166389465332,
896         "y": 680.8333042860031,
897         "z": "25457e3a.564dda",
898         "wires": []
899     },
900     {
901         "id": "1553ab7a.9ccd2d",
902         "type": "success",
903         "name": "success",
904         "xml": "<outcome value='success'>\n",
905         "comments": "",
906         "outputs": 1,
907         "x": 1353.3808822631836,
908         "y": 760.095287322998,
909         "z": "25457e3a.564dda",
910         "wires": [
911             [
912                 "2b1bf028.83d6c"
913             ]
914         ]
915     },
916     {
917         "id": "69655b75.0e578c",
918         "type": "block",
919         "name": "block : atomic",
920         "xml": "<block atomic=\"true\">",
921         "atomic": "true",
922         "outputs": 1,
923         "x": 751.7380294799805,
924         "y": 550.8452922105789,
925         "z": "25457e3a.564dda",
926         "wires": [
927             [
928                 "210411fd.9339ae",
929                 "dc45b20d.a2471"
930             ]
931         ]
932     },
933     {
934         "id": "e9acfce8.8fe6e",
935         "type": "set",
936         "name": "set sdnc-model-name, sdnc-model-version",
937         "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\n\n\n",
938         "comments": "",
939         "x": 1565.42866897583,
940         "y": 631.964334487915,
941         "z": "25457e3a.564dda",
942         "wires": []
943     },
944     {
945         "id": "17ee1b83.1900bc",
946         "type": "success",
947         "name": "success",
948         "xml": "<outcome value='success'>\n",
949         "comments": "",
950         "outputs": 1,
951         "x": 1294.0001411437988,
952         "y": 632.2500095367432,
953         "z": "25457e3a.564dda",
954         "wires": [
955             [
956                 "e9acfce8.8fe6e"
957             ]
958         ]
959     },
960     {
961         "id": "2b1bf028.83d6c",
962         "type": "set",
963         "name": "set vf-module-label",
964         "xml": "<set>\n<parameter name='tmp.vf-module-label' value='`$db1.vf-module-model.vf-module-label`' />\n\n\n\n",
965         "comments": "",
966         "x": 1557.821434020996,
967         "y": 761.6786003112793,
968         "z": "25457e3a.564dda",
969         "wires": []
970     },
971     {
972         "id": "5766e1da.218b68",
973         "type": "block",
974         "name": "block : atomic",
975         "xml": "<block atomic='true'>",
976         "atomic": "true",
977         "comments": "",
978         "outputs": 1,
979         "x": 1786.000015258789,
980         "y": 1467.3333473205566,
981         "z": "25457e3a.564dda",
982         "wires": [
983             [
984                 "462cc35.3e8b9bc",
985                 "8649e6f6.ce9d2",
986                 "7fb45245.33dda4"
987             ]
988         ]
989     },
990     {
991         "id": "8649e6f6.ce9d2",
992         "type": "set",
993         "name": "set length",
994         "xml": "<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$highnum].resource-resolution-data.resource-key_length`' value='`$num + 1`'/>\n",
995         "comments": "",
996         "x": 1997.000015258789,
997         "y": 1467.3333473205566,
998         "z": "25457e3a.564dda",
999         "wires": []
1000     },
1001     {
1002         "id": "436821fa.6b6638",
1003         "type": "not-found",
1004         "name": "not-found",
1005         "xml": "<outcome value='not-found'>\n",
1006         "comments": "",
1007         "outputs": 1,
1008         "x": 1296.7500190734863,
1009         "y": 591.5000076293945,
1010         "z": "25457e3a.564dda",
1011         "wires": [
1012             [
1013                 "37a1e85c.528b7"
1014             ]
1015         ]
1016     },
1017     {
1018         "id": "37a1e85c.528b7",
1019         "type": "returnFailure",
1020         "name": "return failure",
1021         "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 with customization_uuid = ' + $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />",
1022         "comments": "",
1023         "x": 1468.0000228881836,
1024         "y": 590.2500085830688,
1025         "z": "25457e3a.564dda",
1026         "wires": []
1027     },
1028     {
1029         "id": "f60a2de7.b86a",
1030         "type": "not-found",
1031         "name": "not-found",
1032         "xml": "<outcome value='not-found'>\n",
1033         "comments": "",
1034         "outputs": 1,
1035         "x": 1354.25,
1036         "y": 721.5,
1037         "z": "25457e3a.564dda",
1038         "wires": [
1039             [
1040                 "94027915.4b59b"
1041             ]
1042         ]
1043     },
1044     {
1045         "id": "94027915.4b59b",
1046         "type": "returnFailure",
1047         "name": "return failure",
1048         "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=\"`'vf_module_label not found in VF_MODULE_MODEL WHERE customization_uuid = ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`\" />",
1049         "comments": "",
1050         "x": 1525.5000038146973,
1051         "y": 720.2500009536743,
1052         "z": "25457e3a.564dda",
1053         "wires": []
1054     },
1055     {
1056         "id": "7fb45245.33dda4",
1057         "type": "set",
1058         "name": "increment length",
1059         "xml": "<set>\n\t<parameter name='num' value='`$num + 1`' />\n",
1060         "comments": "",
1061         "x": 2010.000015258789,
1062         "y": 1533.3333473205566,
1063         "z": "25457e3a.564dda",
1064         "wires": []
1065     },
1066     {
1067         "id": "5d5538e1.f0339",
1068         "type": "set",
1069         "name": "increment length",
1070         "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",
1071         "comments": "",
1072         "x": 1203.000015258789,
1073         "y": 1539.3333473205566,
1074         "z": "25457e3a.564dda",
1075         "wires": []
1076     },
1077     {
1078         "id": "b8f5425b.1922c",
1079         "type": "set",
1080         "name": "increment length",
1081         "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",
1082         "comments": "",
1083         "x": 1550.000015258789,
1084         "y": 1264.3333473205566,
1085         "z": "25457e3a.564dda",
1086         "wires": []
1087     },
1088     {
1089         "id": "c99ccd6c.b70598",
1090         "type": "block",
1091         "name": "block : atomic",
1092         "xml": "<block atomic='true'>",
1093         "atomic": "true",
1094         "comments": "",
1095         "outputs": 1,
1096         "x": 1344.000015258789,
1097         "y": 1204.3333473205566,
1098         "z": "25457e3a.564dda",
1099         "wires": [
1100             [
1101                 "ea488b64.0cb308",
1102                 "b8f5425b.1922c"
1103             ]
1104         ]
1105     },
1106     {
1107         "id": "fc28f089.d04e38",
1108         "type": "record",
1109         "name": "record",
1110         "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",
1111         "comments": "",
1112         "outputs": 1,
1113         "x": 309.6666603088379,
1114         "y": 814.0000104904175,
1115         "z": "25457e3a.564dda",
1116         "wires": [
1117             []
1118         ]
1119     },
1120     {
1121         "id": "a7a9673d.8c8648",
1122         "type": "record",
1123         "name": "record",
1124         "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",
1125         "comments": "",
1126         "outputs": 1,
1127         "x": 306.3333282470703,
1128         "y": 969.000018119812,
1129         "z": "25457e3a.564dda",
1130         "wires": [
1131             []
1132         ]
1133     },
1134     {
1135         "id": "f4313dca.a2ef98",
1136         "type": "execute",
1137         "name": "printContext",
1138         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n",
1139         "comments": "",
1140         "outputs": 1,
1141         "x": 319.25,
1142         "y": 1691.5000133514404,
1143         "z": "25457e3a.564dda",
1144         "wires": [
1145             []
1146         ]
1147     },
1148     {
1149         "id": "6f10c8a6.d01ab",
1150         "type": "set",
1151         "name": "set pathname",
1152         "xml": "<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-vfmodule-ra-assignment-' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.vf-module-id + '.log'`\" />\n",
1153         "comments": "",
1154         "x": 325.5,
1155         "y": 1639.0000114440918,
1156         "z": "25457e3a.564dda",
1157         "wires": []
1158     },
1159     {
1160         "id": "6ddd33ca.15d1fc",
1161         "type": "record",
1162         "name": "record",
1163         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"DONE: vfmodule-ra-assignment\"/>\n\n",
1164         "comments": "",
1165         "outputs": 1,
1166         "x": 304.00000381469727,
1167         "y": 1590.2500190734863,
1168         "z": "25457e3a.564dda",
1169         "wires": [
1170             []
1171         ]
1172     }
1173 ]