Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_generate-allottedresource-id.json
1 [
2     {
3         "id": "4eb410ec.15c8",
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-allottedresource-id.id\" />",
7         "comments": "",
8         "outputs": 1,
9         "x": 538.3333129882812,
10         "y": 515.8333282470703,
11         "z": "4903bad.edade44",
12         "wires": [
13             [
14                 "a4997c46.9d57f"
15             ]
16         ]
17     },
18     {
19         "id": "a4997c46.9d57f",
20         "type": "failure",
21         "name": "failure",
22         "xml": "<outcome value='failure'>\n",
23         "comments": "",
24         "outputs": 1,
25         "x": 734.0833206176758,
26         "y": 515.8333282470703,
27         "z": "4903bad.edade44",
28         "wires": [
29             [
30                 "5525e405.5a720c"
31             ]
32         ]
33     },
34     {
35         "id": "5525e405.5a720c",
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": 899.0833206176758,
41         "y": 516.0833253860474,
42         "z": "4903bad.edade44",
43         "wires": []
44     },
45     {
46         "id": "66d02173.cfc28",
47         "type": "get-resource",
48         "name": "Query AnAI -  allotted-resource",
49         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n              resource=\"allotted-resource\"\n              key=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\t\t\tservice-subscription.service-type = $cto-api.service-type AND\n\t\t\t\t\tservice-instance.service-instance-id = $cto-api.port-mirror-configuration-instance-id AND\n\t\t\t\t\tallotted-resource.id = $tmp.return.generate-allottedresource-id.id\"\n              local-only=\"false\"\n              pfx=\"tmp.local-variables.generate-allottedresource-id.ALLOTTEDRESOURCE\" >",
50         "comments": "",
51         "outputs": 1,
52         "x": 750.2500305175781,
53         "y": 605.4166297912598,
54         "z": "4903bad.edade44",
55         "wires": [
56             [
57                 "954e6938.90cb08",
58                 "c3f9027.48ad5",
59                 "88fbf3ed.1e4ec",
60                 "167962db.dfa98d"
61             ]
62         ]
63     },
64     {
65         "id": "5835198f.dc0b38",
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": 487.5833206176758,
72         "y": 607.0833253860474,
73         "z": "4903bad.edade44",
74         "wires": [
75             [
76                 "66d02173.cfc28"
77             ]
78         ]
79     },
80     {
81         "id": "954e6938.90cb08",
82         "type": "success",
83         "name": "success",
84         "xml": "<outcome value='success'>\n",
85         "comments": "",
86         "outputs": 1,
87         "x": 1071.416603088379,
88         "y": 603.7499647140503,
89         "z": "4903bad.edade44",
90         "wires": [
91             [
92                 "5a93b788.462aa8"
93             ]
94         ]
95     },
96     {
97         "id": "c3f9027.48ad5",
98         "type": "failure",
99         "name": "failure",
100         "xml": "<outcome value='failure'>\n",
101         "comments": "",
102         "outputs": 1,
103         "x": 1067.416603088379,
104         "y": 683.7499647140503,
105         "z": "4903bad.edade44",
106         "wires": [
107             [
108                 "9a1a9def.d6a4"
109             ]
110         ]
111     },
112     {
113         "id": "88fbf3ed.1e4ec",
114         "type": "not-found",
115         "name": "not-found",
116         "xml": "<outcome value='not-found'>\n",
117         "comments": "",
118         "outputs": 1,
119         "x": 1076.416603088379,
120         "y": 643.7499647140503,
121         "z": "4903bad.edade44",
122         "wires": [
123             [
124                 "3401c5c.83c4e3a"
125             ]
126         ]
127     },
128     {
129         "id": "9a1a9def.d6a4",
130         "type": "returnFailure",
131         "name": "return failure",
132         "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-allottedresource-id\" value=\"`'An error occured while checking if a generated allotted-resource-id was unique. allotted-resource-id = ' + $tmp.local-variables.generate-allottedresource-id.id`\" />",
133         "comments": "",
134         "x": 1233.9166107177734,
135         "y": 708.7499704360962,
136         "z": "4903bad.edade44",
137         "wires": []
138     },
139     {
140         "id": "5a93b788.462aa8",
141         "type": "block",
142         "name": "block : atomic",
143         "xml": "<block atomic='true'>",
144         "atomic": "true",
145         "comments": "",
146         "outputs": 1,
147         "x": 1229.416603088379,
148         "y": 603.7499647140503,
149         "z": "4903bad.edade44",
150         "wires": [
151             [
152                 "42f40b02.0f1b64",
153                 "a99c317d.5b194"
154             ]
155         ]
156     },
157     {
158         "id": "42f40b02.0f1b64",
159         "type": "set",
160         "name": "set: ...local...is-unique = 0",
161         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-allottedresource-id.is-unique\" value=\"0\" />",
162         "comments": "",
163         "x": 1446.9167022705078,
164         "y": 603.7499361038208,
165         "z": "4903bad.edade44",
166         "wires": []
167     },
168     {
169         "id": "a99c317d.5b194",
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-allottedresource-id.id\" />",
173         "comments": "",
174         "outputs": 1,
175         "x": 1440.416603088379,
176         "y": 643.7499647140503,
177         "z": "4903bad.edade44",
178         "wires": [
179             [
180                 "e5672b.69ed28d8"
181             ]
182         ]
183     },
184     {
185         "id": "e5672b.69ed28d8",
186         "type": "failure",
187         "name": "failure",
188         "xml": "<outcome value='failure'>\n",
189         "comments": "",
190         "outputs": 1,
191         "x": 1627.416603088379,
192         "y": 643.7499647140503,
193         "z": "4903bad.edade44",
194         "wires": [
195             [
196                 "d2e9bf0a.cb123"
197             ]
198         ]
199     },
200     {
201         "id": "d2e9bf0a.cb123",
202         "type": "returnFailure",
203         "name": "return failure",
204         "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-allottedresource-id\" value=\"An error occured while generating a UUID for ALLOTTED-RESOURCE.\" />",
205         "comments": "",
206         "x": 1779.7499923706055,
207         "y": 643.7499656677246,
208         "z": "4903bad.edade44",
209         "wires": []
210     },
211     {
212         "id": "3401c5c.83c4e3a",
213         "type": "block",
214         "name": "block",
215         "xml": "<block>",
216         "atomic": "false",
217         "comments": "",
218         "outputs": 1,
219         "x": 1207.416603088379,
220         "y": 643.7499647140503,
221         "z": "4903bad.edade44",
222         "wires": [
223             []
224         ]
225     },
226     {
227         "id": "6a875f8d.73cc2",
228         "type": "dgstart",
229         "name": "DGSTART",
230         "outputs": 1,
231         "x": 244.58331680297852,
232         "y": 203.33332443237305,
233         "z": "4903bad.edade44",
234         "wires": [
235             [
236                 "20c9128.11698ee"
237             ]
238         ]
239     },
240     {
241         "id": "20c9128.11698ee",
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": 268.58331298828125,
250         "y": 249.58332443237305,
251         "z": "4903bad.edade44",
252         "wires": [
253             [
254                 "c9e0323.6c392d"
255             ]
256         ]
257     },
258     {
259         "id": "c9e0323.6c392d",
260         "type": "method",
261         "name": "method generate-allottedresource-id",
262         "xml": "<method rpc=\"generate-allottedresource-id\" mode=\"sync\">",
263         "comments": "",
264         "outputs": 1,
265         "x": 354.33331298828125,
266         "y": 302.08332443237305,
267         "z": "4903bad.edade44",
268         "wires": [
269             [
270                 "11f29edc.8e12b1"
271             ]
272         ]
273     },
274     {
275         "id": "aa4e1446.234628",
276         "type": "comment",
277         "name": "GENERIC-RESOURCE-API: GENERATE-L3NETWORK-NETWORK-ID",
278         "info": "",
279         "comments": "",
280         "x": 796.0833282470703,
281         "y": 209.5833225250244,
282         "z": "4903bad.edade44",
283         "wires": []
284     },
285     {
286         "id": "11f29edc.8e12b1",
287         "type": "block",
288         "name": "block : atomic",
289         "xml": "<block atomic=\"true\">",
290         "atomic": "true",
291         "comments": "",
292         "outputs": 1,
293         "x": 306.0833206176758,
294         "y": 427.08332538604736,
295         "z": "4903bad.edade44",
296         "wires": [
297             [
298                 "4eb410ec.15c8",
299                 "5835198f.dc0b38",
300                 "96991ff7.0c0e5",
301                 "8eb23908.bf31d8"
302             ]
303         ]
304     },
305     {
306         "id": "5be115d7.3547fc",
307         "type": "comment",
308         "name": "LOOP UNTIL GENERATED ALLOTTED-RESOURCE ISN'T FOUND IN A&AI",
309         "info": "",
310         "comments": "",
311         "x": 707.3333129882812,
312         "y": 563.3333292007446,
313         "z": "4903bad.edade44",
314         "wires": []
315     },
316     {
317         "id": "f6ac6a5d.3c4308",
318         "type": "comment",
319         "name": "GENERATE A NETWORK-ID",
320         "info": "",
321         "comments": "",
322         "x": 571.0833129882812,
323         "y": 473.333327293396,
324         "z": "4903bad.edade44",
325         "wires": []
326     },
327     {
328         "id": "96991ff7.0c0e5",
329         "type": "set",
330         "name": "unset: local-variables & return",
331         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-allottedresource-id.\" value=\"\" />\n\t<parameter name=\"tmp.return.generate-allottedresource-id.\" value=\"\" />",
332         "comments": "",
333         "x": 558.7499885559082,
334         "y": 427.083309173584,
335         "z": "4903bad.edade44",
336         "wires": []
337     },
338     {
339         "id": "b4d56db.b9ad09",
340         "type": "comment",
341         "name": "CLEANUP LOCAL VARIABLES TO BE USED",
342         "info": "",
343         "comments": "",
344         "x": 641.3333129882812,
345         "y": 383.3333263397217,
346         "z": "4903bad.edade44",
347         "wires": []
348     },
349     {
350         "id": "1c2f28d9.80ec27",
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": 782.5833435058594,
356         "y": 249.5833225250244,
357         "z": "4903bad.edade44",
358         "wires": []
359     },
360     {
361         "id": "8eb23908.bf31d8",
362         "type": "set",
363         "name": "unset: local-variables & return",
364         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-allottedresource-id.\" value=\"\" />",
365         "comments": "",
366         "x": 557.0833206176758,
367         "y": 707.0833253860474,
368         "z": "4903bad.edade44",
369         "wires": []
370     },
371     {
372         "id": "13e6bec1.8c1fd1",
373         "type": "comment",
374         "name": "CLEANUP LOCAL VARIABLES",
375         "info": "",
376         "comments": "",
377         "x": 598.5833129882812,
378         "y": 664.583330154419,
379         "z": "4903bad.edade44",
380         "wires": []
381     },
382     {
383         "id": "167962db.dfa98d",
384         "type": "other",
385         "name": "Other",
386         "xml": "<outcome value=\"Other\">",
387         "comments": "",
388         "outputs": 1,
389         "x": 1067.416603088379,
390         "y": 723.7499647140503,
391         "z": "4903bad.edade44",
392         "wires": [
393             [
394                 "9a1a9def.d6a4"
395             ]
396         ]
397     }
398 ]