Renamed ecomp-model-information
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_validate-vnf-input.json
1 [
2     {
3         "id": "b38b0b37.4fbba8",
4         "type": "block",
5         "name": "block : atomic",
6         "xml": "<block atomic=\"true\">",
7         "atomic": "true",
8         "outputs": 1,
9         "x": 156.66665649414062,
10         "y": 414.16667597634455,
11         "z": "19ac43dc.b5de6c",
12         "wires": [
13             [
14                 "52d79f98.236c9",
15                 "db0b2c04.23c78",
16                 "2090c272.2f2dae",
17                 "f3ec5636.aa7578",
18                 "de04dcb6.e0093",
19                 "286a5aeb.cd2826"
20             ]
21         ]
22     },
23     {
24         "id": "52d79f98.236c9",
25         "type": "switchNode",
26         "name": "switch svc-request-id",
27         "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`'>\n",
28         "comments": "",
29         "outputs": 1,
30         "x": 439.4285659790039,
31         "y": 297.24701404571533,
32         "z": "19ac43dc.b5de6c",
33         "wires": [
34             [
35                 "f9ab1dd1.ac849"
36             ]
37         ]
38     },
39     {
40         "id": "f9ab1dd1.ac849",
41         "type": "outcome",
42         "name": "NULL",
43         "xml": "<outcome value=''>",
44         "comments": "",
45         "outputs": 1,
46         "x": 665.1428604125977,
47         "y": 297.2470178604126,
48         "z": "19ac43dc.b5de6c",
49         "wires": [
50             [
51                 "a08153b.30607b"
52             ]
53         ]
54     },
55     {
56         "id": "a08153b.30607b",
57         "type": "returnFailure",
58         "name": "return failure",
59         "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",
60         "comments": "",
61         "x": 816.5714263916016,
62         "y": 297.24701595306396,
63         "z": "19ac43dc.b5de6c",
64         "wires": []
65     },
66     {
67         "id": "db0b2c04.23c78",
68         "type": "switchNode",
69         "name": "switch svc-action",
70         "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
71         "comments": "",
72         "outputs": 1,
73         "x": 427.99992915562234,
74         "y": 255.81844561440607,
75         "z": "19ac43dc.b5de6c",
76         "wires": [
77             [
78                 "eeea9033.66cb9"
79             ]
80         ]
81     },
82     {
83         "id": "eeea9033.66cb9",
84         "type": "outcome",
85         "name": "NULL",
86         "xml": "<outcome value=''>",
87         "comments": "",
88         "outputs": 1,
89         "x": 663.7142808096751,
90         "y": 254.38984339577814,
91         "z": "19ac43dc.b5de6c",
92         "wires": [
93             [
94                 "d8278276.52076"
95             ]
96         ]
97     },
98     {
99         "id": "d8278276.52076",
100         "type": "returnFailure",
101         "name": "return failure",
102         "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",
103         "comments": "",
104         "x": 813.7142541067942,
105         "y": 254.3898529325213,
106         "z": "19ac43dc.b5de6c",
107         "wires": []
108     },
109     {
110         "id": "2090c272.2f2dae",
111         "type": "switchNode",
112         "name": "switch request-action",
113         "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
114         "comments": "",
115         "outputs": 1,
116         "x": 437.99998256138406,
117         "y": 340.1041607175555,
118         "z": "19ac43dc.b5de6c",
119         "wires": [
120             [
121                 "3462c626.b9b84a"
122             ]
123         ]
124     },
125     {
126         "id": "3462c626.b9b84a",
127         "type": "outcome",
128         "name": "NULL",
129         "xml": "<outcome value=''>",
130         "comments": "",
131         "outputs": 1,
132         "x": 665.1428560529439,
133         "y": 340.10417161669056,
134         "z": "19ac43dc.b5de6c",
135         "wires": [
136             [
137                 "b3d88cc6.52ff2"
138             ]
139         ]
140     },
141     {
142         "id": "b3d88cc6.52ff2",
143         "type": "returnFailure",
144         "name": "return failure",
145         "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",
146         "comments": "",
147         "x": 816.5714220319478,
148         "y": 340.10416970934193,
149         "z": "19ac43dc.b5de6c",
150         "wires": []
151     },
152     {
153         "id": "e6d8c21d.71c1c",
154         "type": "switchNode",
155         "name": "switch model-customization-id",
156         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`'>\n",
157         "comments": "",
158         "outputs": 1,
159         "x": 972.4645347595215,
160         "y": 486.53292655944824,
161         "z": "19ac43dc.b5de6c",
162         "wires": [
163             [
164                 "de43bd69.67fda"
165             ]
166         ]
167     },
168     {
169         "id": "de43bd69.67fda",
170         "type": "outcome",
171         "name": "NULL",
172         "xml": "<outcome value=''>",
173         "comments": "",
174         "outputs": 1,
175         "x": 1177.4645347595215,
176         "y": 486.53290939331055,
177         "z": "19ac43dc.b5de6c",
178         "wires": [
179             [
180                 "4575d060.3b037"
181             ]
182         ]
183     },
184     {
185         "id": "4575d060.3b037",
186         "type": "returnFailure",
187         "name": "return failure",
188         "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",
189         "comments": "",
190         "x": 1328.8931007385254,
191         "y": 486.5329074859619,
192         "z": "19ac43dc.b5de6c",
193         "wires": []
194     },
195     {
196         "id": "689a33f6.b4cc9c",
197         "type": "switchNode",
198         "name": "switch tenant",
199         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.tenant`'>\n",
200         "comments": "",
201         "outputs": 1,
202         "x": 918.3216133117676,
203         "y": 527.9614372253418,
204         "z": "19ac43dc.b5de6c",
205         "wires": [
206             [
207                 "238e5ffc.d0317"
208             ]
209         ]
210     },
211     {
212         "id": "238e5ffc.d0317",
213         "type": "outcome",
214         "name": "NULL",
215         "xml": "<outcome value=''>",
216         "comments": "",
217         "outputs": 1,
218         "x": 1176.035930633545,
219         "y": 527.9614715576172,
220         "z": "19ac43dc.b5de6c",
221         "wires": [
222             [
223                 "bcaf5c05.49c86"
224             ]
225         ]
226     },
227     {
228         "id": "bcaf5c05.49c86",
229         "type": "returnFailure",
230         "name": "return failure",
231         "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",
232         "comments": "",
233         "x": 1327.4644966125488,
234         "y": 527.9614696502686,
235         "z": "19ac43dc.b5de6c",
236         "wires": []
237     },
238     {
239         "id": "c2b4e8d1.4fcae8",
240         "type": "comment",
241         "name": "Validation of required fields",
242         "info": "",
243         "comments": "",
244         "x": 587.9999389648438,
245         "y": 211.53272819519043,
246         "z": "19ac43dc.b5de6c",
247         "wires": []
248     },
249     {
250         "id": "f3ec5636.aa7578",
251         "type": "switchNode",
252         "name": "switch svc-action",
253         "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
254         "comments": "",
255         "outputs": 1,
256         "x": 423.238037109375,
257         "y": 528.7947521209717,
258         "z": "19ac43dc.b5de6c",
259         "wires": [
260             [
261                 "2acfd81d.e2f408"
262             ]
263         ]
264     },
265     {
266         "id": "2acfd81d.e2f408",
267         "type": "outcome",
268         "name": "assign",
269         "xml": "<outcome value='assign'>\n",
270         "comments": "",
271         "outputs": 1,
272         "x": 585.738037109375,
273         "y": 528.7947521209717,
274         "z": "19ac43dc.b5de6c",
275         "wires": [
276             [
277                 "5a45a048.95a1d"
278             ]
279         ]
280     },
281     {
282         "id": "5a45a048.95a1d",
283         "type": "block",
284         "name": "block : atomic",
285         "xml": "<block atomic=\"true\">",
286         "atomic": "true",
287         "outputs": 1,
288         "x": 740.738037109375,
289         "y": 528.7947521209717,
290         "z": "19ac43dc.b5de6c",
291         "wires": [
292             [
293                 "e6d8c21d.71c1c",
294                 "689a33f6.b4cc9c",
295                 "217fcc81.9f4ba4"
296             ]
297         ]
298     },
299     {
300         "id": "a37f14a8.387e78",
301         "type": "dgstart",
302         "name": "DGSTART",
303         "outputs": 1,
304         "x": 100.41666630336204,
305         "y": 84.0803279876709,
306         "z": "19ac43dc.b5de6c",
307         "wires": [
308             [
309                 "b399deb4.255d6"
310             ]
311         ]
312     },
313     {
314         "id": "b399deb4.255d6",
315         "type": "service-logic",
316         "name": "GENERIC-RESOURCE-API ${project.version}",
317         "module": "GENERIC-RESOURCE-API",
318         "version": "${project.version}",
319         "comments": "",
320         "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}'>",
321         "outputs": 1,
322         "x": 175.70237186976829,
323         "y": 124.31843948364258,
324         "z": "19ac43dc.b5de6c",
325         "wires": [
326             [
327                 "869696da.e07a18"
328             ]
329         ]
330     },
331     {
332         "id": "869696da.e07a18",
333         "type": "method",
334         "name": "method validate-vnf-input",
335         "xml": "<method rpc='validate-vnf-input' mode='sync'>\n",
336         "comments": "",
337         "outputs": 1,
338         "x": 151.0952933175222,
339         "y": 165.33032417297363,
340         "z": "19ac43dc.b5de6c",
341         "wires": [
342             [
343                 "b38b0b37.4fbba8"
344             ]
345         ]
346     },
347     {
348         "id": "9789ee81.07f95",
349         "type": "comment",
350         "name": "validate-vnf-input",
351         "info": "",
352         "comments": "",
353         "x": 494.76152256556907,
354         "y": 31.666671752929688,
355         "z": "19ac43dc.b5de6c",
356         "wires": []
357     },
358     {
359         "id": "de04dcb6.e0093",
360         "type": "switchNode",
361         "name": "switch service-instance-id",
362         "xml": "<switch test='`$vnf-topology-operation-input.service-information.service-instance-id`'>\n",
363         "comments": "",
364         "outputs": 1,
365         "x": 451.0238135201589,
366         "y": 384.16668701171875,
367         "z": "19ac43dc.b5de6c",
368         "wires": [
369             [
370                 "54e9ea0e.6ae744"
371             ]
372         ]
373     },
374     {
375         "id": "54e9ea0e.6ae744",
376         "type": "outcome",
377         "name": "NULL",
378         "xml": "<outcome value=''>",
379         "comments": "",
380         "outputs": 1,
381         "x": 663.4523947579519,
382         "y": 384.1666831970215,
383         "z": "19ac43dc.b5de6c",
384         "wires": [
385             [
386                 "d1e3ee4b.ceb14"
387             ]
388         ]
389     },
390     {
391         "id": "d1e3ee4b.ceb14",
392         "type": "returnFailure",
393         "name": "return failure",
394         "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",
395         "comments": "",
396         "x": 814.8809607369558,
397         "y": 384.16668128967285,
398         "z": "19ac43dc.b5de6c",
399         "wires": []
400     },
401     {
402         "id": "286a5aeb.cd2826",
403         "type": "switchNode",
404         "name": "switch vnf-id",
405         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id`'>\n",
406         "comments": "",
407         "outputs": 1,
408         "x": 408.5238227844238,
409         "y": 427.6666774749756,
410         "z": "19ac43dc.b5de6c",
411         "wires": [
412             [
413                 "bb28e2bc.36c43"
414             ]
415         ]
416     },
417     {
418         "id": "bb28e2bc.36c43",
419         "type": "outcome",
420         "name": "NULL",
421         "xml": "<outcome value=''>",
422         "comments": "",
423         "outputs": 1,
424         "x": 663.8095321655273,
425         "y": 426.23810958862305,
426         "z": "19ac43dc.b5de6c",
427         "wires": [
428             [
429                 "9c9ba7cb.f1d4b8"
430             ]
431         ]
432     },
433     {
434         "id": "9c9ba7cb.f1d4b8",
435         "type": "returnFailure",
436         "name": "return failure",
437         "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",
438         "comments": "",
439         "x": 815.2380981445312,
440         "y": 426.2381076812744,
441         "z": "19ac43dc.b5de6c",
442         "wires": []
443     },
444     {
445         "id": "217fcc81.9f4ba4",
446         "type": "switchNode",
447         "name": "switch aic-cloud-region",
448         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n",
449         "comments": "",
450         "outputs": 1,
451         "x": 947.6666946411133,
452         "y": 570.238094329834,
453         "z": "19ac43dc.b5de6c",
454         "wires": [
455             [
456                 "30f287b7.9d1118"
457             ]
458         ]
459     },
460     {
461         "id": "30f287b7.9d1118",
462         "type": "outcome",
463         "name": "NULL",
464         "xml": "<outcome value=''>",
465         "comments": "",
466         "outputs": 1,
467         "x": 1174.3810119628906,
468         "y": 570.2381286621094,
469         "z": "19ac43dc.b5de6c",
470         "wires": [
471             [
472                 "44a324d9.932adc"
473             ]
474         ]
475     },
476     {
477         "id": "44a324d9.932adc",
478         "type": "returnFailure",
479         "name": "return failure",
480         "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",
481         "comments": "",
482         "x": 1325.8095779418945,
483         "y": 570.2381267547607,
484         "z": "19ac43dc.b5de6c",
485         "wires": []
486     }
487 ]