Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_generate-panorama-name.json
1 [
2     {
3         "id": "86ab255a.7522f8",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 110.23809051513672,
8         "y": 45.23809242248535,
9         "z": "58bca720.478948",
10         "wires": [
11             [
12                 "678d9d6c.30b764"
13             ]
14         ]
15     },
16     {
17         "id": "678d9d6c.30b764",
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": 213.14283752441406,
26         "y": 119.5238208770752,
27         "z": "58bca720.478948",
28         "wires": [
29             [
30                 "b2221892.cef528"
31             ]
32         ]
33     },
34     {
35         "id": "b2221892.cef528",
36         "type": "method",
37         "name": "generate-panorama-name",
38         "xml": "<method rpc='generate-panorama-name' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 203.8215560913086,
42         "y": 205.95234966278076,
43         "z": "58bca720.478948",
44         "wires": [
45             [
46                 "f0364dcb.e5f17"
47             ]
48         ]
49     },
50     {
51         "id": "3d24b231.0488de",
52         "type": "execute",
53         "name": "SliStringUtils - untrusted name length",
54         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='getLength' >\n    <parameter name=\"source\" value=\"`$new-name`\" />\n    <parameter name=\"outputPath\" value=\"tmp.strlen\"/>\n  \n",
55         "comments": "",
56         "outputs": 1,
57         "x": 619.2857666015625,
58         "y": 451.9047336578369,
59         "z": "58bca720.478948",
60         "wires": [
61             []
62         ]
63     },
64     {
65         "id": "209cc858.355be8",
66         "type": "switchNode",
67         "name": "switch strlen > 14",
68         "xml": "<switch test='`$tmp.strlen > 14`'>\n",
69         "comments": "",
70         "outputs": 1,
71         "x": 557.6191902160645,
72         "y": 506.6667060852051,
73         "z": "58bca720.478948",
74         "wires": [
75             [
76                 "5e19e3e9.a31dfc",
77                 "f283f234.fff93"
78             ]
79         ]
80     },
81     {
82         "id": "5e19e3e9.a31dfc",
83         "type": "outcomeTrue",
84         "name": "true",
85         "xml": "<outcome value='true'>\n",
86         "comments": "",
87         "outputs": 1,
88         "x": 748.0952911376953,
89         "y": 514.2856960296631,
90         "z": "58bca720.478948",
91         "wires": [
92             [
93                 "cc102d9.0977bd"
94             ]
95         ]
96     },
97     {
98         "id": "f283f234.fff93",
99         "type": "outcomeFalse",
100         "name": "false",
101         "xml": "<outcome value='false'>\n",
102         "comments": "",
103         "outputs": 1,
104         "x": 750.0000343322754,
105         "y": 567.8571586608887,
106         "z": "58bca720.478948",
107         "wires": [
108             [
109                 "237a8ded.5a3e32"
110             ]
111         ]
112     },
113     {
114         "id": "f0364dcb.e5f17",
115         "type": "block",
116         "name": "block : atomic",
117         "xml": "<block atomic=\"true\">",
118         "atomic": "true",
119         "comments": "",
120         "outputs": 1,
121         "x": 221.6666717529297,
122         "y": 288.33328199386597,
123         "z": "58bca720.478948",
124         "wires": [
125             [
126                 "3d24b231.0488de",
127                 "209cc858.355be8",
128                 "66cd5e7f.c924a",
129                 "64e4cd4b.fe6024",
130                 "41133073.515b5",
131                 "675c7c6.f01b184",
132                 "8effe6b3.282828",
133                 "67ad6570.58f12c",
134                 "a3bbbbad.a464e8",
135                 "5b9cfe55.47f8e",
136                 "c675a56.6ee6d58",
137                 "f88531c9.a42ed",
138                 "969e46d2.b374b8",
139                 "94f4e81f.b72c58",
140                 "1956129b.dcb17d"
141             ]
142         ]
143     },
144     {
145         "id": "64e4cd4b.fe6024",
146         "type": "execute",
147         "name": "SliStringUtils - split after .",
148         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n    <parameter name=\"original_string\" value=\"`$original-name`\" />\n    <parameter name=\"regex\" value=\"\\.\"/>\n    <parameter name=\"limit\" value=\"2\" />\n    <parameter name=\"ctx_memory_result_key\" value=\"splits\" />\n  \n",
149         "comments": "",
150         "outputs": 1,
151         "x": 584.9999237060547,
152         "y": 365.0000514984131,
153         "z": "58bca720.478948",
154         "wires": [
155             []
156         ]
157     },
158     {
159         "id": "cc102d9.0977bd",
160         "type": "block",
161         "name": "block : atomic",
162         "xml": "<block atomic=\"true\">",
163         "atomic": "true",
164         "comments": "",
165         "outputs": 1,
166         "x": 919.9999771118164,
167         "y": 514.9999675750732,
168         "z": "58bca720.478948",
169         "wires": [
170             [
171                 "18e960c5.ed36bf"
172             ]
173         ]
174     },
175     {
176         "id": "237a8ded.5a3e32",
177         "type": "block",
178         "name": "block : atomic",
179         "xml": "<block atomic=\"true\">",
180         "atomic": "true",
181         "comments": "",
182         "outputs": 1,
183         "x": 918.3332824707031,
184         "y": 569.9999866485596,
185         "z": "58bca720.478948",
186         "wires": [
187             [
188                 "433f13a6.865dec"
189             ]
190         ]
191     },
192     {
193         "id": "433f13a6.865dec",
194         "type": "set",
195         "name": "set newname",
196         "xml": "<set>\n<parameter name='new-name' value='`$new-name`' />\n",
197         "comments": "",
198         "x": 1111.666893005371,
199         "y": 568.3333539962769,
200         "z": "58bca720.478948",
201         "wires": []
202     },
203     {
204         "id": "66cd5e7f.c924a",
205         "type": "set",
206         "name": "set original-name",
207         "xml": "<set>\n<parameter name='original-name' value='`$security-zone-topology-operation-input.security-zone-request-input.untrusted-network-role`' />\n",
208         "comments": "",
209         "x": 563.3332672119141,
210         "y": 328.3333225250244,
211         "z": "58bca720.478948",
212         "wires": []
213     },
214     {
215         "id": "ea3b507a.625f2",
216         "type": "set",
217         "name": "set newname",
218         "xml": "<set>\n<parameter name='new-name' value='`$splits[1]`' />\n",
219         "comments": "",
220         "x": 991.666576385498,
221         "y": 380.6666660308838,
222         "z": "58bca720.478948",
223         "wires": []
224     },
225     {
226         "id": "41133073.515b5",
227         "type": "switchNode",
228         "name": "switch splits length",
229         "xml": "<switch test='`$splits_length`'>\n",
230         "comments": "",
231         "outputs": 1,
232         "x": 566.666633605957,
233         "y": 404.99998664855957,
234         "z": "58bca720.478948",
235         "wires": [
236             [
237                 "f70ab86.5576d48",
238                 "a0a0b61d.244a98",
239                 "41e61d00.f9cea4"
240             ]
241         ]
242     },
243     {
244         "id": "f70ab86.5576d48",
245         "type": "outcome",
246         "name": "outcome 1",
247         "xml": "<outcome value='1'>\n",
248         "comments": "",
249         "outputs": 1,
250         "x": 814.9999961853027,
251         "y": 350.0000400543213,
252         "z": "58bca720.478948",
253         "wires": [
254             [
255                 "d7fc706c.8b686"
256             ]
257         ]
258     },
259     {
260         "id": "a0a0b61d.244a98",
261         "type": "outcome",
262         "name": "outcome 2",
263         "xml": "<outcome value='2'>\n",
264         "comments": "",
265         "outputs": 1,
266         "x": 814.999927520752,
267         "y": 379.99999809265137,
268         "z": "58bca720.478948",
269         "wires": [
270             [
271                 "ea3b507a.625f2"
272             ]
273         ]
274     },
275     {
276         "id": "d7fc706c.8b686",
277         "type": "set",
278         "name": "set newname",
279         "xml": "<set>\n<parameter name='new-name' value='`$splits[0]`' />\n",
280         "comments": "",
281         "x": 988.3331985473633,
282         "y": 345.00002574920654,
283         "z": "58bca720.478948",
284         "wires": []
285     },
286     {
287         "id": "41e61d00.f9cea4",
288         "type": "other",
289         "name": "other",
290         "xml": "<outcome value='Other'>\n",
291         "comments": "",
292         "outputs": 1,
293         "x": 801.6666374206543,
294         "y": 413.3333396911621,
295         "z": "58bca720.478948",
296         "wires": [
297             [
298                 "f60e104a.d022b"
299             ]
300         ]
301     },
302     {
303         "id": "f60e104a.d022b",
304         "type": "returnFailure",
305         "name": "return failure",
306         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Unexpected network role used for panorama naming' />\n",
307         "comments": "",
308         "x": 993.333324432373,
309         "y": 413.3333559036255,
310         "z": "58bca720.478948",
311         "wires": []
312     },
313     {
314         "id": "18e960c5.ed36bf",
315         "type": "execute",
316         "name": "SliStringUtils - 14 len substring",
317         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring' >\n    <parameter name=\"string\" value=\"`$new-name`\" />\n    <parameter name=\"result\" value=\"new-name\"/>\n    <parameter name=\"begin-index\" value=\"0\" />\n    <parameter name=\"end-index\" value=\"14\" />\n  \n",
318         "comments": "",
319         "outputs": 1,
320         "x": 1168.3332061767578,
321         "y": 503.33331966400146,
322         "z": "58bca720.478948",
323         "wires": [
324             []
325         ]
326     },
327     {
328         "id": "f88531c9.a42ed",
329         "type": "execute",
330         "name": "SliStringUtils - untrusted name length",
331         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='getLength' >\n    <parameter name=\"source\" value=\"`$new-name`\" />\n    <parameter name=\"outputPath\" value=\"tmp.strlen\"/>\n  \n",
332         "comments": "",
333         "outputs": 1,
334         "x": 618.3332824707031,
335         "y": 799.9999866485596,
336         "z": "58bca720.478948",
337         "wires": [
338             []
339         ]
340     },
341     {
342         "id": "969e46d2.b374b8",
343         "type": "switchNode",
344         "name": "switch strlen > 14",
345         "xml": "<switch test='`$tmp.strlen > 14`'>\n",
346         "comments": "",
347         "outputs": 1,
348         "x": 556.6667060852051,
349         "y": 854.7619590759277,
350         "z": "58bca720.478948",
351         "wires": [
352             [
353                 "2eb1e963.8f58a6",
354                 "af892ecf.e3fc8"
355             ]
356         ]
357     },
358     {
359         "id": "2eb1e963.8f58a6",
360         "type": "outcomeTrue",
361         "name": "true",
362         "xml": "<outcome value='true'>\n",
363         "comments": "",
364         "outputs": 1,
365         "x": 747.1428070068359,
366         "y": 862.3809490203857,
367         "z": "58bca720.478948",
368         "wires": [
369             [
370                 "22bdc134.447f8e"
371             ]
372         ]
373     },
374     {
375         "id": "af892ecf.e3fc8",
376         "type": "outcomeFalse",
377         "name": "false",
378         "xml": "<outcome value='false'>\n",
379         "comments": "",
380         "outputs": 1,
381         "x": 749.047550201416,
382         "y": 915.9524116516113,
383         "z": "58bca720.478948",
384         "wires": [
385             [
386                 "b9e7b020.1beb"
387             ]
388         ]
389     },
390     {
391         "id": "5b9cfe55.47f8e",
392         "type": "execute",
393         "name": "SliStringUtils - split after .",
394         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n    <parameter name=\"original_string\" value=\"`$original-name`\" />\n    <parameter name=\"regex\" value=\"\\.\"/>\n    <parameter name=\"limit\" value=\"2\" />\n    <parameter name=\"ctx_memory_result_key\" value=\"splits\" />\n  \n",
395         "comments": "",
396         "outputs": 1,
397         "x": 584.0474395751953,
398         "y": 713.0953044891357,
399         "z": "58bca720.478948",
400         "wires": [
401             []
402         ]
403     },
404     {
405         "id": "22bdc134.447f8e",
406         "type": "block",
407         "name": "block : atomic",
408         "xml": "<block atomic=\"true\">",
409         "atomic": "true",
410         "comments": "",
411         "outputs": 1,
412         "x": 919.047492980957,
413         "y": 863.0952205657959,
414         "z": "58bca720.478948",
415         "wires": [
416             [
417                 "4f716d08.83a7d4"
418             ]
419         ]
420     },
421     {
422         "id": "b9e7b020.1beb",
423         "type": "block",
424         "name": "block : atomic",
425         "xml": "<block atomic=\"true\">",
426         "atomic": "true",
427         "comments": "",
428         "outputs": 1,
429         "x": 917.3807983398438,
430         "y": 918.0952396392822,
431         "z": "58bca720.478948",
432         "wires": [
433             [
434                 "b4fb00b0.5d6e"
435             ]
436         ]
437     },
438     {
439         "id": "b4fb00b0.5d6e",
440         "type": "set",
441         "name": "set newname",
442         "xml": "<set>\n<parameter name='new-name' value='`$new-name`' />\n",
443         "comments": "",
444         "x": 1110.7144088745117,
445         "y": 916.4286069869995,
446         "z": "58bca720.478948",
447         "wires": []
448     },
449     {
450         "id": "a3bbbbad.a464e8",
451         "type": "set",
452         "name": "set original-name",
453         "xml": "<set>\n<parameter name='original-name' value='`$security-zone-topology-operation-input.security-zone-request-input.trusted-network-role`' />\n",
454         "comments": "",
455         "x": 562.3807830810547,
456         "y": 676.4285755157471,
457         "z": "58bca720.478948",
458         "wires": []
459     },
460     {
461         "id": "a908f194.577e2",
462         "type": "set",
463         "name": "set newname",
464         "xml": "<set>\n<parameter name='new-name' value='`$splits[1]`' />\n",
465         "comments": "",
466         "x": 990.7140922546387,
467         "y": 728.7619190216064,
468         "z": "58bca720.478948",
469         "wires": []
470     },
471     {
472         "id": "c675a56.6ee6d58",
473         "type": "switchNode",
474         "name": "switch splits length",
475         "xml": "<switch test='`$splits_length`'>\n",
476         "comments": "",
477         "outputs": 1,
478         "x": 565.7141494750977,
479         "y": 753.0952396392822,
480         "z": "58bca720.478948",
481         "wires": [
482             [
483                 "db39b4ca.681638",
484                 "b28e57b5.d7f178",
485                 "97c9e8ea.f63768"
486             ]
487         ]
488     },
489     {
490         "id": "db39b4ca.681638",
491         "type": "outcome",
492         "name": "outcome 1",
493         "xml": "<outcome value='1'>\n",
494         "comments": "",
495         "outputs": 1,
496         "x": 814.0475120544434,
497         "y": 698.095293045044,
498         "z": "58bca720.478948",
499         "wires": [
500             [
501                 "c17629d6.f61e28"
502             ]
503         ]
504     },
505     {
506         "id": "b28e57b5.d7f178",
507         "type": "outcome",
508         "name": "outcome 2",
509         "xml": "<outcome value='2'>\n",
510         "comments": "",
511         "outputs": 1,
512         "x": 814.0474433898926,
513         "y": 728.095251083374,
514         "z": "58bca720.478948",
515         "wires": [
516             [
517                 "a908f194.577e2"
518             ]
519         ]
520     },
521     {
522         "id": "c17629d6.f61e28",
523         "type": "set",
524         "name": "set newname",
525         "xml": "<set>\n<parameter name='new-name' value='`$splits[0]`' />\n",
526         "comments": "",
527         "x": 987.3807563781738,
528         "y": 693.0952663421631,
529         "z": "58bca720.478948",
530         "wires": []
531     },
532     {
533         "id": "97c9e8ea.f63768",
534         "type": "other",
535         "name": "other",
536         "xml": "<outcome value='Other'>\n",
537         "comments": "",
538         "outputs": 1,
539         "x": 800.7141532897949,
540         "y": 761.4285926818848,
541         "z": "58bca720.478948",
542         "wires": [
543             [
544                 "6cb0731e.f3e13c"
545             ]
546         ]
547     },
548     {
549         "id": "6cb0731e.f3e13c",
550         "type": "returnFailure",
551         "name": "return failure",
552         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Unexpected network role used for panorama naming' />\n",
553         "comments": "",
554         "x": 992.3808403015137,
555         "y": 761.4286088943481,
556         "z": "58bca720.478948",
557         "wires": []
558     },
559     {
560         "id": "4f716d08.83a7d4",
561         "type": "execute",
562         "name": "SliStringUtils - 14 len substring",
563         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='substring' >\n    <parameter name=\"string\" value=\"`$new-name`\" />\n    <parameter name=\"result\" value=\"new-name\"/>\n    <parameter name=\"begin-index\" value=\"0\" />\n    <parameter name=\"end-index\" value=\"14\" />\n  \n",
564         "comments": "",
565         "outputs": 1,
566         "x": 1167.3807220458984,
567         "y": 851.4285726547241,
568         "z": "58bca720.478948",
569         "wires": [
570             []
571         ]
572     },
573     {
574         "id": "675c7c6.f01b184",
575         "type": "set",
576         "name": "set trust and untrust sz name",
577         "xml": "<set>\n<parameter name='tmp.trust-sz' value='$TenantOAMNetworkRole_$LandingNetworkRole_T' />\n<parameter name='tmp.untrust-sz' value='$TenantOAMNetworkRole_$LandingNetworkRole_U' />\n",
578         "comments": "",
579         "x": 599.9999084472656,
580         "y": 289.999960899353,
581         "z": "58bca720.478948",
582         "wires": []
583     },
584     {
585         "id": "8effe6b3.282828",
586         "type": "execute",
587         "name": "execute SliStringUtils - replace TenantOAMNetworkRole - trust-sz",
588         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.trust-sz`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.trust-sz\"/>\n    <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$new-name`\"/>\n\n",
589         "comments": "",
590         "outputs": 1,
591         "x": 706.9049072265625,
592         "y": 611.1904067993164,
593         "z": "58bca720.478948",
594         "wires": [
595             []
596         ]
597     },
598     {
599         "id": "94f4e81f.b72c58",
600         "type": "execute",
601         "name": "execute SliStringUtils - replace LandingNetworkRole - trust-sz",
602         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.trust-sz`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.trust-sz\"/>\n    <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$new-name`\"/>\n\n",
603         "comments": "",
604         "outputs": 1,
605         "x": 692.5240325927734,
606         "y": 985.7141342163086,
607         "z": "58bca720.478948",
608         "wires": [
609             []
610         ]
611     },
612     {
613         "id": "1956129b.dcb17d",
614         "type": "execute",
615         "name": "execute SliStringUtils - replace LandingNetworkRole untrust-sz",
616         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.untrust-sz`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.untrust-sz\"/>\n    <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$new-name`\"/>\n\n",
617         "comments": "",
618         "outputs": 1,
619         "x": 690.6665954589844,
620         "y": 1018.8092594146729,
621         "z": "58bca720.478948",
622         "wires": [
623             []
624         ]
625     },
626     {
627         "id": "67ad6570.58f12c",
628         "type": "execute",
629         "name": "execute SliStringUtils - replace TenantOAMNetworkRole - untrust-sz",
630         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.untrust-sz`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.untrust-sz\"/>\n    <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$new-name`\"/>\n\n",
631         "comments": "",
632         "outputs": 1,
633         "x": 711.6665954589844,
634         "y": 643.3332996368408,
635         "z": "58bca720.478948",
636         "wires": [
637             []
638         ]
639     },
640     {
641         "id": "e32a37ab.31d3f8",
642         "type": "outcome",
643         "name": "outcome 1",
644         "xml": "<outcome value='1'>\n",
645         "comments": "",
646         "outputs": 1,
647         "x": 814.9999084472656,
648         "y": 316.66665840148926,
649         "z": "58bca720.478948",
650         "wires": [
651             []
652         ]
653     }
654 ]