Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_generate-l3network-network-id.json
1 [
2     {
3         "id": "e7bd9a65.20fdd8",
4         "type": "execute",
5         "name": "execute: generateUUID",
6         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-l3network-network-id.uuid\" />",
7         "comments": "",
8         "outputs": 1,
9         "x": 545,
10         "y": 418.5,
11         "z": "86afe909.dcb228",
12         "wires": [
13             [
14                 "bebe20e6.50ef2"
15             ]
16         ]
17     },
18     {
19         "id": "bebe20e6.50ef2",
20         "type": "failure",
21         "name": "failure",
22         "xml": "<outcome value='failure'>\n",
23         "comments": "",
24         "outputs": 1,
25         "x": 744.7500076293945,
26         "y": 416.50000381469727,
27         "z": "86afe909.dcb228",
28         "wires": [
29             [
30                 "9eddb187.db4bb"
31             ]
32         ]
33     },
34     {
35         "id": "9eddb187.db4bb",
36         "type": "returnFailure",
37         "name": "return failure",
38         "xml": "<return status='failure'>\n\t<!-- Used to work around execute node bug -->\n\t<parameter name=\"execute_failure\" value=\"false\" />\n\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-l3network-network-id\" value=\"An error occured while generating a UUID for L3-NETWORK.\" />",
39         "comments": "",
40         "x": 909.7500076293945,
41         "y": 416.7500009536743,
42         "z": "86afe909.dcb228",
43         "wires": []
44     },
45     {
46         "id": "31a24297.e15d1e",
47         "type": "get-resource",
48         "name": "Query AnAI -  l3-network",
49         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n              resource=\"l3-network\"\n              key=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\"\n              local-only=\"false\"\n              pfx=\"tmp.local-variables.generate-l3network-network-id.L3NETWORK\" >",
50         "comments": "",
51         "outputs": 1,
52         "x": 674.2500076293945,
53         "y": 507.7500009536743,
54         "z": "86afe909.dcb228",
55         "wires": [
56             [
57                 "fbe58eaa.4092f",
58                 "bf4ce186.fe5b4",
59                 "45826101.ef494",
60                 "25b3888f.ec6cf8"
61             ]
62         ]
63     },
64     {
65         "id": "7ec5dc21.02fc54",
66         "type": "for",
67         "name": "for n: true",
68         "xml": "<for atomic=\"true\" index=\"n\" start=\"0\" end=\"1\" >",
69         "comments": "",
70         "outputs": 1,
71         "x": 498.25000762939453,
72         "y": 507.7500009536743,
73         "z": "86afe909.dcb228",
74         "wires": [
75             [
76                 "31a24297.e15d1e"
77             ]
78         ]
79     },
80     {
81         "id": "fbe58eaa.4092f",
82         "type": "success",
83         "name": "success",
84         "xml": "<outcome value='success'>\n",
85         "comments": "",
86         "outputs": 1,
87         "x": 878.7500076293945,
88         "y": 507.7500009536743,
89         "z": "86afe909.dcb228",
90         "wires": [
91             [
92                 "cf545076.3189e"
93             ]
94         ]
95     },
96     {
97         "id": "bf4ce186.fe5b4",
98         "type": "failure",
99         "name": "failure",
100         "xml": "<outcome value='failure'>\n",
101         "comments": "",
102         "outputs": 1,
103         "x": 874.7500076293945,
104         "y": 587.7500009536743,
105         "z": "86afe909.dcb228",
106         "wires": [
107             [
108                 "d07d9c69.54e1d"
109             ]
110         ]
111     },
112     {
113         "id": "45826101.ef494",
114         "type": "not-found",
115         "name": "not-found",
116         "xml": "<outcome value='not-found'>\n",
117         "comments": "",
118         "outputs": 1,
119         "x": 883.7500076293945,
120         "y": 547.7500009536743,
121         "z": "86afe909.dcb228",
122         "wires": [
123             [
124                 "f2604c68.2cc79"
125             ]
126         ]
127     },
128     {
129         "id": "d07d9c69.54e1d",
130         "type": "returnFailure",
131         "name": "return failure",
132         "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-l3network-network-id\" value=\"`'An error occured while checking if a generated l3network-network-id was unique. network-id = ' + $tmp.local-variables.generate-l3network-network-id.uuid`\" />",
133         "comments": "",
134         "x": 1041.250015258789,
135         "y": 612.7500066757202,
136         "z": "86afe909.dcb228",
137         "wires": []
138     },
139     {
140         "id": "cf545076.3189e",
141         "type": "block",
142         "name": "block : atomic",
143         "xml": "<block atomic='true'>",
144         "atomic": "true",
145         "comments": "",
146         "outputs": 1,
147         "x": 1036.7500076293945,
148         "y": 507.7500009536743,
149         "z": "86afe909.dcb228",
150         "wires": [
151             [
152                 "28421263.2994fe",
153                 "c44a7adf.25dce8"
154             ]
155         ]
156     },
157     {
158         "id": "28421263.2994fe",
159         "type": "set",
160         "name": "set: ...local...is-unique = 0",
161         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-l3network-network-id.is-unique\" value=\"0\" />",
162         "comments": "",
163         "x": 1254.2500610351562,
164         "y": 507.7500066757202,
165         "z": "86afe909.dcb228",
166         "wires": []
167     },
168     {
169         "id": "c44a7adf.25dce8",
170         "type": "execute",
171         "name": "execute: generateUUID",
172         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-l3network-network-id.uuid\" />",
173         "comments": "",
174         "outputs": 1,
175         "x": 1247.7500076293945,
176         "y": 547.7500009536743,
177         "z": "86afe909.dcb228",
178         "wires": [
179             [
180                 "9de63c0c.60c61"
181             ]
182         ]
183     },
184     {
185         "id": "9de63c0c.60c61",
186         "type": "failure",
187         "name": "failure",
188         "xml": "<outcome value='failure'>\n",
189         "comments": "",
190         "outputs": 1,
191         "x": 1434.7500076293945,
192         "y": 547.7500009536743,
193         "z": "86afe909.dcb228",
194         "wires": [
195             [
196                 "ee927e4f.a8611"
197             ]
198         ]
199     },
200     {
201         "id": "ee927e4f.a8611",
202         "type": "returnFailure",
203         "name": "return failure",
204         "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-l3network-network-id\" value=\"An error occured while generating a UUID for L3-NETWORK.\" />",
205         "comments": "",
206         "x": 1588.7500076293945,
207         "y": 547.7500009536743,
208         "z": "86afe909.dcb228",
209         "wires": []
210     },
211     {
212         "id": "f2604c68.2cc79",
213         "type": "block",
214         "name": "block",
215         "xml": "<block>",
216         "atomic": "false",
217         "comments": "",
218         "outputs": 1,
219         "x": 1014.7500076293945,
220         "y": 547.7500009536743,
221         "z": "86afe909.dcb228",
222         "wires": [
223             []
224         ]
225     },
226     {
227         "id": "d5946e5a.154dc",
228         "type": "dgstart",
229         "name": "DGSTART",
230         "outputs": 1,
231         "x": 255.25000381469727,
232         "y": 104,
233         "z": "86afe909.dcb228",
234         "wires": [
235             [
236                 "4ec5f49c.6b21fc"
237             ]
238         ]
239     },
240     {
241         "id": "4ec5f49c.6b21fc",
242         "type": "service-logic",
243         "name": "GENERIC-RESOURCE-API ${project.version}",
244         "module": "GENERIC-RESOURCE-API",
245         "version": "${project.version}",
246         "comments": "",
247         "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}'>",
248         "outputs": 1,
249         "x": 279.25,
250         "y": 150.25,
251         "z": "86afe909.dcb228",
252         "wires": [
253             [
254                 "f579c708.74a9d8"
255             ]
256         ]
257     },
258     {
259         "id": "f579c708.74a9d8",
260         "type": "method",
261         "name": "method generate-l3network-network-id",
262         "xml": "<method rpc=\"generate-l3network-network-id\" mode=\"sync\">",
263         "comments": "",
264         "outputs": 1,
265         "x": 365,
266         "y": 202.75,
267         "z": "86afe909.dcb228",
268         "wires": [
269             [
270                 "71096650.ece918"
271             ]
272         ]
273     },
274     {
275         "id": "3149511f.d3441e",
276         "type": "comment",
277         "name": "GENERIC-RESOURCE-API: GENERATE-L3NETWORK-NETWORK-ID",
278         "info": "",
279         "comments": "",
280         "x": 806.7500152587891,
281         "y": 110.24999809265137,
282         "z": "86afe909.dcb228",
283         "wires": []
284     },
285     {
286         "id": "71096650.ece918",
287         "type": "block",
288         "name": "block : atomic",
289         "xml": "<block atomic=\"true\">",
290         "atomic": "true",
291         "comments": "",
292         "outputs": 1,
293         "x": 316.75000762939453,
294         "y": 327.7500009536743,
295         "z": "86afe909.dcb228",
296         "wires": [
297             [
298                 "e7bd9a65.20fdd8",
299                 "7ec5dc21.02fc54",
300                 "29c55a03.c43e16",
301                 "d535cedb.29a8b"
302             ]
303         ]
304     },
305     {
306         "id": "3ab649c5.b819f6",
307         "type": "comment",
308         "name": "LOOP UNTIL GENERATED NETWORK-ID ISN'T FOUND IN A&AI",
309         "info": "",
310         "comments": "",
311         "x": 718,
312         "y": 464.0000047683716,
313         "z": "86afe909.dcb228",
314         "wires": []
315     },
316     {
317         "id": "59df6115.cb391",
318         "type": "comment",
319         "name": "GENERATE A NETWORK-ID",
320         "info": "",
321         "comments": "",
322         "x": 581.75,
323         "y": 374.00000286102295,
324         "z": "86afe909.dcb228",
325         "wires": []
326     },
327     {
328         "id": "29c55a03.c43e16",
329         "type": "set",
330         "name": "unset: local-variables & return",
331         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-l3network-network-id.\" value=\"\" />\n\t<parameter name=\"tmp.return.generate-l3network-network-id.\" value=\"\" />",
332         "comments": "",
333         "x": 567.7500076293945,
334         "y": 327.7500009536743,
335         "z": "86afe909.dcb228",
336         "wires": []
337     },
338     {
339         "id": "a5a22a52.0df378",
340         "type": "comment",
341         "name": "CLEANUP LOCAL VARIABLES TO BE USED",
342         "info": "",
343         "comments": "",
344         "x": 652,
345         "y": 284.00000190734863,
346         "z": "86afe909.dcb228",
347         "wires": []
348     },
349     {
350         "id": "9f21f02f.9e3ca",
351         "type": "comment",
352         "name": "GLOBAL VARIABLES USED",
353         "info": "// RETURN VALUES\nerror-message.generate-l3network-network-id\ntmp.return.generate-l3network-network-id.uuid\n\n// LOCAL VARIABLES (erased at beginning & end of DG)\ntmp.local-variables.generate-l3network-network-id.*\ntmp.return.generate-l3network-network-id.*\n",
354         "comments": "",
355         "x": 793.2500305175781,
356         "y": 150.24999809265137,
357         "z": "86afe909.dcb228",
358         "wires": []
359     },
360     {
361         "id": "d535cedb.29a8b",
362         "type": "set",
363         "name": "unset: local-variables & return",
364         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-l3network-network-id.\" value=\"\" />",
365         "comments": "",
366         "x": 567.7500076293945,
367         "y": 607.7500009536743,
368         "z": "86afe909.dcb228",
369         "wires": []
370     },
371     {
372         "id": "b578cb06.12eea8",
373         "type": "comment",
374         "name": "CLEANUP LOCAL VARIABLES",
375         "info": "",
376         "comments": "",
377         "x": 609.25,
378         "y": 565.2500057220459,
379         "z": "86afe909.dcb228",
380         "wires": []
381     },
382     {
383         "id": "25b3888f.ec6cf8",
384         "type": "other",
385         "name": "Other",
386         "xml": "<outcome value=\"Other\">",
387         "comments": "",
388         "outputs": 1,
389         "x": 874.7500076293945,
390         "y": 627.7500009536743,
391         "z": "86afe909.dcb228",
392         "wires": [
393             [
394                 "d07d9c69.54e1d"
395             ]
396         ]
397     }
398 ]