f1dbe0616f0845d1661f82c297641b37a5bb0180
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_validate-vnf-input.json
1 [
2   {
3     "id": "4d9dbde4.447a44",
4     "type": "block",
5     "name": "block : atomic",
6     "xml": "<block atomic=\"true\">",
7     "atomic": "true",
8     "outputs": 1,
9     "x": 201,
10     "y": 454.50000422341486,
11     "z": "3f03c20b.438afe",
12     "wires": [
13       [
14         "3551e870.dc3378",
15         "d59a7a0.dd15288",
16         "412f00f8.42659",
17         "ad77ccd2.f78fd",
18         "1d62a81d.049808"
19       ]
20     ]
21   },
22   {
23     "id": "3551e870.dc3378",
24     "type": "switchNode",
25     "name": "switch svc-request-id",
26     "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`'>\n",
27     "comments": "",
28     "outputs": 1,
29     "x": 483.7619094848633,
30     "y": 337.58034229278564,
31     "z": "3f03c20b.438afe",
32     "wires": [
33       [
34         "3219fe8b.8416b2"
35       ]
36     ]
37   },
38   {
39     "id": "3219fe8b.8416b2",
40     "type": "outcome",
41     "name": "NULL",
42     "xml": "<outcome value=''>",
43     "comments": "",
44     "outputs": 1,
45     "x": 709.476203918457,
46     "y": 337.5803461074829,
47     "z": "3f03c20b.438afe",
48     "wires": [
49       [
50         "c609015.faf"
51       ]
52     ]
53   },
54   {
55     "id": "c609015.faf",
56     "type": "returnFailure",
57     "name": "return failure",
58     "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",
59     "comments": "",
60     "x": 860.9047698974609,
61     "y": 337.5803442001343,
62     "z": "3f03c20b.438afe",
63     "wires": [
64       
65     ]
66   },
67   {
68     "id": "d59a7a0.dd15288",
69     "type": "switchNode",
70     "name": "switch svc-action",
71     "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
72     "comments": "",
73     "outputs": 1,
74     "x": 472.3332726614817,
75     "y": 296.1517738614764,
76     "z": "3f03c20b.438afe",
77     "wires": [
78       [
79         "fd07c834.04e118"
80       ]
81     ]
82   },
83   {
84     "id": "fd07c834.04e118",
85     "type": "outcome",
86     "name": "NULL",
87     "xml": "<outcome value=''>",
88     "comments": "",
89     "outputs": 1,
90     "x": 708.0476243155344,
91     "y": 294.72317164284846,
92     "z": "3f03c20b.438afe",
93     "wires": [
94       [
95         "bb67988a.7a4878"
96       ]
97     ]
98   },
99   {
100     "id": "bb67988a.7a4878",
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": 858.0475976126536,
106     "y": 294.7231811795916,
107     "z": "3f03c20b.438afe",
108     "wires": [
109       
110     ]
111   },
112   {
113     "id": "412f00f8.42659",
114     "type": "switchNode",
115     "name": "switch request-action",
116     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
117     "comments": "",
118     "outputs": 1,
119     "x": 482.33332606724343,
120     "y": 380.4374889646258,
121     "z": "3f03c20b.438afe",
122     "wires": [
123       [
124         "57d0c765.6697d8"
125       ]
126     ]
127   },
128   {
129     "id": "57d0c765.6697d8",
130     "type": "outcome",
131     "name": "NULL",
132     "xml": "<outcome value=''>",
133     "comments": "",
134     "outputs": 1,
135     "x": 709.4761995588033,
136     "y": 380.4374998637609,
137     "z": "3f03c20b.438afe",
138     "wires": [
139       [
140         "17e90205.19889e"
141       ]
142     ]
143   },
144   {
145     "id": "17e90205.19889e",
146     "type": "returnFailure",
147     "name": "return failure",
148     "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",
149     "comments": "",
150     "x": 860.9047655378072,
151     "y": 380.43749795641224,
152     "z": "3f03c20b.438afe",
153     "wires": [
154       
155     ]
156   },
157   {
158     "id": "e4e9da07.86ee68",
159     "type": "switchNode",
160     "name": "switch model-customization-id",
161     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`'>\n",
162     "comments": "",
163     "outputs": 1,
164     "x": 1071.7978477478027,
165     "y": 482.8662624359131,
166     "z": "3f03c20b.438afe",
167     "wires": [
168       [
169         "358dc8c9.934178"
170       ]
171     ]
172   },
173   {
174     "id": "358dc8c9.934178",
175     "type": "outcome",
176     "name": "NULL",
177     "xml": "<outcome value=''>",
178     "comments": "",
179     "outputs": 1,
180     "x": 1276.7978477478027,
181     "y": 482.8662452697754,
182     "z": "3f03c20b.438afe",
183     "wires": [
184       [
185         "37f4df0b.c43d6"
186       ]
187     ]
188   },
189   {
190     "id": "37f4df0b.c43d6",
191     "type": "returnFailure",
192     "name": "return failure",
193     "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.onap-model-information.model-customization-uuid is a required input\" />\n",
194     "comments": "",
195     "x": 1428.2264137268066,
196     "y": 482.86624336242676,
197     "z": "3f03c20b.438afe",
198     "wires": [
199       
200     ]
201   },
202   {
203     "id": "4c722c64.354684",
204     "type": "switchNode",
205     "name": "switch tenant",
206     "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.tenant`'>\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 1017.6549263000488,
210     "y": 524.2947731018066,
211     "z": "3f03c20b.438afe",
212     "wires": [
213       [
214         "d918b63c.d3c5b8"
215       ]
216     ]
217   },
218   {
219     "id": "d918b63c.d3c5b8",
220     "type": "outcome",
221     "name": "NULL",
222     "xml": "<outcome value=''>",
223     "comments": "",
224     "outputs": 1,
225     "x": 1275.3692436218262,
226     "y": 524.294807434082,
227     "z": "3f03c20b.438afe",
228     "wires": [
229       [
230         "de9de378.d9dcb"
231       ]
232     ]
233   },
234   {
235     "id": "de9de378.d9dcb",
236     "type": "returnFailure",
237     "name": "return failure",
238     "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-request-input.tenant is a required input\" />\n",
239     "comments": "",
240     "x": 1426.79780960083,
241     "y": 524.2948055267334,
242     "z": "3f03c20b.438afe",
243     "wires": [
244       
245     ]
246   },
247   {
248     "id": "113afb8b.5ba534",
249     "type": "comment",
250     "name": "Validation of required fields",
251     "info": "",
252     "comments": "",
253     "x": 632.3332824707031,
254     "y": 251.86605644226074,
255     "z": "3f03c20b.438afe",
256     "wires": [
257       
258     ]
259   },
260   {
261     "id": "ad77ccd2.f78fd",
262     "type": "switchNode",
263     "name": "switch svc-action",
264     "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
265     "comments": "",
266     "outputs": 1,
267     "x": 472.57139587402344,
268     "y": 571.7947673797607,
269     "z": "3f03c20b.438afe",
270     "wires": [
271       [
272         "831a3f94.d6468",
273         "5be38d11.63b4f4"
274       ]
275     ]
276   },
277   {
278     "id": "831a3f94.d6468",
279     "type": "outcome",
280     "name": "assign",
281     "xml": "<outcome value='assign'>\n",
282     "comments": "",
283     "outputs": 1,
284     "x": 643.4047393798828,
285     "y": 525.1280879974365,
286     "z": "3f03c20b.438afe",
287     "wires": [
288       [
289         "dd8a1fea.b5bd6"
290       ]
291     ]
292   },
293   {
294     "id": "dd8a1fea.b5bd6",
295     "type": "block",
296     "name": "block : atomic",
297     "xml": "<block atomic=\"true\">",
298     "atomic": "true",
299     "outputs": 1,
300     "x": 840.0713500976562,
301     "y": 525.1280879974365,
302     "z": "3f03c20b.438afe",
303     "wires": [
304       [
305         "e4e9da07.86ee68",
306         "4c722c64.354684",
307         "3a3018b1.645408"
308       ]
309     ]
310   },
311   {
312     "id": "3ccd71b7.e4583e",
313     "type": "dgstart",
314     "name": "DGSTART",
315     "outputs": 1,
316     "x": 144.7500098092214,
317     "y": 124.41365623474121,
318     "z": "3f03c20b.438afe",
319     "wires": [
320       [
321         "871c79a8.0f3e48"
322       ]
323     ]
324   },
325   {
326     "id": "871c79a8.0f3e48",
327     "type": "service-logic",
328     "name": "GENERIC-RESOURCE-API ${project.version}",
329     "module": "GENERIC-RESOURCE-API",
330     "version": "${project.version}",
331     "comments": "",
332     "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}'>",
333     "outputs": 1,
334     "x": 258.03571537562766,
335     "y": 164.6517677307129,
336     "z": "3f03c20b.438afe",
337     "wires": [
338       [
339         "4b0e51f7.20b38"
340       ]
341     ]
342   },
343   {
344     "id": "4b0e51f7.20b38",
345     "type": "method",
346     "name": "method validate-vnf-input",
347     "xml": "<method rpc='validate-vnf-input' mode='sync'>\n",
348     "comments": "",
349     "outputs": 1,
350     "x": 193.42863682338157,
351     "y": 205.66365242004395,
352     "z": "3f03c20b.438afe",
353     "wires": [
354       [
355         "4d9dbde4.447a44"
356       ]
357     ]
358   },
359   {
360     "id": "79e58f6f.3ef1e",
361     "type": "comment",
362     "name": "validate-vnf-input",
363     "info": "",
364     "comments": "",
365     "x": 539.0948660714284,
366     "y": 72,
367     "z": "3f03c20b.438afe",
368     "wires": [
369       
370     ]
371   },
372   {
373     "id": "1d62a81d.049808",
374     "type": "switchNode",
375     "name": "switch service-instance-id",
376     "xml": "<switch test='`$vnf-topology-operation-input.service-information.service-instance-id`'>\n",
377     "comments": "",
378     "outputs": 1,
379     "x": 495.3571570260183,
380     "y": 424.50001525878906,
381     "z": "3f03c20b.438afe",
382     "wires": [
383       [
384         "6a29ec68.3b9074"
385       ]
386     ]
387   },
388   {
389     "id": "6a29ec68.3b9074",
390     "type": "outcome",
391     "name": "NULL",
392     "xml": "<outcome value=''>",
393     "comments": "",
394     "outputs": 1,
395     "x": 707.7857382638113,
396     "y": 424.5000114440918,
397     "z": "3f03c20b.438afe",
398     "wires": [
399       [
400         "8d2c582.ae31aa8"
401       ]
402     ]
403   },
404   {
405     "id": "8d2c582.ae31aa8",
406     "type": "returnFailure",
407     "name": "return failure",
408     "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",
409     "comments": "",
410     "x": 859.2143042428152,
411     "y": 424.50000953674316,
412     "z": "3f03c20b.438afe",
413     "wires": [
414       
415     ]
416   },
417   {
418     "id": "3a3018b1.645408",
419     "type": "switchNode",
420     "name": "switch aic-cloud-region",
421     "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n",
422     "comments": "",
423     "outputs": 1,
424     "x": 1047.0000076293945,
425     "y": 566.5714302062988,
426     "z": "3f03c20b.438afe",
427     "wires": [
428       [
429         "6edfb4d4.a66b5c"
430       ]
431     ]
432   },
433   {
434     "id": "6edfb4d4.a66b5c",
435     "type": "outcome",
436     "name": "NULL",
437     "xml": "<outcome value=''>",
438     "comments": "",
439     "outputs": 1,
440     "x": 1273.7143249511719,
441     "y": 566.5714645385742,
442     "z": "3f03c20b.438afe",
443     "wires": [
444       [
445         "e6cdd965.41bc18"
446       ]
447     ]
448   },
449   {
450     "id": "e6cdd965.41bc18",
451     "type": "returnFailure",
452     "name": "return failure",
453     "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-request-input.aic-cloud-region is a required input\" />\n",
454     "comments": "",
455     "x": 1425.1428909301758,
456     "y": 566.5714626312256,
457     "z": "3f03c20b.438afe",
458     "wires": [
459       
460     ]
461   },
462   {
463     "id": "87424be6.6788e8",
464     "type": "switchNode",
465     "name": "switch model-customization-id",
466     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`'>\n",
467     "comments": "",
468     "outputs": 1,
469     "x": 1071.4761352539062,
470     "y": 612.7618942260742,
471     "z": "3f03c20b.438afe",
472     "wires": [
473       [
474         "8d44461a.f88fd8"
475       ]
476     ]
477   },
478   {
479     "id": "8d44461a.f88fd8",
480     "type": "outcome",
481     "name": "NULL",
482     "xml": "<outcome value=''>",
483     "comments": "",
484     "outputs": 1,
485     "x": 1276.4761352539062,
486     "y": 612.7618770599365,
487     "z": "3f03c20b.438afe",
488     "wires": [
489       [
490         "50f4ef71.66b2d"
491       ]
492     ]
493   },
494   {
495     "id": "50f4ef71.66b2d",
496     "type": "returnFailure",
497     "name": "return failure",
498     "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.onap-model-information.model-customization-uuid is a required input\" />\n",
499     "comments": "",
500     "x": 1427.9047012329102,
501     "y": 612.7618751525879,
502     "z": "3f03c20b.438afe",
503     "wires": [
504       
505     ]
506   },
507   {
508     "id": "5be38d11.63b4f4",
509     "type": "outcome",
510     "name": "changeassign",
511     "xml": "<outcome value='changeassign'>\n",
512     "comments": "",
513     "outputs": 1,
514     "x": 661.4163551330566,
515     "y": 612.6904535293579,
516     "z": "3f03c20b.438afe",
517     "wires": [
518       [
519         "a7282aba.0b4bc8"
520       ]
521     ]
522   },
523   {
524     "id": "a7282aba.0b4bc8",
525     "type": "block",
526     "name": "block : atomic",
527     "xml": "<block atomic=\"true\">",
528     "atomic": "true",
529     "outputs": 1,
530     "x": 841.4163436889648,
531     "y": 612.6904201507568,
532     "z": "3f03c20b.438afe",
533     "wires": [
534       [
535         "87424be6.6788e8"
536       ]
537     ]
538   }
539 ]