2645685578a27dc40669738c942a791b0a1d294c
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-get-site-param.json
1 [
2   {
3     "id": "c9ac4983.326288",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 259.03125,
8     "y": 199.03125,
9     "z": "33fa79d5.e5dbd6",
10     "wires": [
11       [
12         "a919b1fb.cf167"
13       ]
14     ]
15   },
16   {
17     "id": "a919b1fb.cf167",
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": 471.03125381469727,
26     "y": 271.0312671661377,
27     "z": "33fa79d5.e5dbd6",
28     "wires": [
29       [
30         "20189583.354efa"
31       ]
32     ]
33   },
34   {
35     "id": "20189583.354efa",
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": 459.0313720703125,
42     "y": 359.03125,
43     "z": "33fa79d5.e5dbd6",
44     "wires": [
45       [
46         "c2456569.00bd88"
47       ]
48     ]
49   },
50   {
51     "id": "c2456569.00bd88",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 466.03126525878906,
59     "y": 445.0313081741333,
60     "z": "33fa79d5.e5dbd6",
61     "wires": [
62       [
63         "4e2d26a4.4c1808"
64       ]
65     ]
66   },
67   {
68     "id": "4e2d26a4.4c1808",
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": 502.6980285644531,
75     "y": 527.697904586792,
76     "z": "33fa79d5.e5dbd6",
77     "wires": [
78       [
79         "e3603253.51629"
80       ]
81     ]
82   },
83   {
84     "id": "e3603253.51629",
85     "type": "block",
86     "name": "block",
87     "xml": "<block>\n",
88     "atomic": "false",
89     "comments": "",
90     "outputs": 1,
91     "x": 789.5315780639648,
92     "y": 445.03135204315186,
93     "z": "33fa79d5.e5dbd6",
94     "wires": [
95       [
96         "4fbcc568.ce097c",
97         "9e4fbe84.7d2fb",
98         "ed14265a.99d948",
99         "773d0e91.45e91",
100         "a690711f.67d26",
101         "f96e2736.deb9e8",
102         "5bc913df.9a308c",
103         "8619f18f.0dd93",
104         "1ee73b7b.ea9285",
105         "5cd558f4.7f3258",
106         "dbf73ee2.461c2",
107         "bbcb741c.0eb968",
108         "cd952f17.46c77"
109       ]
110     ]
111   },
112   {
113     "id": "4fbcc568.ce097c",
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": 993.0323181152344,
119     "y": 814.032012462616,
120     "z": "33fa79d5.e5dbd6",
121     "wires": []
122   },
123   {
124     "id": "9e4fbe84.7d2fb",
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": 1009.0312881469727,
131     "y": 241.031325340271,
132     "z": "33fa79d5.e5dbd6",
133     "wires": [
134       [
135         "3261cfb2.83caf"
136       ]
137     ]
138   },
139   {
140     "id": "3261cfb2.83caf",
141     "type": "outcomeTrue",
142     "name": "true",
143     "xml": "<outcome value='true'>\n",
144     "comments": "",
145     "outputs": 1,
146     "x": 1151.0312881469727,
147     "y": 242.031325340271,
148     "z": "33fa79d5.e5dbd6",
149     "wires": [
150       [
151         "e4e6bc65.0ec81"
152       ]
153     ]
154   },
155   {
156     "id": "e4e6bc65.0ec81",
157     "type": "set",
158     "name": "set name",
159     "xml": "<set>\n<parameter name='prop.device.name' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
160     "comments": "",
161     "x": 1285.0312881469727,
162     "y": 242.63133144378662,
163     "z": "33fa79d5.e5dbd6",
164     "wires": []
165   },
166   {
167     "id": "ed14265a.99d948",
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": 1005.0313949584961,
174     "y": 332.0312833786011,
175     "z": "33fa79d5.e5dbd6",
176     "wires": [
177       [
178         "81ce8f79.a82a1"
179       ]
180     ]
181   },
182   {
183     "id": "81ce8f79.a82a1",
184     "type": "outcomeTrue",
185     "name": "true",
186     "xml": "<outcome value='true'>\n",
187     "comments": "",
188     "outputs": 1,
189     "x": 1183.0314083099365,
190     "y": 335.0312833786011,
191     "z": "33fa79d5.e5dbd6",
192     "wires": [
193       [
194         "6599a894.64adf8"
195       ]
196     ]
197   },
198   {
199     "id": "6599a894.64adf8",
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": 1330.0314178466797,
205     "y": 334.6312789916992,
206     "z": "33fa79d5.e5dbd6",
207     "wires": []
208   },
209   {
210     "id": "5cd558f4.7f3258",
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": 983.9270668029785,
217     "y": 630.0047330856323,
218     "z": "33fa79d5.e5dbd6",
219     "wires": [
220       [
221         "48783360.87fe7c"
222       ]
223     ]
224   },
225   {
226     "id": "48783360.87fe7c",
227     "type": "outcomeTrue",
228     "name": "true",
229     "xml": "<outcome value='true'>\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 1162.9269104003906,
233     "y": 631.0046529769897,
234     "z": "33fa79d5.e5dbd6",
235     "wires": [
236       [
237         "b59fb35a.098b9"
238       ]
239     ]
240   },
241   {
242     "id": "b59fb35a.098b9",
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": 1312.9269218444824,
248     "y": 632.6046676635742,
249     "z": "33fa79d5.e5dbd6",
250     "wires": []
251   },
252   {
253     "id": "dbf73ee2.461c2",
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": 984.9267425537109,
260     "y": 674.0047731399536,
261     "z": "33fa79d5.e5dbd6",
262     "wires": [
263       [
264         "8ceba6c3.5c88c8"
265       ]
266     ]
267   },
268   {
269     "id": "8ceba6c3.5c88c8",
270     "type": "outcomeTrue",
271     "name": "true",
272     "xml": "<outcome value='true'>\n",
273     "comments": "",
274     "outputs": 1,
275     "x": 1154.9267501831055,
276     "y": 684.0047359466553,
277     "z": "33fa79d5.e5dbd6",
278     "wires": [
279       [
280         "832f2789.d30da8"
281       ]
282     ]
283   },
284   {
285     "id": "773d0e91.45e91",
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": 1027.9265823364258,
292     "y": 374.0045919418335,
293     "z": "33fa79d5.e5dbd6",
294     "wires": [
295       [
296         "85468ea4.c68d2"
297       ]
298     ]
299   },
300   {
301     "id": "85468ea4.c68d2",
302     "type": "outcomeTrue",
303     "name": "true",
304     "xml": "<outcome value='true'>\n",
305     "comments": "",
306     "outputs": 1,
307     "x": 1191.9267539978027,
308     "y": 374.0045928955078,
309     "z": "33fa79d5.e5dbd6",
310     "wires": [
311       [
312         "bc94b24c.9dce8"
313       ]
314     ]
315   },
316   {
317     "id": "bc94b24c.9dce8",
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": 1353.9267654418945,
323     "y": 373.6046495437622,
324     "z": "33fa79d5.e5dbd6",
325     "wires": []
326   },
327   {
328     "id": "a690711f.67d26",
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": 1010.9265823364258,
335     "y": 410.00459575653076,
336     "z": "33fa79d5.e5dbd6",
337     "wires": [
338       [
339         "5c1e569f.3488e8"
340       ]
341     ]
342   },
343   {
344     "id": "5c1e569f.3488e8",
345     "type": "outcomeTrue",
346     "name": "true",
347     "xml": "<outcome value='true'>\n",
348     "comments": "",
349     "outputs": 1,
350     "x": 1180.9264297485352,
351     "y": 418.00459480285645,
352     "z": "33fa79d5.e5dbd6",
353     "wires": [
354       [
355         "b976d806.368f48"
356       ]
357     ]
358   },
359   {
360     "id": "b976d806.368f48",
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": 1368.9266052246094,
366     "y": 413.60457038879395,
367     "z": "33fa79d5.e5dbd6",
368     "wires": []
369   },
370   {
371     "id": "f96e2736.deb9e8",
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": 1011.9265823364258,
378     "y": 452.0045566558838,
379     "z": "33fa79d5.e5dbd6",
380     "wires": [
381       [
382         "e2c2334c.42179"
383       ]
384     ]
385   },
386   {
387     "id": "e2c2334c.42179",
388     "type": "outcomeTrue",
389     "name": "true",
390     "xml": "<outcome value='true'>\n",
391     "comments": "",
392     "outputs": 1,
393     "x": 1176.9267539978027,
394     "y": 451.0045566558838,
395     "z": "33fa79d5.e5dbd6",
396     "wires": [
397       [
398         "8da40933.edfaf8"
399       ]
400     ]
401   },
402   {
403     "id": "8da40933.edfaf8",
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": 1363.9266052246094,
409     "y": 452.6045732498169,
410     "z": "33fa79d5.e5dbd6",
411     "wires": []
412   },
413   {
414     "id": "bbcb741c.0eb968",
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": 1003.8099670410156,
421     "y": 734.0315742492676,
422     "z": "33fa79d5.e5dbd6",
423     "wires": [
424       [
425         "6a2baa92.dd77f4"
426       ]
427     ]
428   },
429   {
430     "id": "6a2baa92.dd77f4",
431     "type": "outcomeTrue",
432     "name": "true",
433     "xml": "<outcome value='true'>\n",
434     "comments": "",
435     "outputs": 1,
436     "x": 1165.8098907470703,
437     "y": 730.0315971374512,
438     "z": "33fa79d5.e5dbd6",
439     "wires": [
440       [
441         "fd4f1adb.5ec4b8"
442       ]
443     ]
444   },
445   {
446     "id": "9ab3bfdb.b8822",
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": 1526.8100395202637,
452     "y": 660.0315113067627,
453     "z": "33fa79d5.e5dbd6",
454     "wires": []
455   },
456   {
457     "id": "44d73030.0da8d",
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": 1550.8099174499512,
463     "y": 750.0315952301025,
464     "z": "33fa79d5.e5dbd6",
465     "wires": []
466   },
467   {
468     "id": "a9190ca.3c93df",
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": 1565.4762649536133,
475     "y": 707.0314292907715,
476     "z": "33fa79d5.e5dbd6",
477     "wires": [
478       []
479     ]
480   },
481   {
482     "id": "832f2789.d30da8",
483     "type": "block",
484     "name": "block : atomic",
485     "xml": "<block atomic=\"true\">",
486     "atomic": "true",
487     "outputs": 1,
488     "x": 1312.4764022827148,
489     "y": 687.0314292907715,
490     "z": "33fa79d5.e5dbd6",
491     "wires": [
492       [
493         "9ab3bfdb.b8822",
494         "a9190ca.3c93df"
495       ]
496     ]
497   },
498   {
499     "id": "fd4f1adb.5ec4b8",
500     "type": "block",
501     "name": "block : atomic",
502     "xml": "<block atomic=\"true\">",
503     "atomic": "true",
504     "comments": "",
505     "outputs": 1,
506     "x": 1324.4762382507324,
507     "y": 734.0313529968262,
508     "z": "33fa79d5.e5dbd6",
509     "wires": [
510       [
511         "44d73030.0da8d",
512         "2ecea48f.cefbcc"
513       ]
514     ]
515   },
516   {
517     "id": "2ecea48f.cefbcc",
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": 1575.4763946533203,
524     "y": 802.031455039978,
525     "z": "33fa79d5.e5dbd6",
526     "wires": [
527       []
528     ]
529   },
530   {
531     "id": "5bc913df.9a308c",
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": 1002.1428909301758,
538     "y": 496.03133392333984,
539     "z": "33fa79d5.e5dbd6",
540     "wires": [
541       [
542         "408fca65.ceeb84"
543       ]
544     ]
545   },
546   {
547     "id": "408fca65.ceeb84",
548     "type": "outcomeTrue",
549     "name": "true",
550     "xml": "<outcome value='true'>\n",
551     "comments": "",
552     "outputs": 1,
553     "x": 1178.1427383422852,
554     "y": 491.03129291534424,
555     "z": "33fa79d5.e5dbd6",
556     "wires": [
557       [
558         "fff4ca4.988db38"
559       ]
560     ]
561   },
562   {
563     "id": "fff4ca4.988db38",
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": 1352.1427459716797,
569     "y": 489.63130950927734,
570     "z": "33fa79d5.e5dbd6",
571     "wires": []
572   },
573   {
574     "id": "8619f18f.0dd93",
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": 1005.1428909301758,
581     "y": 536.0313768386841,
582     "z": "33fa79d5.e5dbd6",
583     "wires": [
584       [
585         "f2c6dced.9082e"
586       ]
587     ]
588   },
589   {
590     "id": "f2c6dced.9082e",
591     "type": "outcomeTrue",
592     "name": "true",
593     "xml": "<outcome value='true'>\n",
594     "comments": "",
595     "outputs": 1,
596     "x": 1177.1428985595703,
597     "y": 531.031418800354,
598     "z": "33fa79d5.e5dbd6",
599     "wires": [
600       [
601         "dc9fd2db.e7bb7"
602       ]
603     ]
604   },
605   {
606     "id": "dc9fd2db.e7bb7",
607     "type": "set",
608     "name": "set location-latitude",
609     "xml": "<set>\n<parameter name='prop.site.location-latitude' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
610     "comments": "",
611     "x": 1359.1427536010742,
612     "y": 534.6312704086304,
613     "z": "33fa79d5.e5dbd6",
614     "wires": []
615   },
616   {
617     "id": "95b5a3d.f7b926",
618     "type": "outcomeTrue",
619     "name": "true",
620     "xml": "<outcome value='true'>\n",
621     "comments": "",
622     "outputs": 1,
623     "x": 1168.1428985595703,
624     "y": 581.031421661377,
625     "z": "33fa79d5.e5dbd6",
626     "wires": [
627       [
628         "9b797058.27cec"
629       ]
630     ]
631   },
632   {
633     "id": "e75918af.752508",
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": 1526.142593383789,
639     "y": 549.6312737464905,
640     "z": "33fa79d5.e5dbd6",
641     "wires": []
642   },
643   {
644     "id": "1ee73b7b.ea9285",
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": 995.1429672241211,
651     "y": 581.031421661377,
652     "z": "33fa79d5.e5dbd6",
653     "wires": [
654       [
655         "95b5a3d.f7b926"
656       ]
657     ]
658   },
659   {
660     "id": "931cb5f.e240e48",
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": 1551.808937072754,
667     "y": 596.0311765670776,
668     "z": "33fa79d5.e5dbd6",
669     "wires": [
670       []
671     ]
672   },
673   {
674     "id": "9b797058.27cec",
675     "type": "block",
676     "name": "block : atomic",
677     "xml": "<block atomic=\"true\">",
678     "atomic": "true",
679     "outputs": 1,
680     "x": 1330.1429061889648,
681     "y": 582.0313391685486,
682     "z": "33fa79d5.e5dbd6",
683     "wires": [
684       [
685         "e75918af.752508",
686         "931cb5f.e240e48"
687       ]
688     ]
689   },
690   {
691     "id": "cd952f17.46c77",
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": 1010.03125,
698     "y": 286.03125,
699     "z": "33fa79d5.e5dbd6",
700     "wires": [
701       [
702         "e92216b6.4260b8"
703       ]
704     ]
705   },
706   {
707     "id": "e92216b6.4260b8",
708     "type": "outcomeTrue",
709     "name": "true",
710     "xml": "<outcome value='true'>\n",
711     "comments": "",
712     "outputs": 1,
713     "x": 1152.03125,
714     "y": 287.03125,
715     "z": "33fa79d5.e5dbd6",
716     "wires": [
717       [
718         "adffc0ee.7e0ff"
719       ]
720     ]
721   },
722   {
723     "id": "adffc0ee.7e0ff",
724     "type": "set",
725     "name": "set description",
726     "xml": "<set>\n<parameter name='prop.device.description' value='`$vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
727     "comments": "",
728     "x": 1286.03125,
729     "y": 287.6312561035156,
730     "z": "33fa79d5.e5dbd6",
731     "wires": []
732   }
733 ]