Bug fix in self-serve api
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.json
1 [
2     {
3         "id": "eef285aa.adcf08",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 112,
8         "y": 56,
9         "z": "37ca9f86.ffaea",
10         "wires": [
11             [
12                 "7fa82770.3d11a8"
13             ]
14         ]
15     },
16     {
17         "id": "7fa82770.3d11a8",
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": 388,
26         "y": 57,
27         "z": "37ca9f86.ffaea",
28         "wires": [
29             [
30                 "4815508b.fe2d3"
31             ]
32         ]
33     },
34     {
35         "id": "4815508b.fe2d3",
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": 739,
42         "y": 57,
43         "z": "37ca9f86.ffaea",
44         "wires": [
45             [
46                 "8883fb88.18b918"
47             ]
48         ]
49     },
50     {
51         "id": "8883fb88.18b918",
52         "type": "block",
53         "name": "block atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 124.5,
59         "y": 139,
60         "z": "37ca9f86.ffaea",
61         "wires": [
62             [
63                 "b71ab664.30d0b8",
64                 "664b49d9.a8ed68",
65                 "b69a7caa.2ef72",
66                 "fd0f0fe.b870bf",
67                 "4556977.80dab68",
68                 "f4d2dad9.651818",
69                 "c1dc247a.f59bd8",
70                 "1584a1f4.77616e",
71                 "d7fdb480.d92b28",
72                 "34d4733f.ad277c",
73                 "1f798081.68b1ef",
74                 "860049fc.959878",
75                 "53829451.b6abdc",
76                 "f39abee0.7b55a",
77                 "5ee34dfd.0df884",
78                 "a487406b.42d53"
79             ]
80         ]
81     },
82     {
83         "id": "664b49d9.a8ed68",
84         "type": "set",
85         "name": "set",
86         "xml": "<set>\n   <parameter name=\"cds\" value=\"execution-service_process.\"/>\n   <parameter name=\"`$cds + 'commonHeader.requestId'`\" 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=\"`$cds + 'commonHeader.subRequestId'`\" value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" />   \n   <parameter name=\"`$cds + 'actionIdentifiers.actionName'`\" value=\"resource-assignment\"/> \n   <parameter name=\"responsePrefix\" value=\"raAssign\" />\n   <parameter name=\"`$cds + 'isNonAppend'`\" value=\"true\"/>\n   <parameter name=\"`$cds + 'commonHeader.originatorId'`\" value=\"SDNC_DG\"/>\n   <parameter name=\"`$cds + 'actionIdentifiers.mode'`\" value=\"sync\"/>\n",
87         "comments": "",
88         "x": 309,
89         "y": 185,
90         "z": "37ca9f86.ffaea",
91         "wires": []
92     },
93     {
94         "id": "f8be6bf3.459048",
95         "type": "outcome",
96         "name": "true",
97         "xml": "<outcome value='true'>",
98         "comments": "",
99         "outputs": 1,
100         "x": 585.2142486572266,
101         "y": 537.4642963409424,
102         "z": "37ca9f86.ffaea",
103         "wires": [
104             [
105                 "70a816d3.209488"
106             ]
107         ]
108     },
109     {
110         "id": "fd0f0fe.b870bf",
111         "type": "for",
112         "name": "for vf-module-topology-operation-input",
113         "xml": "<for silentFailure='true' index='i' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >",
114         "comments": "",
115         "outputs": 1,
116         "x": 408.71431732177734,
117         "y": 402.7143135070801,
118         "z": "37ca9f86.ffaea",
119         "wires": [
120             [
121                 "43cc66c7.9e4908"
122             ]
123         ]
124     },
125     {
126         "id": "48b337df.0e22f8",
127         "type": "set",
128         "name": "set tmp.sdnc-model-name",
129         "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",
130         "comments": "",
131         "x": 1155.428565979004,
132         "y": 335.1428813934326,
133         "z": "37ca9f86.ffaea",
134         "wires": []
135     },
136     {
137         "id": "31ed0071.fe8b9",
138         "type": "outcome",
139         "name": "sdnc_model_name",
140         "xml": "<outcome value='sdnc_model_name'>\n",
141         "comments": "",
142         "outputs": 1,
143         "x": 901.4285659790039,
144         "y": 335.1428813934326,
145         "z": "37ca9f86.ffaea",
146         "wires": [
147             [
148                 "48b337df.0e22f8"
149             ]
150         ]
151     },
152     {
153         "id": "43cc66c7.9e4908",
154         "type": "switchNode",
155         "name": "switch",
156         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name`'>\n\n",
157         "comments": "",
158         "outputs": 1,
159         "x": 663.4285659790039,
160         "y": 402.1428813934326,
161         "z": "37ca9f86.ffaea",
162         "wires": [
163             [
164                 "31ed0071.fe8b9",
165                 "44279893.74a9d8",
166                 "67bd2926.b30418",
167                 "a154fcf0.3dc44"
168             ]
169         ]
170     },
171     {
172         "id": "44279893.74a9d8",
173         "type": "outcome",
174         "name": "sdnc_model_version",
175         "xml": "<outcome value='sdnc_model_version'>\n",
176         "comments": "",
177         "outputs": 1,
178         "x": 904.4285659790039,
179         "y": 381.1428813934326,
180         "z": "37ca9f86.ffaea",
181         "wires": [
182             [
183                 "cf17488c.4f8388"
184             ]
185         ]
186     },
187     {
188         "id": "67bd2926.b30418",
189         "type": "outcome",
190         "name": "vf_module_label",
191         "xml": "<outcome value='vf_module_label'>\n",
192         "comments": "",
193         "outputs": 1,
194         "x": 889.4285659790039,
195         "y": 430.1428813934326,
196         "z": "37ca9f86.ffaea",
197         "wires": [
198             [
199                 "c0c56190.d3b15"
200             ]
201         ]
202     },
203     {
204         "id": "cf17488c.4f8388",
205         "type": "set",
206         "name": "set tmp.sdnc-model-version",
207         "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",
208         "comments": "",
209         "x": 1159.428565979004,
210         "y": 381.1428813934326,
211         "z": "37ca9f86.ffaea",
212         "wires": []
213     },
214     {
215         "id": "c0c56190.d3b15",
216         "type": "set",
217         "name": "set tmp.vf-module-label",
218         "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",
219         "comments": "",
220         "x": 1141.428565979004,
221         "y": 430.1428813934326,
222         "z": "37ca9f86.ffaea",
223         "wires": []
224     },
225     {
226         "id": "e897fa08.d5bf28",
227         "type": "set",
228         "name": "set name-value other JsonString",
229         "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",
230         "comments": "",
231         "x": 1159.428565979004,
232         "y": 481.1428813934326,
233         "z": "37ca9f86.ffaea",
234         "wires": []
235     },
236     {
237         "id": "a154fcf0.3dc44",
238         "type": "outcome",
239         "name": "other",
240         "xml": "<outcome value='Other'>\n",
241         "comments": "",
242         "outputs": 1,
243         "x": 861.4285659790039,
244         "y": 481.1428813934326,
245         "z": "37ca9f86.ffaea",
246         "wires": [
247             [
248                 "e897fa08.d5bf28"
249             ]
250         ]
251     },
252     {
253         "id": "4556977.80dab68",
254         "type": "set",
255         "name": "set configAssignment JsonString",
256         "xml": "<set>\n<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<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<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<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<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<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;'`\"/>",
257         "comments": "",
258         "x": 395.0000190734863,
259         "y": 651,
260         "z": "37ca9f86.ffaea",
261         "wires": []
262     },
263     {
264         "id": "f4d2dad9.651818",
265         "type": "execute",
266         "name": "execute BlueprintProcessingClient",
267         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$prop.cds.url + '/api/v1/execution-service/process'`\" />\n    <parameter name='restapiUser' value='`$prop.cds.user`' />\n    <parameter name='restapiPassword' value='`$prop.cds.pwd`' />\n    <parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name=\"responsePrefix\" value=\"`$responsePrefix`\" />",
268         "comments": "",
269         "outputs": 1,
270         "x": 397.3333435058594,
271         "y": 869.000057220459,
272         "z": "37ca9f86.ffaea",
273         "wires": [
274             [
275                 "8233e320.47afe",
276                 "6398d565.0d7bec"
277             ]
278         ]
279     },
280     {
281         "id": "8233e320.47afe",
282         "type": "failure",
283         "name": "failure",
284         "xml": "<outcome value='failure'>\n",
285         "comments": "",
286         "outputs": 1,
287         "x": 618.3333129882812,
288         "y": 838,
289         "z": "37ca9f86.ffaea",
290         "wires": [
291             [
292                 "ad5923cd.d6bbb"
293             ]
294         ]
295     },
296     {
297         "id": "ad5923cd.d6bbb",
298         "type": "returnFailure",
299         "name": "return failure",
300         "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",
301         "comments": "",
302         "x": 816.3333129882812,
303         "y": 838,
304         "z": "37ca9f86.ffaea",
305         "wires": []
306     },
307     {
308         "id": "1584a1f4.77616e",
309         "type": "for",
310         "name": "for resource-accumulator-resolved-data loop",
311         "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n",
312         "comments": "",
313         "outputs": 1,
314         "x": 427.00001525878906,
315         "y": 1140.3333473205566,
316         "z": "37ca9f86.ffaea",
317         "wires": [
318             [
319                 "a0dff41d.c5f6f8"
320             ]
321         ]
322     },
323     {
324         "id": "b1915485.d1a248",
325         "type": "set",
326         "name": "set from resource-accumulator-resolved-data",
327         "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",
328         "comments": "",
329         "x": 1641.000015258789,
330         "y": 1191.3333473205566,
331         "z": "37ca9f86.ffaea",
332         "wires": []
333     },
334     {
335         "id": "d7fdb480.d92b28",
336         "type": "for",
337         "name": "for capability-data",
338         "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n",
339         "comments": "",
340         "outputs": 1,
341         "x": 346.00001525878906,
342         "y": 1403.3333473205566,
343         "z": "37ca9f86.ffaea",
344         "wires": [
345             [
346                 "57177866.272cc8"
347             ]
348         ]
349     },
350     {
351         "id": "57177866.272cc8",
352         "type": "for",
353         "name": "for key-mapping",
354         "xml": "<for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >",
355         "comments": "",
356         "outputs": 1,
357         "x": 569.0000152587891,
358         "y": 1403.3333473205566,
359         "z": "37ca9f86.ffaea",
360         "wires": [
361             [
362                 "c093b4a1.367fc8"
363             ]
364         ]
365     },
366     {
367         "id": "c1dc247a.f59bd8",
368         "type": "execute",
369         "name": "execute jsonStringToCtx",
370         "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",
371         "comments": "",
372         "outputs": 1,
373         "x": 371.00001525878906,
374         "y": 1061.3333473205566,
375         "z": "37ca9f86.ffaea",
376         "wires": [
377             []
378         ]
379     },
380     {
381         "id": "b71ab664.30d0b8",
382         "type": "execute",
383         "name": "execute generateUUID",
384         "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 ",
385         "comments": "",
386         "outputs": 1,
387         "x": 354,
388         "y": 139,
389         "z": "37ca9f86.ffaea",
390         "wires": [
391             [
392                 "f5981e01.60fd2"
393             ]
394         ]
395     },
396     {
397         "id": "f5981e01.60fd2",
398         "type": "failure",
399         "name": "failure",
400         "xml": "<outcome value='failure'>\n",
401         "comments": "",
402         "outputs": 1,
403         "x": 559,
404         "y": 139,
405         "z": "37ca9f86.ffaea",
406         "wires": [
407             [
408                 "3c5c1bf8.51e694"
409             ]
410         ]
411     },
412     {
413         "id": "3c5c1bf8.51e694",
414         "type": "returnFailure",
415         "name": "return failure",
416         "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",
417         "comments": "",
418         "x": 723,
419         "y": 138,
420         "z": "37ca9f86.ffaea",
421         "wires": []
422     },
423     {
424         "id": "cde17ef3.62e96",
425         "type": "for",
426         "name": "for vnf-parameters-data.param",
427         "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",
428         "comments": "",
429         "outputs": 1,
430         "x": 1400.000015258789,
431         "y": 1140.3333473205566,
432         "z": "37ca9f86.ffaea",
433         "wires": [
434             [
435                 "ee7f99cb.ec6478"
436             ]
437         ]
438     },
439     {
440         "id": "a0dff41d.c5f6f8",
441         "type": "block",
442         "name": "block atomic",
443         "xml": "<block atomic=\"true\">",
444         "atomic": "false",
445         "comments": "",
446         "outputs": 1,
447         "x": 706.0000152587891,
448         "y": 1141.3333473205566,
449         "z": "37ca9f86.ffaea",
450         "wires": [
451             [
452                 "5ba2a252.918fcc",
453                 "9de1e4b8.140328",
454                 "8d20aa37.3155b8"
455             ]
456         ]
457     },
458     {
459         "id": "b69a7caa.2ef72",
460         "type": "switchNode",
461         "name": "switch vf-parameters-data.param_length",
462         "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",
463         "comments": "",
464         "outputs": 1,
465         "x": 426,
466         "y": 240,
467         "z": "37ca9f86.ffaea",
468         "wires": [
469             [
470                 "4afc6166.7a666",
471                 "82ad191e.542718"
472             ]
473         ]
474     },
475     {
476         "id": "4afc6166.7a666",
477         "type": "outcome",
478         "name": "null",
479         "xml": "<outcome value=''>",
480         "comments": "",
481         "outputs": 1,
482         "x": 689.1428833007812,
483         "y": 207.85715293884277,
484         "z": "37ca9f86.ffaea",
485         "wires": [
486             [
487                 "efd0848b.dde0a8"
488             ]
489         ]
490     },
491     {
492         "id": "82ad191e.542718",
493         "type": "other",
494         "name": "other",
495         "xml": "<outcome value='Other'>\n",
496         "comments": "",
497         "outputs": 1,
498         "x": 688.1428833007812,
499         "y": 271.8571529388428,
500         "z": "37ca9f86.ffaea",
501         "wires": [
502             [
503                 "f848b2f3.3c79"
504             ]
505         ]
506     },
507     {
508         "id": "efd0848b.dde0a8",
509         "type": "set",
510         "name": "set pre service param len as 0",
511         "xml": "<set>\n   <parameter name='highnum' value='0' />\n   <parameter name='prehighnum' value='0'/>\n",
512         "comments": "",
513         "x": 902.1428833007812,
514         "y": 207.85715293884277,
515         "z": "37ca9f86.ffaea",
516         "wires": []
517     },
518     {
519         "id": "f848b2f3.3c79",
520         "type": "set",
521         "name": "set pre service param len",
522         "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`' />",
523         "comments": "",
524         "x": 887.1428833007812,
525         "y": 271.8571529388428,
526         "z": "37ca9f86.ffaea",
527         "wires": []
528     },
529     {
530         "id": "ee7f99cb.ec6478",
531         "type": "switchNode",
532         "name": "switch input vnf-name",
533         "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",
534         "comments": "",
535         "outputs": 1,
536         "x": 1658.000015258789,
537         "y": 1140.3333473205566,
538         "z": "37ca9f86.ffaea",
539         "wires": [
540             [
541                 "9cff4b27.b85b38"
542             ]
543         ]
544     },
545     {
546         "id": "9cff4b27.b85b38",
547         "type": "not-found",
548         "name": "true",
549         "xml": "<outcome value='true'>\n",
550         "comments": "",
551         "outputs": 1,
552         "x": 1838.000015258789,
553         "y": 1140.3333473205566,
554         "z": "37ca9f86.ffaea",
555         "wires": [
556             [
557                 "c0fb05df.380d78"
558             ]
559         ]
560     },
561     {
562         "id": "c0fb05df.380d78",
563         "type": "set",
564         "name": "set for existing param name",
565         "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",
566         "comments": "",
567         "x": 2048.000015258789,
568         "y": 1141.3333473205566,
569         "z": "37ca9f86.ffaea",
570         "wires": []
571     },
572     {
573         "id": "8d20aa37.3155b8",
574         "type": "switchNode",
575         "name": "switch tmp.mso.param.not-found",
576         "xml": "<switch test='`$tmp.mso.param.found`'>\n",
577         "comments": "",
578         "outputs": 1,
579         "x": 948.0000152587891,
580         "y": 1193.3333473205566,
581         "z": "37ca9f86.ffaea",
582         "wires": [
583             [
584                 "1c10cd2a.821413"
585             ]
586         ]
587     },
588     {
589         "id": "1c10cd2a.821413",
590         "type": "not-found",
591         "name": "false",
592         "xml": "<outcome value='false'>\n",
593         "comments": "",
594         "outputs": 1,
595         "x": 1182.000015258789,
596         "y": 1192.3333473205566,
597         "z": "37ca9f86.ffaea",
598         "wires": [
599             [
600                 "99896231.f8f2a"
601             ]
602         ]
603     },
604     {
605         "id": "5ba2a252.918fcc",
606         "type": "set",
607         "name": "set for existing param name",
608         "xml": "<set>\n<parameter name='tmp.mso.param.found' value='false' />\n",
609         "comments": "",
610         "x": 932.0000152587891,
611         "y": 1082.3333473205566,
612         "z": "37ca9f86.ffaea",
613         "wires": []
614     },
615     {
616         "id": "9de1e4b8.140328",
617         "type": "switchNode",
618         "name": "switch check length > 0",
619         "xml": "<switch test='`$prehighnum &gt; 0`'>\n",
620         "comments": "",
621         "outputs": 1,
622         "x": 924.5000152587891,
623         "y": 1141.3333473205566,
624         "z": "37ca9f86.ffaea",
625         "wires": [
626             [
627                 "9213bfe0.b1c2f"
628             ]
629         ]
630     },
631     {
632         "id": "9213bfe0.b1c2f",
633         "type": "not-found",
634         "name": "true",
635         "xml": "<outcome value='true'>\n",
636         "comments": "",
637         "outputs": 1,
638         "x": 1171.500015258789,
639         "y": 1141.3333473205566,
640         "z": "37ca9f86.ffaea",
641         "wires": [
642             [
643                 "cde17ef3.62e96"
644             ]
645         ]
646     },
647     {
648         "id": "2ccc2373.2f411c",
649         "type": "for",
650         "name": "for payload",
651         "xml": "<for index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >",
652         "comments": "",
653         "outputs": 1,
654         "x": 1618.000015258789,
655         "y": 1455.3333473205566,
656         "z": "37ca9f86.ffaea",
657         "wires": [
658             [
659                 "f1daaf1.ffce15"
660             ]
661         ]
662     },
663     {
664         "id": "44960d5c.3364a4",
665         "type": "set",
666         "name": "set resource-key",
667         "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",
668         "comments": "",
669         "x": 2017.000015258789,
670         "y": 1396.3333473205566,
671         "z": "37ca9f86.ffaea",
672         "wires": []
673     },
674     {
675         "id": "53d49382.5b17ac",
676         "type": "set",
677         "name": "set output-data ",
678         "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' />",
679         "comments": "",
680         "x": 1196.000015258789,
681         "y": 1357.3333473205566,
682         "z": "37ca9f86.ffaea",
683         "wires": []
684     },
685     {
686         "id": "c093b4a1.367fc8",
687         "type": "for",
688         "name": "for output-key-mapping",
689         "xml": "<for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >",
690         "comments": "",
691         "outputs": 1,
692         "x": 804.0000152587891,
693         "y": 1404.3333473205566,
694         "z": "37ca9f86.ffaea",
695         "wires": [
696             [
697                 "556a862d.ca6cc8"
698             ]
699         ]
700     },
701     {
702         "id": "556a862d.ca6cc8",
703         "type": "block",
704         "name": "block atomic",
705         "xml": "<block atomic=\"true\">",
706         "atomic": "false",
707         "comments": "",
708         "outputs": 1,
709         "x": 999.0000152587891,
710         "y": 1403.3333473205566,
711         "z": "37ca9f86.ffaea",
712         "wires": [
713             [
714                 "53d49382.5b17ac",
715                 "d10a9ec.6fa016",
716                 "1edc412b.57e08f",
717                 "fb512106.96832"
718             ]
719         ]
720     },
721     {
722         "id": "1edc412b.57e08f",
723         "type": "set",
724         "name": "set length",
725         "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",
726         "comments": "",
727         "x": 1195.000015258789,
728         "y": 1455.3333473205566,
729         "z": "37ca9f86.ffaea",
730         "wires": []
731     },
732     {
733         "id": "6398d565.0d7bec",
734         "type": "failure",
735         "name": "not-found",
736         "xml": "<outcome value='not-found'>\n",
737         "comments": "",
738         "outputs": 1,
739         "x": 623.3333129882812,
740         "y": 900,
741         "z": "37ca9f86.ffaea",
742         "wires": [
743             [
744                 "ad5923cd.d6bbb"
745             ]
746         ]
747     },
748     {
749         "id": "d10a9ec.6fa016",
750         "type": "switchNode",
751         "name": "switch payload_length",
752         "xml": "<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n",
753         "comments": "",
754         "outputs": 1,
755         "x": 1225.000015258789,
756         "y": 1404.3333473205566,
757         "z": "37ca9f86.ffaea",
758         "wires": [
759             [
760                 "4ee4b348.8656dc",
761                 "e4f53748.a116e8"
762             ]
763         ]
764     },
765     {
766         "id": "4ee4b348.8656dc",
767         "type": "outcome",
768         "name": "true",
769         "xml": "<outcome value='true'>",
770         "comments": "",
771         "outputs": 1,
772         "x": 1440.000015258789,
773         "y": 1336.3333473205566,
774         "z": "37ca9f86.ffaea",
775         "wires": [
776             []
777         ]
778     },
779     {
780         "id": "e4f53748.a116e8",
781         "type": "other",
782         "name": "false",
783         "xml": "<outcome value='false'>\n",
784         "comments": "",
785         "outputs": 1,
786         "x": 1449.000015258789,
787         "y": 1455.3333473205566,
788         "z": "37ca9f86.ffaea",
789         "wires": [
790             [
791                 "2ccc2373.2f411c"
792             ]
793         ]
794     },
795     {
796         "id": "34d4733f.ad277c",
797         "type": "switchNode",
798         "name": "switch: model info == NULL",
799         "xml": "<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.vf-module-label == ''`\">\n",
800         "comments": "",
801         "outputs": 1,
802         "x": 373.78570556640625,
803         "y": 537.6071863174438,
804         "z": "37ca9f86.ffaea",
805         "wires": [
806             [
807                 "f8be6bf3.459048"
808             ]
809         ]
810     },
811     {
812         "id": "2dcbecbb.bef464",
813         "type": "get-resource",
814         "name": "get VF_MODEL.sdnc_model_name",
815         "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",
816         "comments": "",
817         "outputs": 1,
818         "x": 1051.9285354614258,
819         "y": 538.464297413826,
820         "z": "37ca9f86.ffaea",
821         "wires": [
822             [
823                 "6d48236.8c58cdc",
824                 "77c0ba75.bf78b4",
825                 "3eefac05.6098c4"
826             ]
827         ]
828     },
829     {
830         "id": "6d48236.8c58cdc",
831         "type": "failure",
832         "name": "failure",
833         "xml": "<outcome value='failure'>\n",
834         "comments": "",
835         "outputs": 1,
836         "x": 1295.1427536010742,
837         "y": 538.8451566696167,
838         "z": "37ca9f86.ffaea",
839         "wires": [
840             [
841                 "b60c82bc.a0482"
842             ]
843         ]
844     },
845     {
846         "id": "b60c82bc.a0482",
847         "type": "returnFailure",
848         "name": "return failure",
849         "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",
850         "comments": "",
851         "x": 1476.142734527588,
852         "y": 538.9880638122559,
853         "z": "37ca9f86.ffaea",
854         "wires": []
855     },
856     {
857         "id": "691f618d.9d0b7",
858         "type": "get-resource",
859         "name": "get VF_MODULE_MODEL.vf-module-label",
860         "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",
861         "comments": "",
862         "outputs": 1,
863         "x": 1073.380874633789,
864         "y": 667.3095798492432,
865         "z": "37ca9f86.ffaea",
866         "wires": [
867             [
868                 "7a3b7e53.0cbf9",
869                 "21c1086d.e4f9e8",
870                 "9b560159.d8c39"
871             ]
872         ]
873     },
874     {
875         "id": "7a3b7e53.0cbf9",
876         "type": "failure",
877         "name": "failure",
878         "xml": "<outcome value='failure'>\n",
879         "comments": "",
880         "outputs": 1,
881         "x": 1352.1664581298828,
882         "y": 667.6904038190842,
883         "z": "37ca9f86.ffaea",
884         "wires": [
885             [
886                 "e1cb3e60.4c427"
887             ]
888         ]
889     },
890     {
891         "id": "e1cb3e60.4c427",
892         "type": "returnFailure",
893         "name": "return failure",
894         "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",
895         "comments": "",
896         "x": 1527.166389465332,
897         "y": 667.8333042860031,
898         "z": "37ca9f86.ffaea",
899         "wires": []
900     },
901     {
902         "id": "21c1086d.e4f9e8",
903         "type": "success",
904         "name": "success",
905         "xml": "<outcome value='success'>\n",
906         "comments": "",
907         "outputs": 1,
908         "x": 1362.3808822631836,
909         "y": 747.095287322998,
910         "z": "37ca9f86.ffaea",
911         "wires": [
912             [
913                 "3dd958.a42046a8"
914             ]
915         ]
916     },
917     {
918         "id": "70a816d3.209488",
919         "type": "block",
920         "name": "block : atomic",
921         "xml": "<block atomic=\"true\">",
922         "atomic": "true",
923         "outputs": 1,
924         "x": 760.7380294799805,
925         "y": 537.8452922105789,
926         "z": "37ca9f86.ffaea",
927         "wires": [
928             [
929                 "2dcbecbb.bef464",
930                 "691f618d.9d0b7"
931             ]
932         ]
933     },
934     {
935         "id": "e3b84927.6478a8",
936         "type": "set",
937         "name": "set sdnc-model-name, sdnc-model-version",
938         "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",
939         "comments": "",
940         "x": 1574.42866897583,
941         "y": 618.964334487915,
942         "z": "37ca9f86.ffaea",
943         "wires": []
944     },
945     {
946         "id": "77c0ba75.bf78b4",
947         "type": "success",
948         "name": "success",
949         "xml": "<outcome value='success'>\n",
950         "comments": "",
951         "outputs": 1,
952         "x": 1303.0001411437988,
953         "y": 619.2500095367432,
954         "z": "37ca9f86.ffaea",
955         "wires": [
956             [
957                 "e3b84927.6478a8"
958             ]
959         ]
960     },
961     {
962         "id": "3dd958.a42046a8",
963         "type": "set",
964         "name": "set vf-module-label",
965         "xml": "<set>\n<parameter name='tmp.vf-module-label' value='`$db1.vf-module-model.vf-module-label`' />\n\n\n\n",
966         "comments": "",
967         "x": 1566.821434020996,
968         "y": 748.6786003112793,
969         "z": "37ca9f86.ffaea",
970         "wires": []
971     },
972     {
973         "id": "f1daaf1.ffce15",
974         "type": "block",
975         "name": "block : atomic",
976         "xml": "<block atomic='true'>",
977         "atomic": "true",
978         "comments": "",
979         "outputs": 1,
980         "x": 1795.000015258789,
981         "y": 1454.3333473205566,
982         "z": "37ca9f86.ffaea",
983         "wires": [
984             [
985                 "44960d5c.3364a4",
986                 "4b9e8979.c71658",
987                 "bdf323e8.a11f4"
988             ]
989         ]
990     },
991     {
992         "id": "4b9e8979.c71658",
993         "type": "set",
994         "name": "set length",
995         "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",
996         "comments": "",
997         "x": 2006.000015258789,
998         "y": 1454.3333473205566,
999         "z": "37ca9f86.ffaea",
1000         "wires": []
1001     },
1002     {
1003         "id": "3eefac05.6098c4",
1004         "type": "not-found",
1005         "name": "not-found",
1006         "xml": "<outcome value='not-found'>\n",
1007         "comments": "",
1008         "outputs": 1,
1009         "x": 1305.7500190734863,
1010         "y": 578.5000076293945,
1011         "z": "37ca9f86.ffaea",
1012         "wires": [
1013             [
1014                 "8019c4ec.975338"
1015             ]
1016         ]
1017     },
1018     {
1019         "id": "8019c4ec.975338",
1020         "type": "returnFailure",
1021         "name": "return failure",
1022         "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`\" />",
1023         "comments": "",
1024         "x": 1477.0000228881836,
1025         "y": 577.2500085830688,
1026         "z": "37ca9f86.ffaea",
1027         "wires": []
1028     },
1029     {
1030         "id": "9b560159.d8c39",
1031         "type": "not-found",
1032         "name": "not-found",
1033         "xml": "<outcome value='not-found'>\n",
1034         "comments": "",
1035         "outputs": 1,
1036         "x": 1363.25,
1037         "y": 708.5,
1038         "z": "37ca9f86.ffaea",
1039         "wires": [
1040             [
1041                 "489b8367.0100dc"
1042             ]
1043         ]
1044     },
1045     {
1046         "id": "489b8367.0100dc",
1047         "type": "returnFailure",
1048         "name": "return failure",
1049         "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`\" />",
1050         "comments": "",
1051         "x": 1534.5000038146973,
1052         "y": 707.2500009536743,
1053         "z": "37ca9f86.ffaea",
1054         "wires": []
1055     },
1056     {
1057         "id": "bdf323e8.a11f4",
1058         "type": "set",
1059         "name": "increment length",
1060         "xml": "<set>\n\t<parameter name='num' value='`$num + 1`' />\n",
1061         "comments": "",
1062         "x": 2019.000015258789,
1063         "y": 1520.3333473205566,
1064         "z": "37ca9f86.ffaea",
1065         "wires": []
1066     },
1067     {
1068         "id": "fb512106.96832",
1069         "type": "set",
1070         "name": "increment length",
1071         "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",
1072         "comments": "",
1073         "x": 1212.000015258789,
1074         "y": 1526.3333473205566,
1075         "z": "37ca9f86.ffaea",
1076         "wires": []
1077     },
1078     {
1079         "id": "3d1f3402.e6765c",
1080         "type": "set",
1081         "name": "increment length",
1082         "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",
1083         "comments": "",
1084         "x": 1559.000015258789,
1085         "y": 1251.3333473205566,
1086         "z": "37ca9f86.ffaea",
1087         "wires": []
1088     },
1089     {
1090         "id": "99896231.f8f2a",
1091         "type": "block",
1092         "name": "block : atomic",
1093         "xml": "<block atomic='true'>",
1094         "atomic": "true",
1095         "comments": "",
1096         "outputs": 1,
1097         "x": 1353.000015258789,
1098         "y": 1191.3333473205566,
1099         "z": "37ca9f86.ffaea",
1100         "wires": [
1101             [
1102                 "b1915485.d1a248",
1103                 "3d1f3402.e6765c"
1104             ]
1105         ]
1106     },
1107     {
1108         "id": "1f798081.68b1ef",
1109         "type": "record",
1110         "name": "record",
1111         "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",
1112         "comments": "",
1113         "outputs": 1,
1114         "x": 318.6666603088379,
1115         "y": 801.0000104904175,
1116         "z": "37ca9f86.ffaea",
1117         "wires": [
1118             []
1119         ]
1120     },
1121     {
1122         "id": "860049fc.959878",
1123         "type": "record",
1124         "name": "record",
1125         "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",
1126         "comments": "",
1127         "outputs": 1,
1128         "x": 315.3333282470703,
1129         "y": 956.000018119812,
1130         "z": "37ca9f86.ffaea",
1131         "wires": [
1132             []
1133         ]
1134     },
1135     {
1136         "id": "f39abee0.7b55a",
1137         "type": "execute",
1138         "name": "printContext",
1139         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n",
1140         "comments": "",
1141         "outputs": 1,
1142         "x": 328.25,
1143         "y": 1678.5000133514404,
1144         "z": "37ca9f86.ffaea",
1145         "wires": [
1146             []
1147         ]
1148     },
1149     {
1150         "id": "53829451.b6abdc",
1151         "type": "set",
1152         "name": "set pathname",
1153         "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",
1154         "comments": "",
1155         "x": 334.5,
1156         "y": 1626.0000114440918,
1157         "z": "37ca9f86.ffaea",
1158         "wires": []
1159     },
1160     {
1161         "id": "5ee34dfd.0df884",
1162         "type": "record",
1163         "name": "record",
1164         "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",
1165         "comments": "",
1166         "outputs": 1,
1167         "x": 313.00000381469727,
1168         "y": 1577.2500190734863,
1169         "z": "37ca9f86.ffaea",
1170         "wires": [
1171             []
1172         ]
1173     },
1174     {
1175         "id": "a487406b.42d53",
1176         "type": "set",
1177         "name": "set updateJsonPayload",
1178         "xml": "<set>\n\t<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload9 + '}'`\" />\n    <parameter name=\"`$cds + 'actionIdentifiers.blueprintName'`\" value='`$tmp.sdnc-model-name`' />\n    <parameter name=\"`$cds + 'actionIdentifiers.blueprintVersion'`\" value='`$tmp.sdnc-model-version`' />\n    <parameter name=\"`$cds + 'payload.template-prefix'`\" value='`$tmp.sdnc-artifact-name`' />\n    <parameter name=\"`$cds + 'payload.resource-assignment-request.resource-assignment-properties'`\" value='`$tmp.json-payload`' />",
1179         "comments": "",
1180         "x": 369.0000228881836,
1181         "y": 702.6667098999023,
1182         "z": "37ca9f86.ffaea",
1183         "wires": []
1184     }
1185 ]