948336c6770db2f38fcfca27a403d534a2386d72
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_validate-service-input.json
1 [
2     {
3         "id": "d54a485.152c1b8",
4         "type": "block",
5         "name": "block : atomic",
6         "xml": "<block atomic=\"true\">",
7         "atomic": "true",
8         "outputs": 1,
9         "x": 167.4999901907786,
10         "y": 410.00000422341486,
11         "z": "42cc1159.52eec",
12         "wires": [
13             [
14                 "bcfa11de.2ed69",
15                 "c928e0b1.6f8ba",
16                 "862c95fc.9314d8",
17                 "57d36230.80271c"
18             ]
19         ]
20     },
21     {
22         "id": "bcfa11de.2ed69",
23         "type": "switchNode",
24         "name": "switch svc-request-id",
25         "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-request-id`'>\n",
26         "comments": "",
27         "outputs": 1,
28         "x": 454.5476303100586,
29         "y": 315.9374895095825,
30         "z": "42cc1159.52eec",
31         "wires": [
32             [
33                 "388829d5.26a2f6"
34             ]
35         ]
36     },
37     {
38         "id": "388829d5.26a2f6",
39         "type": "outcome",
40         "name": "NULL",
41         "xml": "<outcome value=''>",
42         "comments": "",
43         "outputs": 1,
44         "x": 680.2619247436523,
45         "y": 315.9374933242798,
46         "z": "42cc1159.52eec",
47         "wires": [
48             [
49                 "9ad322ba.1f5cf"
50             ]
51         ]
52     },
53     {
54         "id": "9ad322ba.1f5cf",
55         "type": "returnFailure",
56         "name": "return failure",
57         "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",
58         "comments": "",
59         "x": 831.6904907226562,
60         "y": 315.93749141693115,
61         "z": "42cc1159.52eec",
62         "wires": []
63     },
64     {
65         "id": "c928e0b1.6f8ba",
66         "type": "switchNode",
67         "name": "switch svc-action",
68         "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
69         "comments": "",
70         "outputs": 1,
71         "x": 443.118993486677,
72         "y": 274.50892107827326,
73         "z": "42cc1159.52eec",
74         "wires": [
75             [
76                 "14a44603.cceb6a"
77             ]
78         ]
79     },
80     {
81         "id": "14a44603.cceb6a",
82         "type": "outcome",
83         "name": "NULL",
84         "xml": "<outcome value=''>",
85         "comments": "",
86         "outputs": 1,
87         "x": 678.8333451407298,
88         "y": 273.08031885964533,
89         "z": "42cc1159.52eec",
90         "wires": [
91             [
92                 "2dd27fa8.9909d"
93             ]
94         ]
95     },
96     {
97         "id": "2dd27fa8.9909d",
98         "type": "returnFailure",
99         "name": "return failure",
100         "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",
101         "comments": "",
102         "x": 828.8333184378489,
103         "y": 273.0803283963885,
104         "z": "42cc1159.52eec",
105         "wires": []
106     },
107     {
108         "id": "862c95fc.9314d8",
109         "type": "switchNode",
110         "name": "switch request-action",
111         "xml": "<switch test='`$service-topology-operation-input.request-information.request-action`'>\n",
112         "comments": "",
113         "outputs": 1,
114         "x": 453.11904689243875,
115         "y": 358.7946361814227,
116         "z": "42cc1159.52eec",
117         "wires": [
118             [
119                 "d18a5e6f.1258e"
120             ]
121         ]
122     },
123     {
124         "id": "d18a5e6f.1258e",
125         "type": "outcome",
126         "name": "NULL",
127         "xml": "<outcome value=''>",
128         "comments": "",
129         "outputs": 1,
130         "x": 680.2619203839986,
131         "y": 358.79464708055775,
132         "z": "42cc1159.52eec",
133         "wires": [
134             [
135                 "2fcf1e47.c379d2"
136             ]
137         ]
138     },
139     {
140         "id": "2fcf1e47.c379d2",
141         "type": "returnFailure",
142         "name": "return failure",
143         "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",
144         "comments": "",
145         "x": 831.6904863630025,
146         "y": 358.7946451732091,
147         "z": "42cc1159.52eec",
148         "wires": []
149     },
150     {
151         "id": "1abfff83.8ab75",
152         "type": "switchNode",
153         "name": "switch subscription-service-type",
154         "xml": "<switch test='`$service-topology-operation-input.service-information.subscription-service-type`'>\n",
155         "comments": "",
156         "outputs": 1,
157         "x": 1005.4405844552175,
158         "y": 480.9375510896955,
159         "z": "42cc1159.52eec",
160         "wires": [
161             [
162                 "4139e9.e71e3618"
163             ]
164         ]
165     },
166     {
167         "id": "4139e9.e71e3618",
168         "type": "outcome",
169         "name": "NULL",
170         "xml": "<outcome value=''>",
171         "comments": "",
172         "outputs": 1,
173         "x": 1201.1548788888113,
174         "y": 480.93754822867254,
175         "z": "42cc1159.52eec",
176         "wires": [
177             [
178                 "c6f3b245.5780c"
179             ]
180         ]
181     },
182     {
183         "id": "c6f3b245.5780c",
184         "type": "returnFailure",
185         "name": "return failure",
186         "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.subscription-service-type is a required input\" />\n",
187         "comments": "",
188         "x": 1352.583429609026,
189         "y": 480.93753773825506,
190         "z": "42cc1159.52eec",
191         "wires": []
192     },
193     {
194         "id": "742df1ab.3ae88",
195         "type": "switchNode",
196         "name": "switch global-customer-id",
197         "xml": "<switch test='`$service-topology-operation-input.service-information.global-customer-id`'>\n",
198         "comments": "",
199         "outputs": 1,
200         "x": 985.4406378609792,
201         "y": 522.3661514009748,
202         "z": "42cc1159.52eec",
203         "wires": [
204             [
205                 "7ba07ba.47bde84"
206             ]
207         ]
208     },
209     {
210         "id": "7ba07ba.47bde84",
211         "type": "outcome",
212         "name": "NULL",
213         "xml": "<outcome value=''>",
214         "comments": "",
215         "outputs": 1,
216         "x": 1201.1548865182058,
217         "y": 522.3661533083234,
218         "z": "42cc1159.52eec",
219         "wires": [
220             [
221                 "cbe8d9bd.9c8618"
222             ]
223         ]
224     },
225     {
226         "id": "cbe8d9bd.9c8618",
227         "type": "returnFailure",
228         "name": "return failure",
229         "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.global-customer-id is a required input\" />\n",
230         "comments": "",
231         "x": 1352.5834524972097,
232         "y": 522.3661514009748,
233         "z": "42cc1159.52eec",
234         "wires": []
235     },
236     {
237         "id": "1fcc9e4a.90b532",
238         "type": "switchNode",
239         "name": "switch model-invariant-uuid",
240         "xml": "<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`'>\n",
241         "comments": "",
242         "outputs": 1,
243         "x": 991.1548560006277,
244         "y": 563.7947231020246,
245         "z": "42cc1159.52eec",
246         "wires": [
247             [
248                 "a2b56163.2eead"
249             ]
250         ]
251     },
252     {
253         "id": "a2b56163.2eead",
254         "type": "outcome",
255         "name": "NULL",
256         "xml": "<outcome value=''>",
257         "comments": "",
258         "outputs": 1,
259         "x": 1201.1548636300222,
260         "y": 563.7947498049055,
261         "z": "42cc1159.52eec",
262         "wires": [
263             [
264                 "85da17f9.7b6ee8"
265             ]
266         ]
267     },
268     {
269         "id": "85da17f9.7b6ee8",
270         "type": "returnFailure",
271         "name": "return failure",
272         "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.onap-model-information.model-invariant-uuid is a required input\" />\n",
273         "comments": "",
274         "x": 1352.583429609026,
275         "y": 563.7947478975568,
276         "z": "42cc1159.52eec",
277         "wires": []
278     },
279     {
280         "id": "96d57264.57088",
281         "type": "switchNode",
282         "name": "switch model-uuid",
283         "xml": "<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-uuid`'>\n",
284         "comments": "",
285         "outputs": 1,
286         "x": 961.1549551827566,
287         "y": 605.2233367647443,
288         "z": "42cc1159.52eec",
289         "wires": [
290             [
291                 "b0c11ff.c6916e"
292             ]
293         ]
294     },
295     {
296         "id": "b0c11ff.c6916e",
297         "type": "outcome",
298         "name": "NULL",
299         "xml": "<outcome value=''>",
300         "comments": "",
301         "outputs": 1,
302         "x": 1201.1549551827566,
303         "y": 605.2233195986066,
304         "z": "42cc1159.52eec",
305         "wires": [
306             [
307                 "6ef2e613.020628"
308             ]
309         ]
310     },
311     {
312         "id": "6ef2e613.020628",
313         "type": "returnFailure",
314         "name": "return failure",
315         "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.onap-model-information.model-uuid is a required input\" />\n",
316         "comments": "",
317         "x": 1352.5835211617605,
318         "y": 605.223317691258,
319         "z": "42cc1159.52eec",
320         "wires": []
321     },
322     {
323         "id": "731761a3.6eed4",
324         "type": "switchNode",
325         "name": "switch model-name",
326         "xml": "<switch test='`$service-topology-operation-input.service-information.onap-model-information.model-name`'>\n",
327         "comments": "",
328         "outputs": 1,
329         "x": 964.0120337350027,
330         "y": 646.6518474306379,
331         "z": "42cc1159.52eec",
332         "wires": [
333             [
334                 "65032b2e.022024"
335             ]
336         ]
337     },
338     {
339         "id": "65032b2e.022024",
340         "type": "outcome",
341         "name": "NULL",
342         "xml": "<outcome value=''>",
343         "comments": "",
344         "outputs": 1,
345         "x": 1199.72635105678,
346         "y": 646.6518817629133,
347         "z": "42cc1159.52eec",
348         "wires": [
349             [
350                 "b67eae73.a9f6c"
351             ]
352         ]
353     },
354     {
355         "id": "b67eae73.a9f6c",
356         "type": "returnFailure",
357         "name": "return failure",
358         "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.onap-model-information.model-name is a required input\" />\n",
359         "comments": "",
360         "x": 1351.154917035784,
361         "y": 646.6518798555646,
362         "z": "42cc1159.52eec",
363         "wires": []
364     },
365     {
366         "id": "fb62d34c.a0426",
367         "type": "comment",
368         "name": "Validation of required fields",
369         "info": "",
370         "comments": "",
371         "x": 603.1190032958984,
372         "y": 230.22320365905762,
373         "z": "42cc1159.52eec",
374         "wires": []
375     },
376     {
377         "id": "57d36230.80271c",
378         "type": "switchNode",
379         "name": "switch svc-action",
380         "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
381         "comments": "",
382         "outputs": 1,
383         "x": 438.35706329345703,
384         "y": 563.1994934082031,
385         "z": "42cc1159.52eec",
386         "wires": [
387             [
388                 "737f9c27.6f5f04"
389             ]
390         ]
391     },
392     {
393         "id": "737f9c27.6f5f04",
394         "type": "outcome",
395         "name": "assign",
396         "xml": "<outcome value='assign'>\n",
397         "comments": "",
398         "outputs": 1,
399         "x": 600.857063293457,
400         "y": 563.1994934082031,
401         "z": "42cc1159.52eec",
402         "wires": [
403             [
404                 "9f47db00.e034a8"
405             ]
406         ]
407     },
408     {
409         "id": "9f47db00.e034a8",
410         "type": "block",
411         "name": "block : atomic",
412         "xml": "<block atomic=\"true\">",
413         "atomic": "true",
414         "outputs": 1,
415         "x": 755.857063293457,
416         "y": 563.1994934082031,
417         "z": "42cc1159.52eec",
418         "wires": [
419             [
420                 "1abfff83.8ab75",
421                 "742df1ab.3ae88",
422                 "1fcc9e4a.90b532",
423                 "96d57264.57088",
424                 "731761a3.6eed4",
425                 "7ae25d13.e12ea4"
426             ]
427         ]
428     },
429     {
430         "id": "8465d752.ecf868",
431         "type": "dgstart",
432         "name": "DGSTART",
433         "outputs": 1,
434         "x": 111.25,
435         "y": 79.91365623474121,
436         "z": "42cc1159.52eec",
437         "wires": [
438             [
439                 "9f7bd881.0481b8"
440             ]
441         ]
442     },
443     {
444         "id": "9f7bd881.0481b8",
445         "type": "service-logic",
446         "name": "GENERIC-RESOURCE-API ${project.version}",
447         "module": "GENERIC-RESOURCE-API",
448         "version": "${project.version}",
449         "comments": "",
450         "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}'>",
451         "outputs": 1,
452         "x": 186.53570556640625,
453         "y": 120.15176773071289,
454         "z": "42cc1159.52eec",
455         "wires": [
456             [
457                 "15072416.3cb84c"
458             ]
459         ]
460     },
461     {
462         "id": "15072416.3cb84c",
463         "type": "method",
464         "name": "method validate-service-input",
465         "xml": "<method rpc='validate-service-input' mode='sync'>\n",
466         "comments": "",
467         "outputs": 1,
468         "x": 175.92862701416016,
469         "y": 161.16365242004395,
470         "z": "42cc1159.52eec",
471         "wires": [
472             [
473                 "d54a485.152c1b8"
474             ]
475         ]
476     },
477     {
478         "id": "6f67c5b7.423c2c",
479         "type": "comment",
480         "name": "validate-service-input",
481         "info": "",
482         "comments": "",
483         "x": 505.59485626220703,
484         "y": 27.5,
485         "z": "42cc1159.52eec",
486         "wires": []
487     },
488     {
489         "id": "7ae25d13.e12ea4",
490         "type": "switchNode",
491         "name": "switch service-id",
492         "xml": "<switch test='`$service-topology-operation-input.service-information.service-id`'>\n",
493         "comments": "",
494         "outputs": 1,
495         "x": 957.1428375244141,
496         "y": 440.428599357605,
497         "z": "42cc1159.52eec",
498         "wires": [
499             [
500                 "e9812407.bacf48"
501             ]
502         ]
503     },
504     {
505         "id": "e9812407.bacf48",
506         "type": "outcome",
507         "name": "NULL",
508         "xml": "<outcome value=''>",
509         "comments": "",
510         "outputs": 1,
511         "x": 1197.571418762207,
512         "y": 440.4285955429077,
513         "z": "42cc1159.52eec",
514         "wires": [
515             [
516                 "9d9de464.0da3a8"
517             ]
518         ]
519     },
520     {
521         "id": "9d9de464.0da3a8",
522         "type": "returnFailure",
523         "name": "return failure",
524         "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-id is a required input\" />\n",
525         "comments": "",
526         "x": 1348.999984741211,
527         "y": 440.4285936355591,
528         "z": "42cc1159.52eec",
529         "wires": []
530     }
531 ]