Fixed accessing network-input-parameters.
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_validate-vf-module-input.json
1 [
2     {
3         "id": "4aba34b1.1043ac",
4         "type": "block",
5         "name": "block : atomic",
6         "xml": "<block atomic=\"true\">",
7         "atomic": "true",
8         "outputs": 1,
9         "x": 181.66666575840554,
10         "y": 410.83333723885676,
11         "z": "67f5a657.693288",
12         "wires": [
13             [
14                 "2ddf201d.e6ec8",
15                 "4a8dffd1.fdb7f",
16                 "c90f6af4.b82b08",
17                 "80d469b1.3662b8",
18                 "ed9e03ed.5232b",
19                 "db1345cd.afaaf8",
20                 "d431fbda.2a77f8"
21             ]
22         ]
23     },
24     {
25         "id": "2ddf201d.e6ec8",
26         "type": "switchNode",
27         "name": "switch svc-request-id",
28         "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`'>\n",
29         "comments": "",
30         "outputs": 1,
31         "x": 464.4285752432688,
32         "y": 293.91367530822754,
33         "z": "67f5a657.693288",
34         "wires": [
35             [
36                 "68766e97.4040d"
37             ]
38         ]
39     },
40     {
41         "id": "68766e97.4040d",
42         "type": "outcome",
43         "name": "NULL",
44         "xml": "<outcome value=''>",
45         "comments": "",
46         "outputs": 1,
47         "x": 690.1428696768626,
48         "y": 293.9136791229248,
49         "z": "67f5a657.693288",
50         "wires": [
51             [
52                 "d9645ac2.df5c28"
53             ]
54         ]
55     },
56     {
57         "id": "d9645ac2.df5c28",
58         "type": "returnFailure",
59         "name": "return failure",
60         "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
61         "comments": "",
62         "x": 841.5714356558665,
63         "y": 293.9136772155762,
64         "z": "67f5a657.693288",
65         "wires": []
66     },
67     {
68         "id": "4a8dffd1.fdb7f",
69         "type": "switchNode",
70         "name": "switch svc-action",
71         "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n",
72         "comments": "",
73         "outputs": 1,
74         "x": 452.99993841988726,
75         "y": 252.48510687691828,
76         "z": "67f5a657.693288",
77         "wires": [
78             [
79                 "d22c2e3f.6dc6b"
80             ]
81         ]
82     },
83     {
84         "id": "d22c2e3f.6dc6b",
85         "type": "outcome",
86         "name": "NULL",
87         "xml": "<outcome value=''>",
88         "comments": "",
89         "outputs": 1,
90         "x": 688.71429007394,
91         "y": 251.05650465829035,
92         "z": "67f5a657.693288",
93         "wires": [
94             [
95                 "341784df.8e0cbc"
96             ]
97         ]
98     },
99     {
100         "id": "341784df.8e0cbc",
101         "type": "returnFailure",
102         "name": "return failure",
103         "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=\"sdnc-request-header.svc-action is a required input\" />\n",
104         "comments": "",
105         "x": 838.7142633710591,
106         "y": 251.05651419503351,
107         "z": "67f5a657.693288",
108         "wires": []
109     },
110     {
111         "id": "c90f6af4.b82b08",
112         "type": "switchNode",
113         "name": "switch request-action",
114         "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
115         "comments": "",
116         "outputs": 1,
117         "x": 462.999991825649,
118         "y": 336.7708219800677,
119         "z": "67f5a657.693288",
120         "wires": [
121             [
122                 "2c44e3fa.3865fc"
123             ]
124         ]
125     },
126     {
127         "id": "2c44e3fa.3865fc",
128         "type": "outcome",
129         "name": "NULL",
130         "xml": "<outcome value=''>",
131         "comments": "",
132         "outputs": 1,
133         "x": 690.1428653172088,
134         "y": 336.77083287920277,
135         "z": "67f5a657.693288",
136         "wires": [
137             [
138                 "52c9b858.c8ebb8"
139             ]
140         ]
141     },
142     {
143         "id": "52c9b858.c8ebb8",
144         "type": "returnFailure",
145         "name": "return failure",
146         "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=\"request-information.request-action is a required input\" />\n",
147         "comments": "",
148         "x": 841.5714312962127,
149         "y": 336.77083097185414,
150         "z": "67f5a657.693288",
151         "wires": []
152     },
153     {
154         "id": "81912a48.95e3c8",
155         "type": "switchNode",
156         "name": "switch model-customization-id",
157         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.ecomp-model-information.model-customization-uuid`'>\n",
158         "comments": "",
159         "outputs": 1,
160         "x": 994.1312157767161,
161         "y": 558.199610710144,
162         "z": "67f5a657.693288",
163         "wires": [
164             [
165                 "6c3b4585.9f79ac"
166             ]
167         ]
168     },
169     {
170         "id": "6c3b4585.9f79ac",
171         "type": "outcome",
172         "name": "NULL",
173         "xml": "<outcome value=''>",
174         "comments": "",
175         "outputs": 1,
176         "x": 1199.131215776716,
177         "y": 558.1995935440063,
178         "z": "67f5a657.693288",
179         "wires": [
180             [
181                 "cc324c4a.16d68"
182             ]
183         ]
184     },
185     {
186         "id": "cc324c4a.16d68",
187         "type": "returnFailure",
188         "name": "return failure",
189         "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-information.ecomp-model-information.model-customization-uuid is a required input\" />\n",
190         "comments": "",
191         "x": 1350.55978175572,
192         "y": 558.1995916366577,
193         "z": "67f5a657.693288",
194         "wires": []
195     },
196     {
197         "id": "dea8feff.34d7",
198         "type": "switchNode",
199         "name": "switch tenant",
200         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.tenant`'>\n",
201         "comments": "",
202         "outputs": 1,
203         "x": 939.9882943289622,
204         "y": 599.6281213760376,
205         "z": "67f5a657.693288",
206         "wires": [
207             [
208                 "14d041fa.a0ae8e"
209             ]
210         ]
211     },
212     {
213         "id": "14d041fa.a0ae8e",
214         "type": "outcome",
215         "name": "NULL",
216         "xml": "<outcome value=''>",
217         "comments": "",
218         "outputs": 1,
219         "x": 1197.7026116507395,
220         "y": 599.628155708313,
221         "z": "67f5a657.693288",
222         "wires": [
223             [
224                 "3d3e09b5.333e66"
225             ]
226         ]
227     },
228     {
229         "id": "3d3e09b5.333e66",
230         "type": "returnFailure",
231         "name": "return failure",
232         "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-information.vf-module-request-input.tenant is a required input\" />\n",
233         "comments": "",
234         "x": 1349.1311776297434,
235         "y": 599.6281538009644,
236         "z": "67f5a657.693288",
237         "wires": []
238     },
239     {
240         "id": "705f1093.b61a1",
241         "type": "comment",
242         "name": "Validation of required fields",
243         "info": "",
244         "comments": "",
245         "x": 612.9999482291087,
246         "y": 208.19938945770264,
247         "z": "67f5a657.693288",
248         "wires": []
249     },
250     {
251         "id": "80d469b1.3662b8",
252         "type": "switchNode",
253         "name": "switch svc-action",
254         "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n",
255         "comments": "",
256         "outputs": 1,
257         "x": 444.9047066824778,
258         "y": 578.7947607040405,
259         "z": "67f5a657.693288",
260         "wires": [
261             [
262                 "1fa2bfe5.f8a74"
263             ]
264         ]
265     },
266     {
267         "id": "1fa2bfe5.f8a74",
268         "type": "outcome",
269         "name": "assign",
270         "xml": "<outcome value='assign'>\n",
271         "comments": "",
272         "outputs": 1,
273         "x": 607.4047066824778,
274         "y": 578.7947607040405,
275         "z": "67f5a657.693288",
276         "wires": [
277             [
278                 "89cbf621.6d6368"
279             ]
280         ]
281     },
282     {
283         "id": "89cbf621.6d6368",
284         "type": "block",
285         "name": "block : atomic",
286         "xml": "<block atomic=\"true\">",
287         "atomic": "true",
288         "outputs": 1,
289         "x": 762.4047066824778,
290         "y": 578.7947607040405,
291         "z": "67f5a657.693288",
292         "wires": [
293             [
294                 "81912a48.95e3c8",
295                 "dea8feff.34d7",
296                 "5317edc6.907634",
297                 "977a8cc7.20f92"
298             ]
299         ]
300     },
301     {
302         "id": "c0656ad0.118938",
303         "type": "dgstart",
304         "name": "DGSTART",
305         "outputs": 1,
306         "x": 125.41667556762695,
307         "y": 80.7469892501831,
308         "z": "67f5a657.693288",
309         "wires": [
310             [
311                 "e7e3fc5d.26071"
312             ]
313         ]
314     },
315     {
316         "id": "e7e3fc5d.26071",
317         "type": "service-logic",
318         "name": "GENERIC-RESOURCE-API ${project.version}",
319         "module": "GENERIC-RESOURCE-API",
320         "version": "${project.version}",
321         "comments": "",
322         "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}'>",
323         "outputs": 1,
324         "x": 200.7023811340332,
325         "y": 120.98510074615479,
326         "z": "67f5a657.693288",
327         "wires": [
328             [
329                 "53018b54.ba7fa4"
330             ]
331         ]
332     },
333     {
334         "id": "53018b54.ba7fa4",
335         "type": "method",
336         "name": "method validate-vf-module-input",
337         "xml": "<method rpc='validate-vf-module-input' mode='sync'>\n",
338         "comments": "",
339         "outputs": 1,
340         "x": 197.76197052001953,
341         "y": 161.66364669799805,
342         "z": "67f5a657.693288",
343         "wires": [
344             [
345                 "4aba34b1.1043ac"
346             ]
347         ]
348     },
349     {
350         "id": "69a2a002.592a6",
351         "type": "comment",
352         "name": "validate-vf-module-input",
353         "info": "",
354         "comments": "",
355         "x": 519.761531829834,
356         "y": 28.333333015441895,
357         "z": "67f5a657.693288",
358         "wires": []
359     },
360     {
361         "id": "ed9e03ed.5232b",
362         "type": "switchNode",
363         "name": "switch service-instance-id",
364         "xml": "<switch test='`$vf-module-topology-operation-input.service-information.service-instance-id`'>\n",
365         "comments": "",
366         "outputs": 1,
367         "x": 476.0238227844238,
368         "y": 380.83334827423096,
369         "z": "67f5a657.693288",
370         "wires": [
371             [
372                 "1fea5d4d.2c11e3"
373             ]
374         ]
375     },
376     {
377         "id": "1fea5d4d.2c11e3",
378         "type": "outcome",
379         "name": "NULL",
380         "xml": "<outcome value=''>",
381         "comments": "",
382         "outputs": 1,
383         "x": 688.4524040222168,
384         "y": 380.8333444595337,
385         "z": "67f5a657.693288",
386         "wires": [
387             [
388                 "90e209ca.924dc8"
389             ]
390         ]
391     },
392     {
393         "id": "90e209ca.924dc8",
394         "type": "returnFailure",
395         "name": "return failure",
396         "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=\"service-information.service-instance-id is a required input\" />\n",
397         "comments": "",
398         "x": 839.8809700012207,
399         "y": 380.83334255218506,
400         "z": "67f5a657.693288",
401         "wires": []
402     },
403     {
404         "id": "db1345cd.afaaf8",
405         "type": "switchNode",
406         "name": "switch vnf-id",
407         "xml": "<switch test='`$vf-module-topology-operation-input.vnf-information.vnf-id`'>\n",
408         "comments": "",
409         "outputs": 1,
410         "x": 433.52383204868875,
411         "y": 427.3333387374878,
412         "z": "67f5a657.693288",
413         "wires": [
414             [
415                 "bb759f02.71463"
416             ]
417         ]
418     },
419     {
420         "id": "bb759f02.71463",
421         "type": "outcome",
422         "name": "NULL",
423         "xml": "<outcome value=''>",
424         "comments": "",
425         "outputs": 1,
426         "x": 688.8095414297923,
427         "y": 425.90477085113525,
428         "z": "67f5a657.693288",
429         "wires": [
430             [
431                 "f0403fde.5aee9"
432             ]
433         ]
434     },
435     {
436         "id": "f0403fde.5aee9",
437         "type": "returnFailure",
438         "name": "return failure",
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=\"vnf-information.vnf-id is a required input\" />\n",
440         "comments": "",
441         "x": 840.2381074087962,
442         "y": 425.9047689437866,
443         "z": "67f5a657.693288",
444         "wires": []
445     },
446     {
447         "id": "5317edc6.907634",
448         "type": "switchNode",
449         "name": "switch aic-cloud-region",
450         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`'>\n",
451         "comments": "",
452         "outputs": 1,
453         "x": 969.3333756583079,
454         "y": 641.9047784805298,
455         "z": "67f5a657.693288",
456         "wires": [
457             [
458                 "f1a01d1c.1ba65"
459             ]
460         ]
461     },
462     {
463         "id": "f1a01d1c.1ba65",
464         "type": "outcome",
465         "name": "NULL",
466         "xml": "<outcome value=''>",
467         "comments": "",
468         "outputs": 1,
469         "x": 1196.0476929800852,
470         "y": 641.9048128128052,
471         "z": "67f5a657.693288",
472         "wires": [
473             [
474                 "d4c33f5b.e0ebe"
475             ]
476         ]
477     },
478     {
479         "id": "d4c33f5b.e0ebe",
480         "type": "returnFailure",
481         "name": "return failure",
482         "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-request-input.aic-cloud-region is a required input\" />\n",
483         "comments": "",
484         "x": 1347.4762589590891,
485         "y": 641.9048109054565,
486         "z": "67f5a657.693288",
487         "wires": []
488     },
489     {
490         "id": "d431fbda.2a77f8",
491         "type": "switchNode",
492         "name": "switch vf-module-id",
493         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`'>\n",
494         "comments": "",
495         "outputs": 1,
496         "x": 454.33332225254617,
497         "y": 473.33331775665283,
498         "z": "67f5a657.693288",
499         "wires": [
500             [
501                 "d102ad9b.0e3c7"
502             ]
503         ]
504     },
505     {
506         "id": "d102ad9b.0e3c7",
507         "type": "outcome",
508         "name": "NULL",
509         "xml": "<outcome value=''>",
510         "comments": "",
511         "outputs": 1,
512         "x": 688.6190316336497,
513         "y": 471.9047498703003,
514         "z": "67f5a657.693288",
515         "wires": [
516             [
517                 "a2b8131.6eb5ff"
518             ]
519         ]
520     },
521     {
522         "id": "a2b8131.6eb5ff",
523         "type": "returnFailure",
524         "name": "return failure",
525         "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-information.vf-module-id is a required input\" />\n",
526         "comments": "",
527         "x": 840.0475976126536,
528         "y": 471.90474796295166,
529         "z": "67f5a657.693288",
530         "wires": []
531     },
532     {
533         "id": "977a8cc7.20f92",
534         "type": "switchNode",
535         "name": "switch vf-module-name",
536         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`'>\n",
537         "comments": "",
538         "outputs": 1,
539         "x": 972.666642870222,
540         "y": 515.9999895095825,
541         "z": "67f5a657.693288",
542         "wires": [
543             [
544                 "9832cc52.0a716"
545             ]
546         ]
547     },
548     {
549         "id": "9832cc52.0a716",
550         "type": "outcome",
551         "name": "NULL",
552         "xml": "<outcome value=''>",
553         "comments": "",
554         "outputs": 1,
555         "x": 1198.666642870222,
556         "y": 515.9999723434448,
557         "z": "67f5a657.693288",
558         "wires": [
559             [
560                 "cdbd51ca.ee45c"
561             ]
562         ]
563     },
564     {
565         "id": "cdbd51ca.ee45c",
566         "type": "returnFailure",
567         "name": "return failure",
568         "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-information.vf-module-request-input.vf-module-name is a required input\" />\n",
569         "comments": "",
570         "x": 1350.0952088492259,
571         "y": 515.9999704360962,
572         "z": "67f5a657.693288",
573         "wires": []
574     }
575 ]