Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vf-module-forking-logic.json
1 [
2     {
3         "id": "8aa8ea11.740be",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 100,
8         "y": 50,
9         "z": "8316db2b.abe9a",
10         "wires": [
11             [
12                 "69365dae.668034"
13             ]
14         ]
15     },
16     {
17         "id": "69365dae.668034",
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": 214.28570556640625,
26         "y": 90.23811149597168,
27         "z": "8316db2b.abe9a",
28         "wires": [
29             [
30                 "f7dcbe91.e46188"
31             ]
32         ]
33     },
34     {
35         "id": "f7dcbe91.e46188",
36         "type": "method",
37         "name": "method self-serve-vf-module-forking-logic",
38         "xml": "<method rpc='self-serve-vf-module-forking-logic' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 237.85719299316406,
42         "y": 138.57143211364746,
43         "z": "8316db2b.abe9a",
44         "wires": [
45             [
46                 "8ac3a01b.fa2a38"
47             ]
48         ]
49     },
50     {
51         "id": "66ba1bad.63f02c",
52         "type": "switchNode",
53         "name": "switch: param[].name",
54         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$p].name`\">\n",
55         "comments": "",
56         "outputs": 1,
57         "x": 757.5833282470703,
58         "y": 395.1428565979004,
59         "z": "8316db2b.abe9a",
60         "wires": [
61             [
62                 "f1b12470.776ec8",
63                 "540a60cc.25f5f8"
64             ]
65         ]
66     },
67     {
68         "id": "e59ddfff.f29228",
69         "type": "for",
70         "name": "for p in vf-module-input-parameters.param[]",
71         "xml": "<for silentFailure='true' index='p' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
72         "comments": "",
73         "outputs": 1,
74         "x": 463.6904754638672,
75         "y": 395.64288902282715,
76         "z": "8316db2b.abe9a",
77         "wires": [
78             [
79                 "66ba1bad.63f02c"
80             ]
81         ]
82     },
83     {
84         "id": "736b235f.f41374",
85         "type": "set",
86         "name": "set tmp.exist.vf_module_label = true",
87         "xml": "<set>\n<parameter name='tmp.exist.vf_module_label' value='true' />",
88         "comments": "",
89         "x": 1299.4762573242188,
90         "y": 444.00002670288086,
91         "z": "8316db2b.abe9a",
92         "wires": []
93     },
94     {
95         "id": "8f743c14.96209",
96         "type": "set",
97         "name": "set tmp.exist.sdnc-model-name = true",
98         "xml": "<set>\n<parameter name='tmp.exist.sdnc-model-name' value='true' />\n",
99         "comments": "",
100         "x": 1302.1903648376465,
101         "y": 395.0000419616699,
102         "z": "8316db2b.abe9a",
103         "wires": []
104     },
105     {
106         "id": "8ac3a01b.fa2a38",
107         "type": "block",
108         "name": "block : atomic",
109         "xml": "<block atomic=\"true\">",
110         "atomic": "true",
111         "outputs": 1,
112         "x": 143,
113         "y": 289.9523696899414,
114         "z": "8316db2b.abe9a",
115         "wires": [
116             [
117                 "e59ddfff.f29228",
118                 "968d6f83.1e8cb8",
119                 "87abb41.4b21fc8",
120                 "71f24135.a396b8"
121             ]
122         ]
123     },
124     {
125         "id": "f1b12470.776ec8",
126         "type": "outcome",
127         "name": "sdnc_model_name",
128         "xml": "<outcome value='sdnc_model_name'>\n",
129         "comments": "",
130         "outputs": 1,
131         "x": 1013.7619040352956,
132         "y": 395.0476510184151,
133         "z": "8316db2b.abe9a",
134         "wires": [
135             [
136                 "8f743c14.96209"
137             ]
138         ]
139     },
140     {
141         "id": "540a60cc.25f5f8",
142         "type": "outcome",
143         "name": "vf_module_label",
144         "xml": "<outcome value='vf_module_label'>\n",
145         "comments": "",
146         "outputs": 1,
147         "x": 1016.619026184082,
148         "y": 444.47622299194336,
149         "z": "8316db2b.abe9a",
150         "wires": [
151             [
152                 "736b235f.f41374"
153             ]
154         ]
155     },
156     {
157         "id": "18b84933.21068f",
158         "type": "get-resource",
159         "name": "get VF_MODEL.sdnc_model_name",
160         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT sdnc_model_name from VF_MODEL \n  \tWHERE customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid \n  \tAND sdnc_model_name is not null'\n  pfx='db.vf-model-name'>\n\n",
161         "comments": "",
162         "outputs": 1,
163         "x": 1169.8572235107422,
164         "y": 676.2616033554077,
165         "z": "8316db2b.abe9a",
166         "wires": [
167             [
168                 "d95cfab.cfa8f08",
169                 "91b70953.025358",
170                 "e5e4f7b1.a891f"
171             ]
172         ]
173     },
174     {
175         "id": "d95cfab.cfa8f08",
176         "type": "failure",
177         "name": "failure",
178         "xml": "<outcome value='failure'>\n",
179         "comments": "",
180         "outputs": 1,
181         "x": 1420.2143478393555,
182         "y": 586.6425437927246,
183         "z": "8316db2b.abe9a",
184         "wires": [
185             [
186                 "4d1797d1.55ba98"
187             ]
188         ]
189     },
190     {
191         "id": "91b70953.025358",
192         "type": "not-found",
193         "name": "not-found",
194         "xml": "<outcome value='not-found'>\n",
195         "comments": "",
196         "outputs": 1,
197         "x": 1425.928596496582,
198         "y": 773.7854557037354,
199         "z": "8316db2b.abe9a",
200         "wires": [
201             [
202                 "cdc75221.415348"
203             ]
204         ]
205     },
206     {
207         "id": "4d1797d1.55ba98",
208         "type": "returnFailure",
209         "name": "return failure",
210         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error reading VF_MODEL table to determine self-serve forking criteria\" />\n",
211         "comments": "",
212         "x": 1601.2143287658691,
213         "y": 586.7854509353638,
214         "z": "8316db2b.abe9a",
215         "wires": []
216     },
217     {
218         "id": "da046f4e.feca88",
219         "type": "outcomeFalse",
220         "name": "false",
221         "xml": "<outcome value='false'>\n",
222         "comments": "",
223         "outputs": 1,
224         "x": 921.7026138305664,
225         "y": 676.4518804550171,
226         "z": "8316db2b.abe9a",
227         "wires": [
228             [
229                 "18b84933.21068f"
230             ]
231         ]
232     },
233     {
234         "id": "71f24135.a396b8",
235         "type": "switchNode",
236         "name": "switch: tmp.exist.sdnc-model-name && tmp.exist.vf_module_label == true",
237         "xml": "<switch test=\"`$tmp.exist.sdnc-model-name == 'true' and $tmp.exist.vf_module_label == 'true'`\">\n",
238         "comments": "",
239         "outputs": 1,
240         "x": 552.0594329833984,
241         "y": 589.7141094207764,
242         "z": "8316db2b.abe9a",
243         "wires": [
244             [
245                 "da046f4e.feca88",
246                 "af375362.061b2"
247             ]
248         ]
249     },
250     {
251         "id": "af375362.061b2",
252         "type": "outcomeTrue",
253         "name": "true",
254         "xml": "<outcome value='true'>\n",
255         "comments": "",
256         "outputs": 1,
257         "x": 924.6668395996094,
258         "y": 510.0712013244629,
259         "z": "8316db2b.abe9a",
260         "wires": [
261             [
262                 "b5bbd060.67f058"
263             ]
264         ]
265     },
266     {
267         "id": "c6dbcf48.080eb8",
268         "type": "get-resource",
269         "name": "get VF_MODULE_MODEL.vf-module-label",
270         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT vf_module_label from VF_MODULE_MODEL \n  \tWHERE vf_customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid\n  \tAND vf_module_label is not null '\n  pfx='db.vf-module-label'>\n\n",
271         "comments": "",
272         "outputs": 1,
273         "x": 1698.0953903198242,
274         "y": 676.4998636245728,
275         "z": "8316db2b.abe9a",
276         "wires": [
277             [
278                 "89568209.e5f728",
279                 "2dda5e9d.c9b972",
280                 "cbe36505.a168d8"
281             ]
282         ]
283     },
284     {
285         "id": "89568209.e5f728",
286         "type": "failure",
287         "name": "failure",
288         "xml": "<outcome value='failure'>\n",
289         "comments": "",
290         "outputs": 1,
291         "x": 1973.4526138305664,
292         "y": 676.5949945449829,
293         "z": "8316db2b.abe9a",
294         "wires": [
295             [
296                 "aa612980.7b237"
297             ]
298         ]
299     },
300     {
301         "id": "2dda5e9d.c9b972",
302         "type": "not-found",
303         "name": "not-found",
304         "xml": "<outcome value='not-found'>\n",
305         "comments": "",
306         "outputs": 1,
307         "x": 1984.0239715576172,
308         "y": 724.3092603683472,
309         "z": "8316db2b.abe9a",
310         "wires": [
311             [
312                 "2bea618b.553156"
313             ]
314         ]
315     },
316     {
317         "id": "aa612980.7b237",
318         "type": "returnFailure",
319         "name": "return failure",
320         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error reading VF_MODULE_MODEL table to determine self-serve forking criteria\" />\n",
321         "comments": "",
322         "x": 2147.5951232910156,
323         "y": 677.1664400100708,
324         "z": "8316db2b.abe9a",
325         "wires": []
326     },
327     {
328         "id": "cbe36505.a168d8",
329         "type": "success",
330         "name": "success",
331         "xml": "<outcome value='success'>\n",
332         "comments": "",
333         "outputs": 1,
334         "x": 1977.809684753418,
335         "y": 627.4999189376831,
336         "z": "8316db2b.abe9a",
337         "wires": [
338             [
339                 "69e505b7.70a894"
340             ]
341         ]
342     },
343     {
344         "id": "e5e4f7b1.a891f",
345         "type": "success",
346         "name": "success",
347         "xml": "<outcome value='success'>\n",
348         "comments": "",
349         "outputs": 1,
350         "x": 1423.8691101074219,
351         "y": 676.2616682052612,
352         "z": "8316db2b.abe9a",
353         "wires": [
354             [
355                 "c6dbcf48.080eb8"
356             ]
357         ]
358     },
359     {
360         "id": "968d6f83.1e8cb8",
361         "type": "set",
362         "name": "initialize tmp.exist.sdnc-model-name && tmp.exist.vf_module_label = false",
363         "xml": "<set>\n<parameter name='tmp.exist.sdnc-model-name' value='false' />\n<parameter name='tmp.exist.vf_module_label' value='false' />\n",
364         "comments": "",
365         "x": 555.5833053588867,
366         "y": 290.22603130340576,
367         "z": "8316db2b.abe9a",
368         "wires": []
369     },
370     {
371         "id": "87abb41.4b21fc8",
372         "type": "switchNode",
373         "name": "switch: vf-module-input-parameters.param_length",
374         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n",
375         "comments": "",
376         "outputs": 1,
377         "x": 483.4404830932617,
378         "y": 338.70231533050537,
379         "z": "8316db2b.abe9a",
380         "wires": [
381             [
382                 "afd3db14.e78eb"
383             ]
384         ]
385     },
386     {
387         "id": "afd3db14.e78eb",
388         "type": "other",
389         "name": "NULL",
390         "xml": "<outcome value=''>\n",
391         "comments": "",
392         "outputs": 1,
393         "x": 747.0119018554688,
394         "y": 338.988055229187,
395         "z": "8316db2b.abe9a",
396         "wires": [
397             [
398                 "460cb6a0.e01ee8"
399             ]
400         ]
401     },
402     {
403         "id": "460cb6a0.e01ee8",
404         "type": "set",
405         "name": "set vf-module-input-parameters.param_length = 0",
406         "xml": "<set>\n<parameter name='vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length' value='0' />\n",
407         "comments": "",
408         "x": 1020.7261428833008,
409         "y": 338.84521675109863,
410         "z": "8316db2b.abe9a",
411         "wires": []
412     },
413     {
414         "id": "2bea618b.553156",
415         "type": "set",
416         "name": "set ss.self-serve-flag = false",
417         "xml": "<set>\n<parameter name='ss.self-serve-flag' value='false' />\n",
418         "comments": "",
419         "x": 2199.999801635742,
420         "y": 724.2857275009155,
421         "z": "8316db2b.abe9a",
422         "wires": []
423     },
424     {
425         "id": "b5bbd060.67f058",
426         "type": "set",
427         "name": "set ss.self-serve-flag = true",
428         "xml": "<set>\n<parameter name='ss.self-serve-flag' value='true' />\n",
429         "comments": "",
430         "x": 1143.5,
431         "y": 508.32147216796875,
432         "z": "8316db2b.abe9a",
433         "wires": []
434     },
435     {
436         "id": "cdc75221.415348",
437         "type": "set",
438         "name": "set ss.self-serve-flag = false",
439         "xml": "<set>\n<parameter name='ss.self-serve-flag' value='false' />\n",
440         "comments": "",
441         "x": 1652.857192993164,
442         "y": 773.2857007980347,
443         "z": "8316db2b.abe9a",
444         "wires": []
445     },
446     {
447         "id": "69e505b7.70a894",
448         "type": "set",
449         "name": "set ss.self-serve-flag = true",
450         "xml": "<set>\n<parameter name='ss.self-serve-flag' value='true' />\n",
451         "comments": "",
452         "x": 2196.07177734375,
453         "y": 624.7857666015625,
454         "z": "8316db2b.abe9a",
455         "wires": []
456     }
457 ]