Merge "Adding site Resource DG"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_validate-vnf-input.json
1 [
2   {
3     "id": "c428e8d.27cce18",
4     "type": "block",
5     "name": "block : atomic",
6     "xml": "<block atomic=\"true\">",
7     "atomic": "true",
8     "outputs": 1,
9     "x": 189,
10     "y": 416.50000422341486,
11     "z": "a20f7f20.3dd04",
12     "wires": [
13       [
14         "3ab2d225.c8f26e",
15         "f97f4e94.92985",
16         "99754530.a920a8",
17         "77ab2ae3.a31c54",
18         "c2bc3d2d.6fb7d"
19       ]
20     ]
21   },
22   {
23     "id": "3ab2d225.c8f26e",
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": 471.7619094848633,
30     "y": 299.58034229278564,
31     "z": "a20f7f20.3dd04",
32     "wires": [
33       [
34         "a9a2f3f.7cb551"
35       ]
36     ]
37   },
38   {
39     "id": "a9a2f3f.7cb551",
40     "type": "outcome",
41     "name": "NULL",
42     "xml": "<outcome value=''>",
43     "comments": "",
44     "outputs": 1,
45     "x": 697.476203918457,
46     "y": 299.5803461074829,
47     "z": "a20f7f20.3dd04",
48     "wires": [
49       [
50         "cb1db5f9.619c48"
51       ]
52     ]
53   },
54   {
55     "id": "cb1db5f9.619c48",
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": 848.9047698974609,
61     "y": 299.5803442001343,
62     "z": "a20f7f20.3dd04",
63     "wires": [
64       
65     ]
66   },
67   {
68     "id": "f97f4e94.92985",
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": 460.3332726614817,
75     "y": 258.1517738614764,
76     "z": "a20f7f20.3dd04",
77     "wires": [
78       [
79         "4bce0fc2.589ce"
80       ]
81     ]
82   },
83   {
84     "id": "4bce0fc2.589ce",
85     "type": "outcome",
86     "name": "NULL",
87     "xml": "<outcome value=''>",
88     "comments": "",
89     "outputs": 1,
90     "x": 696.0476243155344,
91     "y": 256.72317164284846,
92     "z": "a20f7f20.3dd04",
93     "wires": [
94       [
95         "8b6ba872.3b8a98"
96       ]
97     ]
98   },
99   {
100     "id": "8b6ba872.3b8a98",
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": 846.0475976126536,
106     "y": 256.7231811795916,
107     "z": "a20f7f20.3dd04",
108     "wires": [
109       
110     ]
111   },
112   {
113     "id": "99754530.a920a8",
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": 470.33332606724343,
120     "y": 342.4374889646258,
121     "z": "a20f7f20.3dd04",
122     "wires": [
123       [
124         "1356b9d1.f1abc6"
125       ]
126     ]
127   },
128   {
129     "id": "1356b9d1.f1abc6",
130     "type": "outcome",
131     "name": "NULL",
132     "xml": "<outcome value=''>",
133     "comments": "",
134     "outputs": 1,
135     "x": 697.4761995588033,
136     "y": 342.4374998637609,
137     "z": "a20f7f20.3dd04",
138     "wires": [
139       [
140         "9bdd0c3e.f5034"
141       ]
142     ]
143   },
144   {
145     "id": "9bdd0c3e.f5034",
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": 848.9047655378072,
151     "y": 342.43749795641224,
152     "z": "a20f7f20.3dd04",
153     "wires": [
154       
155     ]
156   },
157   {
158     "id": "77407e17.13aa",
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": 1004.7978782653809,
165     "y": 488.86625480651855,
166     "z": "a20f7f20.3dd04",
167     "wires": [
168       [
169         "c78e5862.3ed2f8"
170       ]
171     ]
172   },
173   {
174     "id": "c78e5862.3ed2f8",
175     "type": "outcome",
176     "name": "NULL",
177     "xml": "<outcome value=''>",
178     "comments": "",
179     "outputs": 1,
180     "x": 1209.7978782653809,
181     "y": 488.86623764038086,
182     "z": "a20f7f20.3dd04",
183     "wires": [
184       [
185         "a0bae35d.bd0f3"
186       ]
187     ]
188   },
189   {
190     "id": "a0bae35d.bd0f3",
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": 1361.2264442443848,
196     "y": 488.8662357330322,
197     "z": "a20f7f20.3dd04",
198     "wires": [
199       
200     ]
201   },
202   {
203     "id": "9b39e778.02f938",
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": 950.654956817627,
210     "y": 530.2947654724121,
211     "z": "a20f7f20.3dd04",
212     "wires": [
213       [
214         "204bc24c.52717e"
215       ]
216     ]
217   },
218   {
219     "id": "204bc24c.52717e",
220     "type": "outcome",
221     "name": "NULL",
222     "xml": "<outcome value=''>",
223     "comments": "",
224     "outputs": 1,
225     "x": 1208.3692741394043,
226     "y": 530.2947998046875,
227     "z": "a20f7f20.3dd04",
228     "wires": [
229       [
230         "cd515ce9.de34"
231       ]
232     ]
233   },
234   {
235     "id": "cd515ce9.de34",
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": 1359.7978401184082,
241     "y": 530.2947978973389,
242     "z": "a20f7f20.3dd04",
243     "wires": [
244       
245     ]
246   },
247   {
248     "id": "38ecaf2a.7759a",
249     "type": "comment",
250     "name": "Validation of required fields",
251     "info": "",
252     "comments": "",
253     "x": 620.3332824707031,
254     "y": 213.86605644226074,
255     "z": "a20f7f20.3dd04",
256     "wires": [
257       
258     ]
259   },
260   {
261     "id": "77ab2ae3.a31c54",
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": 455.5713806152344,
268     "y": 531.128080368042,
269     "z": "a20f7f20.3dd04",
270     "wires": [
271       [
272         "8e972969.bb2dd8"
273       ]
274     ]
275   },
276   {
277     "id": "8e972969.bb2dd8",
278     "type": "outcome",
279     "name": "assign",
280     "xml": "<outcome value='assign'>\n",
281     "comments": "",
282     "outputs": 1,
283     "x": 618.0713806152344,
284     "y": 531.128080368042,
285     "z": "a20f7f20.3dd04",
286     "wires": [
287       [
288         "f91647c8.1d72f8"
289       ]
290     ]
291   },
292   {
293     "id": "f91647c8.1d72f8",
294     "type": "block",
295     "name": "block : atomic",
296     "xml": "<block atomic=\"true\">",
297     "atomic": "true",
298     "outputs": 1,
299     "x": 773.0713806152344,
300     "y": 531.128080368042,
301     "z": "a20f7f20.3dd04",
302     "wires": [
303       [
304         "77407e17.13aa",
305         "9b39e778.02f938",
306         "4108c244.bc563c"
307       ]
308     ]
309   },
310   {
311     "id": "bfe21f2e.7dff3",
312     "type": "dgstart",
313     "name": "DGSTART",
314     "outputs": 1,
315     "x": 132.7500098092214,
316     "y": 86.41365623474121,
317     "z": "a20f7f20.3dd04",
318     "wires": [
319       [
320         "d64c66df.cad6c8"
321       ]
322     ]
323   },
324   {
325     "id": "d64c66df.cad6c8",
326     "type": "service-logic",
327     "name": "GENERIC-RESOURCE-API ${project.version}",
328     "module": "GENERIC-RESOURCE-API",
329     "version": "${project.version}",
330     "comments": "",
331     "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}'>",
332     "outputs": 1,
333     "x": 208.03571537562766,
334     "y": 126.65176773071289,
335     "z": "a20f7f20.3dd04",
336     "wires": [
337       [
338         "2e84fc71.260244"
339       ]
340     ]
341   },
342   {
343     "id": "2e84fc71.260244",
344     "type": "method",
345     "name": "method validate-vnf-input",
346     "xml": "<method rpc='validate-vnf-input' mode='sync'>\n",
347     "comments": "",
348     "outputs": 1,
349     "x": 183.42863682338157,
350     "y": 167.66365242004395,
351     "z": "a20f7f20.3dd04",
352     "wires": [
353       [
354         "c428e8d.27cce18"
355       ]
356     ]
357   },
358   {
359     "id": "580b25f3.b0273c",
360     "type": "comment",
361     "name": "validate-vnf-input",
362     "info": "",
363     "comments": "",
364     "x": 527.0948660714284,
365     "y": 34,
366     "z": "a20f7f20.3dd04",
367     "wires": [
368       
369     ]
370   },
371   {
372     "id": "c2bc3d2d.6fb7d",
373     "type": "switchNode",
374     "name": "switch service-instance-id",
375     "xml": "<switch test='`$vnf-topology-operation-input.service-information.service-instance-id`'>\n",
376     "comments": "",
377     "outputs": 1,
378     "x": 483.3571570260183,
379     "y": 386.50001525878906,
380     "z": "a20f7f20.3dd04",
381     "wires": [
382       [
383         "4f2dc133.3331a"
384       ]
385     ]
386   },
387   {
388     "id": "4f2dc133.3331a",
389     "type": "outcome",
390     "name": "NULL",
391     "xml": "<outcome value=''>",
392     "comments": "",
393     "outputs": 1,
394     "x": 695.7857382638113,
395     "y": 386.5000114440918,
396     "z": "a20f7f20.3dd04",
397     "wires": [
398       [
399         "46f09548.364bec"
400       ]
401     ]
402   },
403   {
404     "id": "46f09548.364bec",
405     "type": "returnFailure",
406     "name": "return failure",
407     "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",
408     "comments": "",
409     "x": 847.2143042428152,
410     "y": 386.50000953674316,
411     "z": "a20f7f20.3dd04",
412     "wires": [
413       
414     ]
415   },
416   {
417     "id": "4108c244.bc563c",
418     "type": "switchNode",
419     "name": "switch aic-cloud-region",
420     "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n",
421     "comments": "",
422     "outputs": 1,
423     "x": 980.0000381469727,
424     "y": 572.5714225769043,
425     "z": "a20f7f20.3dd04",
426     "wires": [
427       [
428         "c4c6b560.de5ab8"
429       ]
430     ]
431   },
432   {
433     "id": "c4c6b560.de5ab8",
434     "type": "outcome",
435     "name": "NULL",
436     "xml": "<outcome value=''>",
437     "comments": "",
438     "outputs": 1,
439     "x": 1206.71435546875,
440     "y": 572.5714569091797,
441     "z": "a20f7f20.3dd04",
442     "wires": [
443       [
444         "c4c87ecd.ccad2"
445       ]
446     ]
447   },
448   {
449     "id": "c4c87ecd.ccad2",
450     "type": "returnFailure",
451     "name": "return failure",
452     "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",
453     "comments": "",
454     "x": 1358.142921447754,
455     "y": 572.571455001831,
456     "z": "a20f7f20.3dd04",
457     "wires": [
458       
459     ]
460   }
461 ]