Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_pnf-topology-operation-assign.json
1 [\r
2     {\r
3         "id": "ee243452.aa33a8",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 134,\r
8         "y": 98,\r
9         "z": "19228309.79f23d",\r
10         "wires": [\r
11             [\r
12                 "5810e1f9.1768b"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "5810e1f9.1768b",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
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}'>",\r
24         "outputs": 1,\r
25         "x": 249.28570556640625,\r
26         "y": 139.9047794342041,\r
27         "z": "19228309.79f23d",\r
28         "wires": [\r
29             [\r
30                 "70e23e6c.961c38"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "70e23e6c.961c38",\r
36         "type": "method",\r
37         "name": "method pnf-topology-operation-assign",\r
38         "xml": "<method rpc='pnf-topology-operation-assign' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 244.59532165527344,\r
42         "y": 183.91666793823242,\r
43         "z": "19228309.79f23d",\r
44         "wires": [\r
45             [\r
46                 "c77449b3.048b78"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "14cec61f.9eab5a",\r
52         "type": "comment",\r
53         "name": "pnf-topology-operation-assign",\r
54         "info": "",\r
55         "comments": "",\r
56         "x": 536.2615356445312,\r
57         "y": 59.75300407409668,\r
58         "z": "19228309.79f23d",\r
59         "wires": []\r
60     },\r
61     {\r
62         "id": "da472ec3.e5ccd8",\r
63         "type": "switchNode",\r
64         "name": "switch request-action",\r
65         "xml": "<switch test='`$pnf-topology-operation-input.request-information.request-action`'>\n",\r
66         "comments": "",\r
67         "outputs": 1,\r
68         "x": 627.8809814453125,\r
69         "y": 327.39283084869385,\r
70         "z": "19228309.79f23d",\r
71         "wires": [\r
72             [\r
73                 "b27a37af.b36718",\r
74                 "f6fae337.330588"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "b27a37af.b36718",\r
80         "type": "outcome",\r
81         "name": "CreatePnfInstance",\r
82         "xml": "<outcome value='CreatePnfInstance'>\n",\r
83         "comments": "",\r
84         "outputs": 1,\r
85         "x": 881.5952758789062,\r
86         "y": 304.53571224212646,\r
87         "z": "19228309.79f23d",\r
88         "wires": [\r
89             [\r
90                 "5bfce726.0e0808"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "f6fae337.330588",\r
96         "type": "other",\r
97         "name": "other",\r
98         "xml": "<outcome value='Other'>\n",\r
99         "comments": "",\r
100         "outputs": 1,\r
101         "x": 843.5952415466309,\r
102         "y": 350.2500400543213,\r
103         "z": "19228309.79f23d",\r
104         "wires": [\r
105             [\r
106                 "e0cd414.414b64"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "5bfce726.0e0808",\r
112         "type": "block",\r
113         "name": "block",\r
114         "xml": "<block>\n",\r
115         "atomic": "false",\r
116         "comments": "",\r
117         "outputs": 1,\r
118         "x": 1066.4524040222168,\r
119         "y": 304.5357418060303,\r
120         "z": "19228309.79f23d",\r
121         "wires": [\r
122             []\r
123         ]\r
124     },\r
125     {\r
126         "id": "e0cd414.414b64",\r
127         "type": "returnFailure",\r
128         "name": "return failure",\r
129         "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=\"If svc-action is 'assign' then request-action must be 'CreatePnfInstance'\" />\n",\r
130         "comments": "",\r
131         "x": 1083.5952491760254,\r
132         "y": 350.24999809265137,\r
133         "z": "19228309.79f23d",\r
134         "wires": []\r
135     },\r
136     {\r
137         "id": "19b08e1.3415872",\r
138         "type": "get-resource",\r
139         "name": "get-resource VF_MODEL",\r
140         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODEL WHERE customization_uuid = $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid'\n  pfx='db.vf-model'>\n\n",\r
141         "comments": "",\r
142         "outputs": 1,\r
143         "x": 640.2142868041992,\r
144         "y": 418.53570079803467,\r
145         "z": "19228309.79f23d",\r
146         "wires": [\r
147             [\r
148                 "982998d2.b1104",\r
149                 "55fc7df0.63822c"\r
150             ]\r
151         ]\r
152     },\r
153     {\r
154         "id": "ec81ba8b.5b2c9",\r
155         "type": "returnFailure",\r
156         "name": "return failure",\r
157         "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=\"`'No model found for VF customization UUID ' + $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid`\" />\n",\r
158         "comments": "",\r
159         "x": 1081.642765045166,\r
160         "y": 441.964186668396,\r
161         "z": "19228309.79f23d",\r
162         "wires": []\r
163     },\r
164     {\r
165         "id": "982998d2.b1104",\r
166         "type": "failure",\r
167         "name": "failure",\r
168         "xml": "<outcome value='failure'>\n",\r
169         "comments": "",\r
170         "outputs": 1,\r
171         "x": 840.9999847412109,\r
172         "y": 398.9165382385254,\r
173         "z": "19228309.79f23d",\r
174         "wires": [\r
175             [\r
176                 "6a64650.0d6f39c"\r
177             ]\r
178         ]\r
179     },\r
180     {\r
181         "id": "55fc7df0.63822c",\r
182         "type": "not-found",\r
183         "name": "not-found",\r
184         "xml": "<outcome value='not-found'>\n",\r
185         "comments": "",\r
186         "outputs": 1,\r
187         "x": 849.5714149475098,\r
188         "y": 443.2022514343262,\r
189         "z": "19228309.79f23d",\r
190         "wires": [\r
191             [\r
192                 "ec81ba8b.5b2c9"\r
193             ]\r
194         ]\r
195     },\r
196     {\r
197         "id": "6a64650.0d6f39c",\r
198         "type": "returnFailure",\r
199         "name": "return failure",\r
200         "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\" />\n",\r
201         "comments": "",\r
202         "x": 1080.9999656677246,\r
203         "y": 397.05944538116455,\r
204         "z": "19228309.79f23d",\r
205         "wires": []\r
206     },\r
207     {\r
208         "id": "a75821b1.edfb58",\r
209         "type": "execute",\r
210         "name": "execute PropertiesNode",\r
211         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",\r
212         "comments": "",\r
213         "outputs": 1,\r
214         "x": 637.7857666015625,\r
215         "y": 117.6785888671875,\r
216         "z": "19228309.79f23d",\r
217         "wires": [\r
218             []\r
219         ]\r
220     },\r
221     {\r
222         "id": "c77449b3.048b78",\r
223         "type": "block",\r
224         "name": "block : atomic",\r
225         "xml": "<block atomic=\"true\">",\r
226         "atomic": "true",\r
227         "outputs": 1,\r
228         "x": 354.0793991088867,\r
229         "y": 327.87208557128906,\r
230         "z": "19228309.79f23d",\r
231         "wires": [\r
232             [\r
233                 "da472ec3.e5ccd8",\r
234                 "19b08e1.3415872",\r
235                 "a75821b1.edfb58",\r
236                 "780d7aca.b60934",\r
237                 "71d0891.189e778",\r
238                 "f6ad14ca.084b8"\r
239             ]\r
240         ]\r
241     },\r
242     {\r
243         "id": "780d7aca.b60934",\r
244         "type": "switchNode",\r
245         "name": "switch input cloud-owner",\r
246         "xml": "<switch test='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`'>\n",\r
247         "comments": "",\r
248         "outputs": 1,\r
249         "x": 636.5000228881836,\r
250         "y": 255.9166555404663,\r
251         "z": "19228309.79f23d",\r
252         "wires": [\r
253             [\r
254                 "c9bdd3dc.faf7b",\r
255                 "6e4e01ec.cdd3b8"\r
256             ]\r
257         ]\r
258     },\r
259     {\r
260         "id": "c9bdd3dc.faf7b",\r
261         "type": "other",\r
262         "name": "NULL",\r
263         "xml": "<outcome value=''>\n",\r
264         "comments": "",\r
265         "outputs": 1,\r
266         "x": 819.8333969116211,\r
267         "y": 225.9166440963745,\r
268         "z": "19228309.79f23d",\r
269         "wires": [\r
270             [\r
271                 "f08a07.1ccc0df8"\r
272             ]\r
273         ]\r
274     },\r
275     {\r
276         "id": "6e4e01ec.cdd3b8",\r
277         "type": "other",\r
278         "name": "other",\r
279         "xml": "<outcome value='Other'>\n",\r
280         "comments": "",\r
281         "outputs": 1,\r
282         "x": 819.5953025817871,\r
283         "y": 266.86913776397705,\r
284         "z": "19228309.79f23d",\r
285         "wires": [\r
286             [\r
287                 "9f00eed0.781e1"\r
288             ]\r
289         ]\r
290     },\r
291     {\r
292         "id": "f08a07.1ccc0df8",\r
293         "type": "block",\r
294         "name": "block",\r
295         "xml": "<block>\n",\r
296         "atomic": "false",\r
297         "comments": "",\r
298         "outputs": 1,\r
299         "x": 954.8333511352539,\r
300         "y": 224.24998378753662,\r
301         "z": "19228309.79f23d",\r
302         "wires": [\r
303             []\r
304         ]\r
305     },\r
306     {\r
307         "id": "9f00eed0.781e1",\r
308         "type": "set",\r
309         "name": "set prop.cloud-region.cloud-owner",\r
310         "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`' />\n",\r
311         "comments": "",\r
312         "x": 1036.5000076293945,\r
313         "y": 265.9166650772095,\r
314         "z": "19228309.79f23d",\r
315         "wires": []\r
316     },\r
317     {\r
318         "id": "9a07bcfe.297ad8",\r
319         "type": "call",\r
320         "name": "call self-serve-pnf-assign",\r
321         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-assign' mode='sync' >\n",\r
322         "comments": "",\r
323         "outputs": 1,\r
324         "x": 849.2220077514648,\r
325         "y": 614.7769980430603,\r
326         "z": "19228309.79f23d",\r
327         "wires": [\r
328             [\r
329                 "1b53503a.a14958"\r
330             ]\r
331         ]\r
332     },\r
333     {\r
334         "id": "d15a667b.1812a",\r
335         "type": "returnFailure",\r
336         "name": "return failure",\r
337         "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=\"`'Failed to create self-serve assignment for pnf with pnf-id=' + $pnf-topology-operation-input.pnf-details.pnf-id + ' with error: ' + $error-message`\" />\n",\r
338         "comments": "",\r
339         "x": 1233.293384552002,\r
340         "y": 614.7769484519958,\r
341         "z": "19228309.79f23d",\r
342         "wires": []\r
343     },\r
344     {\r
345         "id": "b09b2b8a.09a48",\r
346         "type": "comment",\r
347         "name": "SELF-SERVE FORK",\r
348         "info": "",\r
349         "comments": "",\r
350         "x": 758.8413619995117,\r
351         "y": 565.9792368412018,\r
352         "z": "19228309.79f23d",\r
353         "wires": []\r
354     },\r
355     {\r
356         "id": "1b53503a.a14958",\r
357         "type": "failure",\r
358         "name": "failure",\r
359         "xml": "<outcome value='failure'>\n",\r
360         "comments": "",\r
361         "outputs": 1,\r
362         "x": 1054.519588470459,\r
363         "y": 614.2650294303894,\r
364         "z": "19228309.79f23d",\r
365         "wires": [\r
366             [\r
367                 "d15a667b.1812a"\r
368             ]\r
369         ]\r
370     },\r
371     {\r
372         "id": "1f34dbbd.dc61f4",\r
373         "type": "returnSuccess",\r
374         "name": "return success",\r
375         "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",\r
376         "comments": "",\r
377         "x": 821.6309432983398,\r
378         "y": 768.9315657615662,\r
379         "z": "19228309.79f23d",\r
380         "wires": []\r
381     },\r
382     {\r
383         "id": "1f5752f6.bdefd5",\r
384         "type": "set",\r
385         "name": "set pnf-level-oper-status to PendingCreate",\r
386         "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-rpc-action' value='`$pnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-action' value='`$pnf-topology-operation-input.request-information.request-action`' />",\r
387         "comments": "",\r
388         "x": 959.6944046020508,\r
389         "y": 667.5190324783325,\r
390         "z": "19228309.79f23d",\r
391         "wires": []\r
392     },\r
393     {\r
394         "id": "e1473b9e.65e3f8",\r
395         "type": "execute",\r
396         "name": "printContext",\r
397         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-pnf-assign.log' />\n",\r
398         "comments": "",\r
399         "outputs": 1,\r
400         "x": 811.5356712341309,\r
401         "y": 716.7088150978088,\r
402         "z": "19228309.79f23d",\r
403         "wires": [\r
404             []\r
405         ]\r
406     },\r
407     {\r
408         "id": "71d0891.189e778",\r
409         "type": "block",\r
410         "name": "block : atomic",\r
411         "xml": "<block atomic=\"true\">",\r
412         "atomic": "true",\r
413         "outputs": 1,\r
414         "x": 600.2022018432617,\r
415         "y": 686.2172737121582,\r
416         "z": "19228309.79f23d",\r
417         "wires": [\r
418             [\r
419                 "9a07bcfe.297ad8",\r
420                 "1f34dbbd.dc61f4",\r
421                 "e1473b9e.65e3f8"\r
422             ]\r
423         ]\r
424     },\r
425     {\r
426         "id": "f6ad14ca.084b8",\r
427         "type": "switchNode",\r
428         "name": "Is cloud-owner passed in input?",\r
429         "xml": "<switch test=\"`$pnf-topology-operation-input.pnf-request-input.cloud-owner != ''`\">\n",\r
430         "comments": "",\r
431         "outputs": 1,\r
432         "x": 723,\r
433         "y": 172,\r
434         "z": "19228309.79f23d",\r
435         "wires": [\r
436             [\r
437                 "98dded3d.86af78"\r
438             ]\r
439         ]\r
440     },\r
441     {\r
442         "id": "98dded3d.86af78",\r
443         "type": "outcomeTrue",\r
444         "name": "true",\r
445         "xml": "<outcome value='true'>\n",\r
446         "comments": "",\r
447         "outputs": 1,\r
448         "x": 1020,\r
449         "y": 172,\r
450         "z": "19228309.79f23d",\r
451         "wires": [\r
452             [\r
453                 "fdb56d64.3dcfa"\r
454             ]\r
455         ]\r
456     },\r
457     {\r
458         "id": "fdb56d64.3dcfa",\r
459         "type": "set",\r
460         "name": "set prop.cloud-region.cloud-owner to input cloud-owner",\r
461         "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`' />\n",\r
462         "comments": "",\r
463         "x": 1391,\r
464         "y": 168,\r
465         "z": "19228309.79f23d",\r
466         "wires": []\r
467     }\r
468 ]