Generic resource API DG catch up
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vfmodule-ra-assignment.json
1 [\r
2     {\r
3         "id": "c9662316.ac32e",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 140,\r
8         "y": 71,\r
9         "z": "ef8bfa93.df0a88",\r
10         "wires": [\r
11             [\r
12                 "21b107f1.c4e3d"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "21b107f1.c4e3d",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 416,\r
26         "y": 72,\r
27         "z": "ef8bfa93.df0a88",\r
28         "wires": [\r
29             [\r
30                 "d31bcb5e.2d5ca8"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "d31bcb5e.2d5ca8",\r
36         "type": "method",\r
37         "name": "self-serve-vfmodule-ra-assignment",\r
38         "xml": "<method rpc='self-serve-vfmodule-ra-assignment' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 767,\r
42         "y": 72,\r
43         "z": "ef8bfa93.df0a88",\r
44         "wires": [\r
45             [\r
46                 "9ca2bb77.96bf4"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "9ca2bb77.96bf4",\r
52         "type": "block",\r
53         "name": "block atomic",\r
54         "xml": "<block atomic=\"true\">\n",\r
55         "atomic": "false",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 152.5,\r
59         "y": 154,\r
60         "z": "ef8bfa93.df0a88",\r
61         "wires": [\r
62             [\r
63                 "2c0fae33.03506a",\r
64                 "596beaf0.87988c",\r
65                 "7ef17c42.39d2c4",\r
66                 "32736a18.7a6e3e",\r
67                 "73f5ad8e.f8c2b4",\r
68                 "1ce514a9.9e4f13",\r
69                 "1d654029.0ef398",\r
70                 "bfb02940.6bc4e",\r
71                 "ddd3f7c.3d06a88",\r
72                 "2a15b80c.c3724"\r
73             ]\r
74         ]\r
75     },\r
76     {\r
77         "id": "596beaf0.87988c",\r
78         "type": "set",\r
79         "name": "set",\r
80         "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-action\"/> \n   <parameter name=\"responsePrefix\" value=\"sriovAssign\" />\n",\r
81         "comments": "",\r
82         "x": 337,\r
83         "y": 200,\r
84         "z": "ef8bfa93.df0a88",\r
85         "wires": []\r
86     },\r
87     {\r
88         "id": "3343905.7d2db7",\r
89         "type": "outcome",\r
90         "name": "true",\r
91         "xml": "<outcome value='true'>",\r
92         "comments": "",\r
93         "outputs": 1,\r
94         "x": 615.714241027832,\r
95         "y": 583.7142734527588,\r
96         "z": "ef8bfa93.df0a88",\r
97         "wires": [\r
98             [\r
99                 "5ca9b35e.48b424"\r
100             ]\r
101         ]\r
102     },\r
103     {\r
104         "id": "32736a18.7a6e3e",\r
105         "type": "for",\r
106         "name": "for vf-module-topology-operation-input",\r
107         "xml": "<for index='i' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >",\r
108         "comments": "",\r
109         "outputs": 1,\r
110         "x": 436.71431732177734,\r
111         "y": 417.7143135070801,\r
112         "z": "ef8bfa93.df0a88",\r
113         "wires": [\r
114             [\r
115                 "608765da.d64014"\r
116             ]\r
117         ]\r
118     },\r
119     {\r
120         "id": "b1a3d4f4.dab168",\r
121         "type": "set",\r
122         "name": "set tmp.sdnc-model-name",\r
123         "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",\r
124         "comments": "",\r
125         "x": 1183.428565979004,\r
126         "y": 350.1428813934326,\r
127         "z": "ef8bfa93.df0a88",\r
128         "wires": []\r
129     },\r
130     {\r
131         "id": "9432ab6d.80ccd8",\r
132         "type": "outcome",\r
133         "name": "sdnc_model_name",\r
134         "xml": "<outcome value='sdnc_model_name'>\n",\r
135         "comments": "",\r
136         "outputs": 1,\r
137         "x": 929.4285659790039,\r
138         "y": 350.1428813934326,\r
139         "z": "ef8bfa93.df0a88",\r
140         "wires": [\r
141             [\r
142                 "b1a3d4f4.dab168"\r
143             ]\r
144         ]\r
145     },\r
146     {\r
147         "id": "608765da.d64014",\r
148         "type": "switchNode",\r
149         "name": "switch",\r
150         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name`'>\n\n",\r
151         "comments": "",\r
152         "outputs": 1,\r
153         "x": 691.4285659790039,\r
154         "y": 417.1428813934326,\r
155         "z": "ef8bfa93.df0a88",\r
156         "wires": [\r
157             [\r
158                 "9432ab6d.80ccd8",\r
159                 "16c88141.7648bf",\r
160                 "a413dd31.e3a578",\r
161                 "4598c824.2fd3b8"\r
162             ]\r
163         ]\r
164     },\r
165     {\r
166         "id": "16c88141.7648bf",\r
167         "type": "outcome",\r
168         "name": "sdnc_model_version",\r
169         "xml": "<outcome value='sdnc_model_version'>\n",\r
170         "comments": "",\r
171         "outputs": 1,\r
172         "x": 932.4285659790039,\r
173         "y": 396.1428813934326,\r
174         "z": "ef8bfa93.df0a88",\r
175         "wires": [\r
176             [\r
177                 "326cbf96.c3fe8"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "a413dd31.e3a578",\r
183         "type": "outcome",\r
184         "name": "vf_module_label",\r
185         "xml": "<outcome value='vf_module_label'>\n",\r
186         "comments": "",\r
187         "outputs": 1,\r
188         "x": 917.4285659790039,\r
189         "y": 445.1428813934326,\r
190         "z": "ef8bfa93.df0a88",\r
191         "wires": [\r
192             [\r
193                 "2dac59d5.d60f76"\r
194             ]\r
195         ]\r
196     },\r
197     {\r
198         "id": "326cbf96.c3fe8",\r
199         "type": "set",\r
200         "name": "set tmp.sdnc-model-version",\r
201         "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",\r
202         "comments": "",\r
203         "x": 1187.428565979004,\r
204         "y": 396.1428813934326,\r
205         "z": "ef8bfa93.df0a88",\r
206         "wires": []\r
207     },\r
208     {\r
209         "id": "2dac59d5.d60f76",\r
210         "type": "set",\r
211         "name": "set tmp.vf-module-label",\r
212         "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",\r
213         "comments": "",\r
214         "x": 1169.428565979004,\r
215         "y": 445.1428813934326,\r
216         "z": "ef8bfa93.df0a88",\r
217         "wires": []\r
218     },\r
219     {\r
220         "id": "c56fc5e4.f56c68",\r
221         "type": "set",\r
222         "name": "set name-value other JsonString",\r
223         "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",\r
224         "comments": "",\r
225         "x": 1187.428565979004,\r
226         "y": 496.1428813934326,\r
227         "z": "ef8bfa93.df0a88",\r
228         "wires": []\r
229     },\r
230     {\r
231         "id": "4598c824.2fd3b8",\r
232         "type": "outcome",\r
233         "name": "other",\r
234         "xml": "<outcome value='Other'>\n",\r
235         "comments": "",\r
236         "outputs": 1,\r
237         "x": 889.4285659790039,\r
238         "y": 496.1428813934326,\r
239         "z": "ef8bfa93.df0a88",\r
240         "wires": [\r
241             [\r
242                 "c56fc5e4.f56c68"\r
243             ]\r
244         ]\r
245     },\r
246     {\r
247         "id": "73f5ad8e.f8c2b4",\r
248         "type": "set",\r
249         "name": "set configAssignment JsonString",\r
250         "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",\r
251         "comments": "",\r
252         "x": 408,\r
253         "y": 710,\r
254         "z": "ef8bfa93.df0a88",\r
255         "wires": []\r
256     },\r
257     {\r
258         "id": "1ce514a9.9e4f13",\r
259         "type": "execute",\r
260         "name": "execute ConfigAssignment",\r
261         "xml": "<execute plugin='org.openecomp.sdnc.config.assignment.service.ConfigAssignmentNode' method='process'>\n\t<parameter name=\"request-id\" value='`$request-id`' />\n\t<parameter name=\"resource-id\" value='`$resource-id`' />         \n\t<parameter name=\"resource-type\" value='`$resource-type`' />\n\t<parameter name=\"action-name\" value='`$action-name`' />\n\t<parameter name=\"template-names\" value=\"`'[&quot;' + $tmp.vf-module-label + '&quot;]'`\" />\n\t<parameter name=\"service-template-name\" value='`$tmp.sdnc-model-name`' />\n\t<parameter name=\"service-template-version\" value='`$tmp.sdnc-model-version`' />\n\t<parameter name='input-data' value='`$tmp.config-name-value-payload91`' />\n\t<parameter name=\"prifix\" value=\"sriovAssign\" />",\r
262         "comments": "",\r
263         "outputs": 1,\r
264         "x": 394,\r
265         "y": 788,\r
266         "z": "ef8bfa93.df0a88",\r
267         "wires": [\r
268             [\r
269                 "e80696e3.2921b",\r
270                 "5b41a4d9.9a6094"\r
271             ]\r
272         ]\r
273     },\r
274     {\r
275         "id": "e80696e3.2921b",\r
276         "type": "failure",\r
277         "name": "failure",\r
278         "xml": "<outcome value='failure'>\n",\r
279         "comments": "",\r
280         "outputs": 1,\r
281         "x": 584,\r
282         "y": 764,\r
283         "z": "ef8bfa93.df0a88",\r
284         "wires": [\r
285             [\r
286                 "f656773c.1942a"\r
287             ]\r
288         ]\r
289     },\r
290     {\r
291         "id": "f656773c.1942a",\r
292         "type": "returnFailure",\r
293         "name": "return failure",\r
294         "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",\r
295         "comments": "",\r
296         "x": 782,\r
297         "y": 764,\r
298         "z": "ef8bfa93.df0a88",\r
299         "wires": []\r
300     },\r
301     {\r
302         "id": "bfb02940.6bc4e",\r
303         "type": "for",\r
304         "name": "for resource-accumulator-resolved-data loop",\r
305         "xml": "<for index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n",\r
306         "comments": "",\r
307         "outputs": 1,\r
308         "x": 440,\r
309         "y": 947,\r
310         "z": "ef8bfa93.df0a88",\r
311         "wires": [\r
312             [\r
313                 "db7d4151.0bea98"\r
314             ]\r
315         ]\r
316     },\r
317     {\r
318         "id": "ab9a8a47.e5b7a",\r
319         "type": "set",\r
320         "name": "set from resource-accumulator-resolved-data",\r
321         "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='highnum' value='`$highnum + 1`' />\n",\r
322         "comments": "",\r
323         "x": 1472,\r
324         "y": 999,\r
325         "z": "ef8bfa93.df0a88",\r
326         "wires": []\r
327     },\r
328     {\r
329         "id": "ddd3f7c.3d06a88",\r
330         "type": "for",\r
331         "name": "for capability-data",\r
332         "xml": "<for index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n",\r
333         "comments": "",\r
334         "outputs": 1,\r
335         "x": 359,\r
336         "y": 1210,\r
337         "z": "ef8bfa93.df0a88",\r
338         "wires": [\r
339             [\r
340                 "f9174c91.e66bd"\r
341             ]\r
342         ]\r
343     },\r
344     {\r
345         "id": "45ea44cc.7145e4",\r
346         "type": "for",\r
347         "name": "for key-mapping",\r
348         "xml": "<for index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >",\r
349         "comments": "",\r
350         "outputs": 1,\r
351         "x": 749,\r
352         "y": 1250,\r
353         "z": "ef8bfa93.df0a88",\r
354         "wires": [\r
355             [\r
356                 "3a33ccb3.6e1eec"\r
357             ]\r
358         ]\r
359     },\r
360     {\r
361         "id": "f9174c91.e66bd",\r
362         "type": "block",\r
363         "name": "block atomic",\r
364         "xml": "<block atomic=\"true\">",\r
365         "atomic": "false",\r
366         "comments": "",\r
367         "outputs": 1,\r
368         "x": 536,\r
369         "y": 1210,\r
370         "z": "ef8bfa93.df0a88",\r
371         "wires": [\r
372             [\r
373                 "5d4b471e.9a6278",\r
374                 "45ea44cc.7145e4"\r
375             ]\r
376         ]\r
377     },\r
378     {\r
379         "id": "5d4b471e.9a6278",\r
380         "type": "set",\r
381         "name": "set counter",\r
382         "xml": "<set>\n<parameter name='num' value='0' />",\r
383         "comments": "",\r
384         "x": 710,\r
385         "y": 1186,\r
386         "z": "ef8bfa93.df0a88",\r
387         "wires": []\r
388     },\r
389     {\r
390         "id": "1d654029.0ef398",\r
391         "type": "execute",\r
392         "name": "execute jsonStringToCtx",\r
393         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'sriovAssign.mashed-data.' + $tmp.vf-module-label`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n",\r
394         "comments": "",\r
395         "outputs": 1,\r
396         "x": 384,\r
397         "y": 868,\r
398         "z": "ef8bfa93.df0a88",\r
399         "wires": [\r
400             []\r
401         ]\r
402     },\r
403     {\r
404         "id": "2c0fae33.03506a",\r
405         "type": "execute",\r
406         "name": "execute generateUUID",\r
407         "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 ",\r
408         "comments": "",\r
409         "outputs": 1,\r
410         "x": 382,\r
411         "y": 154,\r
412         "z": "ef8bfa93.df0a88",\r
413         "wires": [\r
414             [\r
415                 "1479b86b.88bcf8"\r
416             ]\r
417         ]\r
418     },\r
419     {\r
420         "id": "1479b86b.88bcf8",\r
421         "type": "failure",\r
422         "name": "failure",\r
423         "xml": "<outcome value='failure'>\n",\r
424         "comments": "",\r
425         "outputs": 1,\r
426         "x": 587,\r
427         "y": 154,\r
428         "z": "ef8bfa93.df0a88",\r
429         "wires": [\r
430             [\r
431                 "85890471.7922f8"\r
432             ]\r
433         ]\r
434     },\r
435     {\r
436         "id": "85890471.7922f8",\r
437         "type": "returnFailure",\r
438         "name": "return failure",\r
439         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"generateUUID is failed\" />\n",\r
440         "comments": "",\r
441         "x": 751,\r
442         "y": 153,\r
443         "z": "ef8bfa93.df0a88",\r
444         "wires": []\r
445     },\r
446     {\r
447         "id": "299a7a59.42e276",\r
448         "type": "for",\r
449         "name": "for vnf-parameters-data.param",\r
450         "xml": "<for 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",\r
451         "comments": "",\r
452         "outputs": 1,\r
453         "x": 1413,\r
454         "y": 947,\r
455         "z": "ef8bfa93.df0a88",\r
456         "wires": [\r
457             [\r
458                 "1e59b282.7615bd"\r
459             ]\r
460         ]\r
461     },\r
462     {\r
463         "id": "db7d4151.0bea98",\r
464         "type": "block",\r
465         "name": "block atomic",\r
466         "xml": "<block atomic=\"true\">",\r
467         "atomic": "false",\r
468         "comments": "",\r
469         "outputs": 1,\r
470         "x": 719,\r
471         "y": 948,\r
472         "z": "ef8bfa93.df0a88",\r
473         "wires": [\r
474             [\r
475                 "494eddf.a3c6824",\r
476                 "84e97247.edaa68",\r
477                 "a43a651a.cb999"\r
478             ]\r
479         ]\r
480     },\r
481     {\r
482         "id": "7ef17c42.39d2c4",\r
483         "type": "switchNode",\r
484         "name": "switch vf-parameters-data.param_length",\r
485         "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",\r
486         "comments": "",\r
487         "outputs": 1,\r
488         "x": 454,\r
489         "y": 255,\r
490         "z": "ef8bfa93.df0a88",\r
491         "wires": [\r
492             [\r
493                 "fb6f83cb.1cddd8",\r
494                 "5a450db0.8182fc"\r
495             ]\r
496         ]\r
497     },\r
498     {\r
499         "id": "fb6f83cb.1cddd8",\r
500         "type": "outcome",\r
501         "name": "null",\r
502         "xml": "<outcome value=''>",\r
503         "comments": "",\r
504         "outputs": 1,\r
505         "x": 717.1428833007812,\r
506         "y": 222.85715293884277,\r
507         "z": "ef8bfa93.df0a88",\r
508         "wires": [\r
509             [\r
510                 "756afc2e.e2ed0c"\r
511             ]\r
512         ]\r
513     },\r
514     {\r
515         "id": "5a450db0.8182fc",\r
516         "type": "other",\r
517         "name": "other",\r
518         "xml": "<outcome value='Other'>\n",\r
519         "comments": "",\r
520         "outputs": 1,\r
521         "x": 716.1428833007812,\r
522         "y": 286.8571529388428,\r
523         "z": "ef8bfa93.df0a88",\r
524         "wires": [\r
525             [\r
526                 "f1c2e566.b878b"\r
527             ]\r
528         ]\r
529     },\r
530     {\r
531         "id": "756afc2e.e2ed0c",\r
532         "type": "set",\r
533         "name": "set pre service param len as 0",\r
534         "xml": "<set>\n   <parameter name='highnum' value='0' />\n   <parameter name='prehighnum' value='0'/>\n",\r
535         "comments": "",\r
536         "x": 930.1428833007812,\r
537         "y": 222.85715293884277,\r
538         "z": "ef8bfa93.df0a88",\r
539         "wires": []\r
540     },\r
541     {\r
542         "id": "f1c2e566.b878b",\r
543         "type": "set",\r
544         "name": "set pre service param len",\r
545         "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`' />",\r
546         "comments": "",\r
547         "x": 915.1428833007812,\r
548         "y": 286.8571529388428,\r
549         "z": "ef8bfa93.df0a88",\r
550         "wires": []\r
551     },\r
552     {\r
553         "id": "1e59b282.7615bd",\r
554         "type": "switchNode",\r
555         "name": "switch input vnf-name",\r
556         "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",\r
557         "comments": "",\r
558         "outputs": 1,\r
559         "x": 1671,\r
560         "y": 947,\r
561         "z": "ef8bfa93.df0a88",\r
562         "wires": [\r
563             [\r
564                 "f957b9e3.d73258"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "f957b9e3.d73258",\r
570         "type": "not-found",\r
571         "name": "true",\r
572         "xml": "<outcome value='true'>\n",\r
573         "comments": "",\r
574         "outputs": 1,\r
575         "x": 1851,\r
576         "y": 947,\r
577         "z": "ef8bfa93.df0a88",\r
578         "wires": [\r
579             [\r
580                 "9990f366.a5d44"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "9990f366.a5d44",\r
586         "type": "set",\r
587         "name": "set for existing param name",\r
588         "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",\r
589         "comments": "",\r
590         "x": 2061,\r
591         "y": 948,\r
592         "z": "ef8bfa93.df0a88",\r
593         "wires": []\r
594     },\r
595     {\r
596         "id": "a43a651a.cb999",\r
597         "type": "switchNode",\r
598         "name": "switch tmp.mso.param.not-found",\r
599         "xml": "<switch test='`$tmp.mso.param.found`'>\n",\r
600         "comments": "",\r
601         "outputs": 1,\r
602         "x": 961,\r
603         "y": 1000,\r
604         "z": "ef8bfa93.df0a88",\r
605         "wires": [\r
606             [\r
607                 "3b81a77e.2652c8"\r
608             ]\r
609         ]\r
610     },\r
611     {\r
612         "id": "3b81a77e.2652c8",\r
613         "type": "not-found",\r
614         "name": "false",\r
615         "xml": "<outcome value='false'>\n",\r
616         "comments": "",\r
617         "outputs": 1,\r
618         "x": 1195,\r
619         "y": 999,\r
620         "z": "ef8bfa93.df0a88",\r
621         "wires": [\r
622             [\r
623                 "ab9a8a47.e5b7a"\r
624             ]\r
625         ]\r
626     },\r
627     {\r
628         "id": "494eddf.a3c6824",\r
629         "type": "set",\r
630         "name": "set for existing param name",\r
631         "xml": "<set>\n<parameter name='tmp.mso.param.found' value='false' />\n",\r
632         "comments": "",\r
633         "x": 945,\r
634         "y": 889,\r
635         "z": "ef8bfa93.df0a88",\r
636         "wires": []\r
637     },\r
638     {\r
639         "id": "84e97247.edaa68",\r
640         "type": "switchNode",\r
641         "name": "switch check length > 0",\r
642         "xml": "<switch test='`$prehighnum &gt; 0`'>\n",\r
643         "comments": "",\r
644         "outputs": 1,\r
645         "x": 937.5,\r
646         "y": 948,\r
647         "z": "ef8bfa93.df0a88",\r
648         "wires": [\r
649             [\r
650                 "69b58dbb.69cf14"\r
651             ]\r
652         ]\r
653     },\r
654     {\r
655         "id": "69b58dbb.69cf14",\r
656         "type": "not-found",\r
657         "name": "true",\r
658         "xml": "<outcome value='true'>\n",\r
659         "comments": "",\r
660         "outputs": 1,\r
661         "x": 1184.5,\r
662         "y": 948,\r
663         "z": "ef8bfa93.df0a88",\r
664         "wires": [\r
665             [\r
666                 "299a7a59.42e276"\r
667             ]\r
668         ]\r
669     },\r
670     {\r
671         "id": "c7550dfb.7c233",\r
672         "type": "for",\r
673         "name": "for payload",\r
674         "xml": "<for index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >",\r
675         "comments": "",\r
676         "outputs": 1,\r
677         "x": 1980,\r
678         "y": 1301,\r
679         "z": "ef8bfa93.df0a88",\r
680         "wires": [\r
681             [\r
682                 "4fe60d9.7cf3174"\r
683             ]\r
684         ]\r
685     },\r
686     {\r
687         "id": "f16717f0.87dca",\r
688         "type": "set",\r
689         "name": "set resource-key",\r
690         "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",\r
691         "comments": "",\r
692         "x": 2381,\r
693         "y": 1298,\r
694         "z": "ef8bfa93.df0a88",\r
695         "wires": []\r
696     },\r
697     {\r
698         "id": "2781e088.ca7918",\r
699         "type": "set",\r
700         "name": "set output-data ",\r
701         "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'/>",\r
702         "comments": "",\r
703         "x": 1558,\r
704         "y": 1203,\r
705         "z": "ef8bfa93.df0a88",\r
706         "wires": []\r
707     },\r
708     {\r
709         "id": "3b54118e.faf90e",\r
710         "type": "for",\r
711         "name": "for output-key-mapping",\r
712         "xml": "<for index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >",\r
713         "comments": "",\r
714         "outputs": 1,\r
715         "x": 1166,\r
716         "y": 1250,\r
717         "z": "ef8bfa93.df0a88",\r
718         "wires": [\r
719             [\r
720                 "a9d3248b.7f1778"\r
721             ]\r
722         ]\r
723     },\r
724     {\r
725         "id": "3a33ccb3.6e1eec",\r
726         "type": "block",\r
727         "name": "block : atomic",\r
728         "xml": "<block atomic='true'>",\r
729         "atomic": "true",\r
730         "comments": "",\r
731         "outputs": 1,\r
732         "x": 967,\r
733         "y": 1251,\r
734         "z": "ef8bfa93.df0a88",\r
735         "wires": [\r
736             [\r
737                 "3b54118e.faf90e"\r
738             ]\r
739         ]\r
740     },\r
741     {\r
742         "id": "a9d3248b.7f1778",\r
743         "type": "block",\r
744         "name": "block atomic",\r
745         "xml": "<block atomic=\"true\">",\r
746         "atomic": "false",\r
747         "comments": "",\r
748         "outputs": 1,\r
749         "x": 1361,\r
750         "y": 1249,\r
751         "z": "ef8bfa93.df0a88",\r
752         "wires": [\r
753             [\r
754                 "2781e088.ca7918",\r
755                 "4ee85384.52e0fc",\r
756                 "c974039b.190718"\r
757             ]\r
758         ]\r
759     },\r
760     {\r
761         "id": "c974039b.190718",\r
762         "type": "set",\r
763         "name": "set length",\r
764         "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<parameter name='highnum' value='`$highnum + 1`' />\n",\r
765         "comments": "",\r
766         "x": 1557,\r
767         "y": 1301,\r
768         "z": "ef8bfa93.df0a88",\r
769         "wires": []\r
770     },\r
771     {\r
772         "id": "5b41a4d9.9a6094",\r
773         "type": "failure",\r
774         "name": "not-found",\r
775         "xml": "<outcome value='not-found'>\n",\r
776         "comments": "",\r
777         "outputs": 1,\r
778         "x": 589,\r
779         "y": 826,\r
780         "z": "ef8bfa93.df0a88",\r
781         "wires": [\r
782             [\r
783                 "f656773c.1942a"\r
784             ]\r
785         ]\r
786     },\r
787     {\r
788         "id": "4ee85384.52e0fc",\r
789         "type": "switchNode",\r
790         "name": "switch payload_length",\r
791         "xml": "<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n",\r
792         "comments": "",\r
793         "outputs": 1,\r
794         "x": 1587,\r
795         "y": 1250,\r
796         "z": "ef8bfa93.df0a88",\r
797         "wires": [\r
798             [\r
799                 "4707dd6b.5ca8dc",\r
800                 "b4417e84.e898c8"\r
801             ]\r
802         ]\r
803     },\r
804     {\r
805         "id": "4707dd6b.5ca8dc",\r
806         "type": "outcome",\r
807         "name": "true",\r
808         "xml": "<outcome value='true'>",\r
809         "comments": "",\r
810         "outputs": 1,\r
811         "x": 1802,\r
812         "y": 1182,\r
813         "z": "ef8bfa93.df0a88",\r
814         "wires": [\r
815             []\r
816         ]\r
817     },\r
818     {\r
819         "id": "b4417e84.e898c8",\r
820         "type": "other",\r
821         "name": "false",\r
822         "xml": "<outcome value='false'>\n",\r
823         "comments": "",\r
824         "outputs": 1,\r
825         "x": 1811,\r
826         "y": 1301,\r
827         "z": "ef8bfa93.df0a88",\r
828         "wires": [\r
829             [\r
830                 "c7550dfb.7c233"\r
831             ]\r
832         ]\r
833     },\r
834     {\r
835         "id": "2a15b80c.c3724",\r
836         "type": "switchNode",\r
837         "name": "switch: model info == NULL",\r
838         "xml": "<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.vf-module-label == ''`\">\n",\r
839         "comments": "",\r
840         "outputs": 1,\r
841         "x": 404.2856979370117,\r
842         "y": 583.8571634292603,\r
843         "z": "ef8bfa93.df0a88",\r
844         "wires": [\r
845             [\r
846                 "3343905.7d2db7"\r
847             ]\r
848         ]\r
849     },\r
850     {\r
851         "id": "b7aa9106.9bd0c8",\r
852         "type": "get-resource",\r
853         "name": "get VF_MODEL.sdnc_model_name",\r
854         "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",\r
855         "comments": "",\r
856         "outputs": 1,\r
857         "x": 1082.4285278320312,\r
858         "y": 584.7142745256424,\r
859         "z": "ef8bfa93.df0a88",\r
860         "wires": [\r
861             [\r
862                 "7239169c.68f35",\r
863                 "d4787498.b5b308"\r
864             ]\r
865         ]\r
866     },\r
867     {\r
868         "id": "7239169c.68f35",\r
869         "type": "failure",\r
870         "name": "failure",\r
871         "xml": "<outcome value='failure'>\n",\r
872         "comments": "",\r
873         "outputs": 1,\r
874         "x": 1325.6427459716797,\r
875         "y": 585.0951337814331,\r
876         "z": "ef8bfa93.df0a88",\r
877         "wires": [\r
878             [\r
879                 "403c103e.67045"\r
880             ]\r
881         ]\r
882     },\r
883     {\r
884         "id": "403c103e.67045",\r
885         "type": "returnFailure",\r
886         "name": "return failure",\r
887         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error reading VF_MODEL table\" />\n",\r
888         "comments": "",\r
889         "x": 1506.6427268981934,\r
890         "y": 585.2380409240723,\r
891         "z": "ef8bfa93.df0a88",\r
892         "wires": []\r
893     },\r
894     {\r
895         "id": "feba8980.827e58",\r
896         "type": "get-resource",\r
897         "name": "get VF_MODULE_MODEL.vf-module-label",\r
898         "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 vf_customization_uuid = $vf-module-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n  pfx='db1.vf-module-model'>\n\n",\r
899         "comments": "",\r
900         "outputs": 1,\r
901         "x": 1106.380844116211,\r
902         "y": 674.8095637559891,\r
903         "z": "ef8bfa93.df0a88",\r
904         "wires": [\r
905             [\r
906                 "9cd72e61.04e98",\r
907                 "53281c4d.8fc69c"\r
908             ]\r
909         ]\r
910     },\r
911     {\r
912         "id": "9cd72e61.04e98",\r
913         "type": "failure",\r
914         "name": "failure",\r
915         "xml": "<outcome value='failure'>\n",\r
916         "comments": "",\r
917         "outputs": 1,\r
918         "x": 1385.1664276123047,\r
919         "y": 675.1903877258301,\r
920         "z": "ef8bfa93.df0a88",\r
921         "wires": [\r
922             [\r
923                 "5e04ead0.dcafdc"\r
924             ]\r
925         ]\r
926     },\r
927     {\r
928         "id": "5e04ead0.dcafdc",\r
929         "type": "returnFailure",\r
930         "name": "return failure",\r
931         "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",\r
932         "comments": "",\r
933         "x": 1560.166358947754,\r
934         "y": 675.333288192749,\r
935         "z": "ef8bfa93.df0a88",\r
936         "wires": []\r
937     },\r
938     {\r
939         "id": "53281c4d.8fc69c",\r
940         "type": "success",\r
941         "name": "success",\r
942         "xml": "<outcome value='success'>\n",\r
943         "comments": "",\r
944         "outputs": 1,\r
945         "x": 1390.380874633789,\r
946         "y": 722.0952731370926,\r
947         "z": "ef8bfa93.df0a88",\r
948         "wires": [\r
949             [\r
950                 "a6aee77a.fe795"\r
951             ]\r
952         ]\r
953     },\r
954     {\r
955         "id": "5ca9b35e.48b424",\r
956         "type": "block",\r
957         "name": "block : atomic",\r
958         "xml": "<block atomic=\"true\">",\r
959         "atomic": "true",\r
960         "outputs": 1,\r
961         "x": 791.2380218505859,\r
962         "y": 584.0952693223953,\r
963         "z": "ef8bfa93.df0a88",\r
964         "wires": [\r
965             [\r
966                 "b7aa9106.9bd0c8",\r
967                 "feba8980.827e58"\r
968             ]\r
969         ]\r
970     },\r
971     {\r
972         "id": "9facc6ca.2e06a",\r
973         "type": "set",\r
974         "name": "set sdnc-model-name, sdnc-model-version",\r
975         "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",\r
976         "comments": "",\r
977         "x": 1602.4285888671875,\r
978         "y": 627.7143096923828,\r
979         "z": "ef8bfa93.df0a88",\r
980         "wires": []\r
981     },\r
982     {\r
983         "id": "d4787498.b5b308",\r
984         "type": "success",\r
985         "name": "success",\r
986         "xml": "<outcome value='success'>\n",\r
987         "comments": "",\r
988         "outputs": 1,\r
989         "x": 1331.0000610351562,\r
990         "y": 627.9999847412109,\r
991         "z": "ef8bfa93.df0a88",\r
992         "wires": [\r
993             [\r
994                 "9facc6ca.2e06a"\r
995             ]\r
996         ]\r
997     },\r
998     {\r
999         "id": "a6aee77a.fe795",\r
1000         "type": "set",\r
1001         "name": "set vf-module-label",\r
1002         "xml": "<set>\n<parameter name='tmp.vf-module-label' value='`$db1.vf-module-model.vf-module-label`' />\n\n\n\n",\r
1003         "comments": "",\r
1004         "x": 1658.5714111328125,\r
1005         "y": 722.4286041259766,\r
1006         "z": "ef8bfa93.df0a88",\r
1007         "wires": []\r
1008     },\r
1009     {\r
1010         "id": "4fe60d9.7cf3174",\r
1011         "type": "block",\r
1012         "name": "block : atomic",\r
1013         "xml": "<block atomic='true'>",\r
1014         "atomic": "true",\r
1015         "comments": "",\r
1016         "outputs": 1,\r
1017         "x": 2157,\r
1018         "y": 1300,\r
1019         "z": "ef8bfa93.df0a88",\r
1020         "wires": [\r
1021             [\r
1022                 "f16717f0.87dca",\r
1023                 "a2fc5423.e959a"\r
1024             ]\r
1025         ]\r
1026     },\r
1027     {\r
1028         "id": "a2fc5423.e959a",\r
1029         "type": "set",\r
1030         "name": "set length",\r
1031         "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\t<parameter name='num' value='`$num + 1`' />\n",\r
1032         "comments": "",\r
1033         "x": 2388,\r
1034         "y": 1373,\r
1035         "z": "ef8bfa93.df0a88",\r
1036         "wires": []\r
1037     }\r
1038 ]