76e0f703d4bd8c30fa1e6f4799835fcf4d5d0f72
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-get-site-param.json
1 [
2   {
3     "id": "c38bd7d5.df77b8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 220.00390625,
8     "y": 142.00390625,
9     "z": "152c5971.7ac927",
10     "wires": [
11       [
12         "9db33c19.af792"
13       ]
14     ]
15   },
16   {
17     "id": "9db33c19.af792",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "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}'>",
24     "outputs": 1,
25     "x": 432.00391006469727,
26     "y": 214.0039234161377,
27     "z": "152c5971.7ac927",
28     "wires": [
29       [
30         "d521798b.eb0348"
31       ]
32     ]
33   },
34   {
35     "id": "d521798b.eb0348",
36     "type": "method",
37     "name": "sdwan-get-site-param",
38     "xml": "<method rpc='sdwan-get-site-param' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 420.0040283203125,
42     "y": 302.00390625,
43     "z": "152c5971.7ac927",
44     "wires": [
45       [
46         "71ba9c6d.9a9864"
47       ]
48     ]
49   },
50   {
51     "id": "71ba9c6d.9a9864",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 427.00392150878906,
59     "y": 388.0039644241333,
60     "z": "152c5971.7ac927",
61     "wires": [
62       [
63         "b3f4200f.57507"
64       ]
65     ]
66   },
67   {
68     "id": "b3f4200f.57507",
69     "type": "for",
70     "name": "for each sdwan-get-request-input-param",
71     "xml": "<for index='idx' start='0' end='`$vnf-request-input.vnf-input-parameters.param_length`' >\n\n",
72     "comments": "",
73     "outputs": 1,
74     "x": 463.6706848144531,
75     "y": 470.670560836792,
76     "z": "152c5971.7ac927",
77     "wires": [
78       [
79         "6800f034.117f8"
80       ]
81     ]
82   },
83   {
84     "id": "6800f034.117f8",
85     "type": "block",
86     "name": "block",
87     "xml": "<block>\n",
88     "atomic": "false",
89     "comments": "",
90     "outputs": 1,
91     "x": 750.5042343139648,
92     "y": 388.00400829315186,
93     "z": "152c5971.7ac927",
94     "wires": [
95       [
96         "a6377b98.e830f8",
97         "517edbd2.91b704",
98         "a701284f.455118",
99         "ca16c569.719ab8",
100         "86e64461.d62ec8",
101         "c6f06bc6.074328",
102         "24b313e.2bb53ec",
103         "3a793fa2.7f94e",
104         "fee596dc.022e48",
105         "2bb40b1d.ca77f4",
106         "663914f5.d948fc",
107         "9a6d9a43.210478",
108         "d3c58875.e0f958"
109       ]
110     ]
111   },
112   {
113     "id": "a6377b98.e830f8",
114     "type": "returnSuccess",
115     "name": "return success",
116     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
117     "comments": "",
118     "x": 954.0049743652344,
119     "y": 757.004668712616,
120     "z": "152c5971.7ac927",
121     "wires": []
122   },
123   {
124     "id": "517edbd2.91b704",
125     "type": "switchNode",
126     "name": "switch name",
127     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
128     "comments": "",
129     "outputs": 1,
130     "x": 970.0039443969727,
131     "y": 184.003981590271,
132     "z": "152c5971.7ac927",
133     "wires": [
134       [
135         "7a153116.0d4e7"
136       ]
137     ]
138   },
139   {
140     "id": "7a153116.0d4e7",
141     "type": "outcomeTrue",
142     "name": "true",
143     "xml": "<outcome value='true'>\n",
144     "comments": "",
145     "outputs": 1,
146     "x": 1112.0039443969727,
147     "y": 185.003981590271,
148     "z": "152c5971.7ac927",
149     "wires": [
150       [
151         "d8a2309b.8475f"
152       ]
153     ]
154   },
155   {
156     "id": "d8a2309b.8475f",
157     "type": "set",
158     "name": "set name",
159     "xml": "<set>\n<parameter name='prop.site.name' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
160     "comments": "",
161     "x": 1246.0039443969727,
162     "y": 185.60398769378662,
163     "z": "152c5971.7ac927",
164     "wires": []
165   },
166   {
167     "id": "a701284f.455118",
168     "type": "switchNode",
169     "name": "switch name",
170     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
171     "comments": "",
172     "outputs": 1,
173     "x": 966.0040512084961,
174     "y": 275.0039396286011,
175     "z": "152c5971.7ac927",
176     "wires": [
177       [
178         "de455822.f8ce78"
179       ]
180     ]
181   },
182   {
183     "id": "de455822.f8ce78",
184     "type": "outcomeTrue",
185     "name": "true",
186     "xml": "<outcome value='true'>\n",
187     "comments": "",
188     "outputs": 1,
189     "x": 1144.0040645599365,
190     "y": 278.0039396286011,
191     "z": "152c5971.7ac927",
192     "wires": [
193       [
194         "78b4f47e.c7bfcc"
195       ]
196     ]
197   },
198   {
199     "id": "78b4f47e.c7bfcc",
200     "type": "set",
201     "name": "set name",
202     "xml": "<set>\n<parameter name='prop.site.name' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
203     "comments": "",
204     "x": 1291.0040740966797,
205     "y": 277.6039352416992,
206     "z": "152c5971.7ac927",
207     "wires": []
208   },
209   {
210     "id": "2bb40b1d.ca77f4",
211     "type": "switchNode",
212     "name": "switch type",
213     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n",
214     "comments": "",
215     "outputs": 1,
216     "x": 944.8997230529785,
217     "y": 572.9773893356323,
218     "z": "152c5971.7ac927",
219     "wires": [
220       [
221         "8bb0abec.ed7288"
222       ]
223     ]
224   },
225   {
226     "id": "8bb0abec.ed7288",
227     "type": "outcomeTrue",
228     "name": "true",
229     "xml": "<outcome value='true'>\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 1123.8995666503906,
233     "y": 573.9773092269897,
234     "z": "152c5971.7ac927",
235     "wires": [
236       [
237         "bb6bcb71.b39508"
238       ]
239     ]
240   },
241   {
242     "id": "bb6bcb71.b39508",
243     "type": "set",
244     "name": "set type",
245     "xml": "<set>\n<parameter name='prop.site.type' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value='true' />",
246     "comments": "",
247     "x": 1273.8995780944824,
248     "y": 575.5773239135742,
249     "z": "152c5971.7ac927",
250     "wires": []
251   },
252   {
253     "id": "663914f5.d948fc",
254     "type": "switchNode",
255     "name": "switch role",
256     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
257     "comments": "",
258     "outputs": 1,
259     "x": 945.8993988037109,
260     "y": 616.9774293899536,
261     "z": "152c5971.7ac927",
262     "wires": [
263       [
264         "a0fc9634.928638"
265       ]
266     ]
267   },
268   {
269     "id": "a0fc9634.928638",
270     "type": "outcomeTrue",
271     "name": "true",
272     "xml": "<outcome value='true'>\n",
273     "comments": "",
274     "outputs": 1,
275     "x": 1115.8994064331055,
276     "y": 626.9773921966553,
277     "z": "152c5971.7ac927",
278     "wires": [
279       [
280         "55d77248.d68a9c"
281       ]
282     ]
283   },
284   {
285     "id": "ca16c569.719ab8",
286     "type": "switchNode",
287     "name": "switch location-name",
288     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'location-name'`\">\n",
289     "comments": "",
290     "outputs": 1,
291     "x": 988.8992385864258,
292     "y": 316.9772481918335,
293     "z": "152c5971.7ac927",
294     "wires": [
295       [
296         "4c784934.a87448"
297       ]
298     ]
299   },
300   {
301     "id": "4c784934.a87448",
302     "type": "outcomeTrue",
303     "name": "true",
304     "xml": "<outcome value='true'>\n",
305     "comments": "",
306     "outputs": 1,
307     "x": 1152.8994102478027,
308     "y": 316.9772491455078,
309     "z": "152c5971.7ac927",
310     "wires": [
311       [
312         "3e756eb.d90f392"
313       ]
314     ]
315   },
316   {
317     "id": "3e756eb.d90f392",
318     "type": "set",
319     "name": "set location-name",
320     "xml": "<set>\n<parameter name='prop.site.location-name' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
321     "comments": "",
322     "x": 1314.8994216918945,
323     "y": 316.5773057937622,
324     "z": "152c5971.7ac927",
325     "wires": []
326   },
327   {
328     "id": "86e64461.d62ec8",
329     "type": "switchNode",
330     "name": "switch address",
331     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'address'`\">\n",
332     "comments": "",
333     "outputs": 1,
334     "x": 971.8992385864258,
335     "y": 352.97725200653076,
336     "z": "152c5971.7ac927",
337     "wires": [
338       [
339         "4b7d0893.6d1a98"
340       ]
341     ]
342   },
343   {
344     "id": "4b7d0893.6d1a98",
345     "type": "outcomeTrue",
346     "name": "true",
347     "xml": "<outcome value='true'>\n",
348     "comments": "",
349     "outputs": 1,
350     "x": 1141.8990859985352,
351     "y": 360.97725105285645,
352     "z": "152c5971.7ac927",
353     "wires": [
354       [
355         "2c26a847.9d4008"
356       ]
357     ]
358   },
359   {
360     "id": "2c26a847.9d4008",
361     "type": "set",
362     "name": "set location-address",
363     "xml": "<set>\n<parameter name='prop.site.location-address' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
364     "comments": "",
365     "x": 1329.8992614746094,
366     "y": 356.57722663879395,
367     "z": "152c5971.7ac927",
368     "wires": []
369   },
370   {
371     "id": "c6f06bc6.074328",
372     "type": "switchNode",
373     "name": "switch postcode",
374     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'postcode'`\">\n",
375     "comments": "",
376     "outputs": 1,
377     "x": 972.8992385864258,
378     "y": 394.9772129058838,
379     "z": "152c5971.7ac927",
380     "wires": [
381       [
382         "af6ba3e1.07f47"
383       ]
384     ]
385   },
386   {
387     "id": "af6ba3e1.07f47",
388     "type": "outcomeTrue",
389     "name": "true",
390     "xml": "<outcome value='true'>\n",
391     "comments": "",
392     "outputs": 1,
393     "x": 1137.8994102478027,
394     "y": 393.9772129058838,
395     "z": "152c5971.7ac927",
396     "wires": [
397       [
398         "2e6a288b.539db8"
399       ]
400     ]
401   },
402   {
403     "id": "2e6a288b.539db8",
404     "type": "set",
405     "name": "set location-postcode",
406     "xml": "<set>\n<parameter name='prop.site.location-postcode' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
407     "comments": "",
408     "x": 1324.8992614746094,
409     "y": 395.5772294998169,
410     "z": "152c5971.7ac927",
411     "wires": []
412   },
413   {
414     "id": "9a6d9a43.210478",
415     "type": "switchNode",
416     "name": "switch controlPoint",
417     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'controlPoint'`\">\n",
418     "comments": "",
419     "outputs": 1,
420     "x": 964.7826232910156,
421     "y": 677.0042304992676,
422     "z": "152c5971.7ac927",
423     "wires": [
424       [
425         "610c92a.a595c6c"
426       ]
427     ]
428   },
429   {
430     "id": "610c92a.a595c6c",
431     "type": "outcomeTrue",
432     "name": "true",
433     "xml": "<outcome value='true'>\n",
434     "comments": "",
435     "outputs": 1,
436     "x": 1126.7825469970703,
437     "y": 673.0042533874512,
438     "z": "152c5971.7ac927",
439     "wires": [
440       [
441         "be722424.9e5438"
442       ]
443     ]
444   },
445   {
446     "id": "64aa63f1.8e581c",
447     "type": "set",
448     "name": "set role",
449     "xml": "<set>\n<parameter name='prop.site.role' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
450     "comments": "",
451     "x": 1487.7826957702637,
452     "y": 603.0041675567627,
453     "z": "152c5971.7ac927",
454     "wires": []
455   },
456   {
457     "id": "79665fbb.1aeb5",
458     "type": "set",
459     "name": "set controlPoint",
460     "xml": "<set>\n<parameter name='prop.site.controlPoint' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
461     "comments": "",
462     "x": 1511.7825736999512,
463     "y": 693.0042514801025,
464     "z": "152c5971.7ac927",
465     "wires": []
466   },
467   {
468     "id": "adfd7aba.7276f8",
469     "type": "execute",
470     "name": "execute split roles",
471     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.role`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.roles\"/>\n",
472     "comments": "",
473     "outputs": 1,
474     "x": 1526.4489212036133,
475     "y": 650.0040855407715,
476     "z": "152c5971.7ac927",
477     "wires": [
478       []
479     ]
480   },
481   {
482     "id": "55d77248.d68a9c",
483     "type": "block",
484     "name": "block : atomic",
485     "xml": "<block atomic=\"true\">",
486     "atomic": "true",
487     "outputs": 1,
488     "x": 1273.4490585327148,
489     "y": 630.0040855407715,
490     "z": "152c5971.7ac927",
491     "wires": [
492       [
493         "64aa63f1.8e581c",
494         "adfd7aba.7276f8"
495       ]
496     ]
497   },
498   {
499     "id": "be722424.9e5438",
500     "type": "block",
501     "name": "block : atomic",
502     "xml": "<block atomic=\"true\">",
503     "atomic": "true",
504     "comments": "",
505     "outputs": 1,
506     "x": 1285.4488945007324,
507     "y": 677.0040092468262,
508     "z": "152c5971.7ac927",
509     "wires": [
510       [
511         "79665fbb.1aeb5",
512         "db6408de.efe4c8"
513       ]
514     ]
515   },
516   {
517     "id": "db6408de.efe4c8",
518     "type": "execute",
519     "name": "execute split control points",
520     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.controlPoint`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.controlpoints\"/>\n",
521     "comments": "",
522     "outputs": 1,
523     "x": 1536.4490509033203,
524     "y": 745.004111289978,
525     "z": "152c5971.7ac927",
526     "wires": [
527       []
528     ]
529   },
530   {
531     "id": "24b313e.2bb53ec",
532     "type": "switchNode",
533     "name": "switch latitude",
534     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'latitude'`\">\n",
535     "comments": "",
536     "outputs": 1,
537     "x": 963.1155471801758,
538     "y": 439.00399017333984,
539     "z": "152c5971.7ac927",
540     "wires": [
541       [
542         "13e09627.b199da"
543       ]
544     ]
545   },
546   {
547     "id": "13e09627.b199da",
548     "type": "outcomeTrue",
549     "name": "true",
550     "xml": "<outcome value='true'>\n",
551     "comments": "",
552     "outputs": 1,
553     "x": 1139.1153945922852,
554     "y": 434.00394916534424,
555     "z": "152c5971.7ac927",
556     "wires": [
557       [
558         "3ac65d27.a38462"
559       ]
560     ]
561   },
562   {
563     "id": "3ac65d27.a38462",
564     "type": "set",
565     "name": "set location-latitude",
566     "xml": "<set>\n<parameter name='prop.site.location-latitude' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
567     "comments": "",
568     "x": 1313.1154022216797,
569     "y": 432.60396575927734,
570     "z": "152c5971.7ac927",
571     "wires": []
572   },
573   {
574     "id": "3a793fa2.7f94e",
575     "type": "switchNode",
576     "name": "switch longitude",
577     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'longitude'`\">\n",
578     "comments": "",
579     "outputs": 1,
580     "x": 966.1155471801758,
581     "y": 479.0040330886841,
582     "z": "152c5971.7ac927",
583     "wires": [
584       [
585         "55ab0e28.8342d"
586       ]
587     ]
588   },
589   {
590     "id": "55ab0e28.8342d",
591     "type": "outcomeTrue",
592     "name": "true",
593     "xml": "<outcome value='true'>\n",
594     "comments": "",
595     "outputs": 1,
596     "x": 1138.1155548095703,
597     "y": 474.004075050354,
598     "z": "152c5971.7ac927",
599     "wires": [
600       [
601         "de42d185.f22c5"
602       ]
603     ]
604   },
605   {
606     "id": "de42d185.f22c5",
607     "type": "set",
608     "name": "set location-longitude",
609     "xml": "<set>\n<parameter name='prop.site.location-longitude' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
610     "comments": "",
611     "x": 1320.1154098510742,
612     "y": 477.60392665863037,
613     "z": "152c5971.7ac927",
614     "wires": []
615   },
616   {
617     "id": "954fde0c.db00e",
618     "type": "outcomeTrue",
619     "name": "true",
620     "xml": "<outcome value='true'>\n",
621     "comments": "",
622     "outputs": 1,
623     "x": 1129.1155548095703,
624     "y": 524.004077911377,
625     "z": "152c5971.7ac927",
626     "wires": [
627       [
628         "ec738ea.7ff107"
629       ]
630     ]
631   },
632   {
633     "id": "ddfdabba.c44028",
634     "type": "set",
635     "name": "set emails",
636     "xml": "<set>\n<parameter name='prop.site.emails' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
637     "comments": "",
638     "x": 1487.115249633789,
639     "y": 492.6039299964905,
640     "z": "152c5971.7ac927",
641     "wires": []
642   },
643   {
644     "id": "fee596dc.022e48",
645     "type": "switchNode",
646     "name": "switch emails",
647     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'emails'`\">\n",
648     "comments": "",
649     "outputs": 1,
650     "x": 956.1156234741211,
651     "y": 524.004077911377,
652     "z": "152c5971.7ac927",
653     "wires": [
654       [
655         "954fde0c.db00e"
656       ]
657     ]
658   },
659   {
660     "id": "803294bd.b33768",
661     "type": "execute",
662     "name": "execute split emails",
663     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.emails`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.email\"/>\n",
664     "comments": "",
665     "outputs": 1,
666     "x": 1512.781593322754,
667     "y": 539.0038328170776,
668     "z": "152c5971.7ac927",
669     "wires": [
670       []
671     ]
672   },
673   {
674     "id": "ec738ea.7ff107",
675     "type": "block",
676     "name": "block : atomic",
677     "xml": "<block atomic=\"true\">",
678     "atomic": "true",
679     "outputs": 1,
680     "x": 1291.1155624389648,
681     "y": 525.0039954185486,
682     "z": "152c5971.7ac927",
683     "wires": [
684       [
685         "ddfdabba.c44028",
686         "803294bd.b33768"
687       ]
688     ]
689   },
690   {
691     "id": "d3c58875.e0f958",
692     "type": "switchNode",
693     "name": "switch description",
694     "xml": "<switch test=\"`$vnf-request-input.vnf-input-parameters.param[$idx].name == 'description'`\">\n",
695     "comments": "",
696     "outputs": 1,
697     "x": 971.00390625,
698     "y": 229.00390625,
699     "z": "152c5971.7ac927",
700     "wires": [
701       [
702         "8aebe9ab.cbad88"
703       ]
704     ]
705   },
706   {
707     "id": "8aebe9ab.cbad88",
708     "type": "outcomeTrue",
709     "name": "true",
710     "xml": "<outcome value='true'>\n",
711     "comments": "",
712     "outputs": 1,
713     "x": 1113.00390625,
714     "y": 230.00390625,
715     "z": "152c5971.7ac927",
716     "wires": [
717       [
718         "d7605ed6.36544"
719       ]
720     ]
721   },
722   {
723     "id": "d7605ed6.36544",
724     "type": "set",
725     "name": "set description",
726     "xml": "<set>\n<parameter name='prop.site.description' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
727     "comments": "",
728     "x": 1259.0039825439453,
729     "y": 230.60393619537354,
730     "z": "152c5971.7ac927",
731     "wires": []
732   }
733 ]