Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_pnf-topology-operation-unassign.json
1 [\r
2     {\r
3         "id": "44848463.9c03cc",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 142.85713958740234,\r
8         "y": 84.91365146636963,\r
9         "z": "f1a3b581.3496c8",\r
10         "wires": [\r
11             [\r
12                 "f14302be.ebaf1"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "f14302be.ebaf1",\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": 257.1428451538086,\r
26         "y": 125.15176296234131,\r
27         "z": "f1a3b581.3496c8",\r
28         "wires": [\r
29             [\r
30                 "153fc0f1.cb87df"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "153fc0f1.cb87df",\r
36         "type": "method",\r
37         "name": "method pnf-topology-operation-unassign",\r
38         "xml": "<method rpc='pnf-topology-operation-unassign' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 265.00006103515625,\r
42         "y": 177.7707920074463,\r
43         "z": "f1a3b581.3496c8",\r
44         "wires": [\r
45             [\r
46                 "b956be40.069de"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "99b1e8a8.435958",\r
52         "type": "comment",\r
53         "name": "pnf-topology-operation-unassign",\r
54         "info": "",\r
55         "comments": "",\r
56         "x": 618.6305541992188,\r
57         "y": 65.35713768005371,\r
58         "z": "f1a3b581.3496c8",\r
59         "wires": []\r
60     },\r
61     {\r
62         "id": "b8803272.ab828",\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": 547.2738151550293,\r
69         "y": 312.52079010009766,\r
70         "z": "f1a3b581.3496c8",\r
71         "wires": [\r
72             [\r
73                 "dc693389.c0655",\r
74                 "1ad46da6.a11c82"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "dc693389.c0655",\r
80         "type": "outcome",\r
81         "name": "DeletePnfInstance",\r
82         "xml": "<outcome value='DeletePnfInstance'>\n",\r
83         "comments": "",\r
84         "outputs": 1,\r
85         "x": 767.6547508239746,\r
86         "y": 287.99699878692627,\r
87         "z": "f1a3b581.3496c8",\r
88         "wires": [\r
89             [\r
90                 "67e9ef57.3e2e3"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "1ad46da6.a11c82",\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": 729.6547164916992,\r
102         "y": 333.7113265991211,\r
103         "z": "f1a3b581.3496c8",\r
104         "wires": [\r
105             [\r
106                 "3d7b589b.6788d8"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "67e9ef57.3e2e3",\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": 952.5118789672852,\r
119         "y": 287.9970283508301,\r
120         "z": "f1a3b581.3496c8",\r
121         "wires": [\r
122             []\r
123         ]\r
124     },\r
125     {\r
126         "id": "3d7b589b.6788d8",\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 'unassign' then request-action must be 'DeletePnfInstance'\" />\n",\r
130         "comments": "",\r
131         "x": 969.6547241210938,\r
132         "y": 333.7112846374512,\r
133         "z": "f1a3b581.3496c8",\r
134         "wires": []\r
135     },\r
136     {\r
137         "id": "b956be40.069de",\r
138         "type": "block",\r
139         "name": "block : atomic",\r
140         "xml": "<block atomic=\"true\">",\r
141         "atomic": "true",\r
142         "comments": "",\r
143         "outputs": 1,\r
144         "x": 307.0833511352539,\r
145         "y": 375.7470169067383,\r
146         "z": "f1a3b581.3496c8",\r
147         "wires": [\r
148             [\r
149                 "b8803272.ab828",\r
150                 "472a3863.cadb08"\r
151             ]\r
152         ]\r
153     },\r
154     {\r
155         "id": "472a3863.cadb08",\r
156         "type": "switchNode",\r
157         "name": "switch pnf_length",\r
158         "xml": "<switch test='`$service-data.pnfs.pnf_length`'>\n",\r
159         "comments": "",\r
160         "outputs": 1,\r
161         "x": 535.8333053588867,\r
162         "y": 431.99701499938965,\r
163         "z": "f1a3b581.3496c8",\r
164         "wires": [\r
165             [\r
166                 "30e6e945.388c56",\r
167                 "db658b73.14d608"\r
168             ]\r
169         ]\r
170     },\r
171     {\r
172         "id": "30e6e945.388c56",\r
173         "type": "other",\r
174         "name": "NULL",\r
175         "xml": "<outcome value=''>\n",\r
176         "comments": "",\r
177         "outputs": 1,\r
178         "x": 720.4166679382324,\r
179         "y": 381.33031368255615,\r
180         "z": "f1a3b581.3496c8",\r
181         "wires": [\r
182             [\r
183                 "4eb21415.9f088c"\r
184             ]\r
185         ]\r
186     },\r
187     {\r
188         "id": "ac223b7b.327ae8",\r
189         "type": "for",\r
190         "name": "for each pnf",\r
191         "xml": "<for index='idx' start='0' end='`$service-data.pnfs.pnf_length`' >\n",\r
192         "comments": "",\r
193         "outputs": 1,\r
194         "x": 1058.7499885559082,\r
195         "y": 460.99698543548584,\r
196         "z": "f1a3b581.3496c8",\r
197         "wires": [\r
198             [\r
199                 "863b8b5d.b74bd8"\r
200             ]\r
201         ]\r
202     },\r
203     {\r
204         "id": "863b8b5d.b74bd8",\r
205         "type": "switchNode",\r
206         "name": "switch this pnf-id == input pnf-id",\r
207         "xml": "<switch test='`$service-data.pnfs.pnf[$idx].pnf-id == $pnf-topology-operation-input.pnf-details.pnf-id`' >\n",\r
208         "comments": "",\r
209         "outputs": 1,\r
210         "x": 1313.7500762939453,\r
211         "y": 460.66365337371826,\r
212         "z": "f1a3b581.3496c8",\r
213         "wires": [\r
214             [\r
215                 "1a869d86.029822"\r
216             ]\r
217         ]\r
218     },\r
219     {\r
220         "id": "1a869d86.029822",\r
221         "type": "outcomeTrue",\r
222         "name": "true",\r
223         "xml": "<outcome value='true'>\n",\r
224         "comments": "",\r
225         "outputs": 1,\r
226         "x": 1552.0833625793457,\r
227         "y": 459.663631439209,\r
228         "z": "f1a3b581.3496c8",\r
229         "wires": [\r
230             [\r
231                 "89db8fa1.fbfb7"\r
232             ]\r
233         ]\r
234     },\r
235     {\r
236         "id": "89db8fa1.fbfb7",\r
237         "type": "set",\r
238         "name": "set pnf-index",\r
239         "xml": "<set>\n<parameter name='pnf-index' value='`$idx`' />\n",\r
240         "comments": "",\r
241         "x": 1720.4165573120117,\r
242         "y": 459.66365337371826,\r
243         "z": "f1a3b581.3496c8",\r
244         "wires": []\r
245     },\r
246     {\r
247         "id": "91f7c5d2.aec7c8",\r
248         "type": "switchNode",\r
249         "name": "switch pnf-index",\r
250         "xml": "<switch test='`$pnf-index`'>\n",\r
251         "comments": "",\r
252         "outputs": 1,\r
253         "x": 1068.7499961853027,\r
254         "y": 528.6636762619019,\r
255         "z": "f1a3b581.3496c8",\r
256         "wires": [\r
257             [\r
258                 "a73b88c1.d4a938",\r
259                 "61ae7a9f.6fa4c4"\r
260             ]\r
261         ]\r
262     },\r
263     {\r
264         "id": "a73b88c1.d4a938",\r
265         "type": "other",\r
266         "name": "NULL",\r
267         "xml": "<outcome value=''>\n",\r
268         "comments": "",\r
269         "outputs": 1,\r
270         "x": 1252.0832710266113,\r
271         "y": 507.99698543548584,\r
272         "z": "f1a3b581.3496c8",\r
273         "wires": [\r
274             [\r
275                 "3f8e107f.398f6"\r
276             ]\r
277         ]\r
278     },\r
279     {\r
280         "id": "2f8817c9.6ff968",\r
281         "type": "for",\r
282         "name": "for each pnf",\r
283         "xml": "<for index='idx' start='`$pnf-index + 1`' end='`$service-data.pnfs.pnf_length`' >\n",\r
284         "comments": "",\r
285         "outputs": 1,\r
286         "x": 1840.7474479675293,\r
287         "y": 816.2073278427124,\r
288         "z": "f1a3b581.3496c8",\r
289         "wires": [\r
290             [\r
291                 "fbaab91f.ad4ac8"\r
292             ]\r
293         ]\r
294     },\r
295     {\r
296         "id": "ffb94216.e342d",\r
297         "type": "comment",\r
298         "name": "Remove PNF from service data",\r
299         "info": "",\r
300         "comments": "",\r
301         "x": 1192.5489654541016,\r
302         "y": 874.8146324157715,\r
303         "z": "f1a3b581.3496c8",\r
304         "wires": []\r
305     },\r
306     {\r
307         "id": "1e58255a.651e5b",\r
308         "type": "set",\r
309         "name": "move pnf to remove one",\r
310         "xml": "<set>\n<parameter name=\"service-data.pnfs.pnf[$tmpidx].\" value=\"$service-data.pnfs.pnf[$idx].\" />\n\t\n",\r
311         "comments": "",\r
312         "x": 2229.576835632324,\r
313         "y": 874.1359367370605,\r
314         "z": "f1a3b581.3496c8",\r
315         "wires": []\r
316     },\r
317     {\r
318         "id": "360a75d1.d30c7a",\r
319         "type": "switchNode",\r
320         "name": "switch pnf_length",\r
321         "xml": "<switch test='`$service-data.pnfs.pnf_length`'>\n",\r
322         "comments": "",\r
323         "outputs": 1,\r
324         "x": 1269.5051574707031,\r
325         "y": 823.5368947982788,\r
326         "z": "f1a3b581.3496c8",\r
327         "wires": [\r
328             [\r
329                 "aaa45fd.40e56a",\r
330                 "1dac6983.f86bf6"\r
331             ]\r
332         ]\r
333     },\r
334     {\r
335         "id": "aaa45fd.40e56a",\r
336         "type": "outcome",\r
337         "name": "1",\r
338         "xml": "<outcome value='1'>\n",\r
339         "comments": "",\r
340         "outputs": 1,\r
341         "x": 1457.9338836669922,\r
342         "y": 752.7748603820801,\r
343         "z": "f1a3b581.3496c8",\r
344         "wires": [\r
345             [\r
346                 "5f59c80c.833558"\r
347             ]\r
348         ]\r
349     },\r
350     {\r
351         "id": "5f59c80c.833558",\r
352         "type": "set",\r
353         "name": "Remove pnfs",\r
354         "xml": "<set>\n\t<parameter name=\"service-data.pnfs.\" value=\"\"/>\n\n",\r
355         "comments": "",\r
356         "x": 1621.6003799438477,\r
357         "y": 752.774959564209,\r
358         "z": "f1a3b581.3496c8",\r
359         "wires": []\r
360     },\r
361     {\r
362         "id": "1dac6983.f86bf6",\r
363         "type": "other",\r
364         "name": "other",\r
365         "xml": "<outcome value='Other'>\n",\r
366         "comments": "",\r
367         "outputs": 1,\r
368         "x": 1458.0290985107422,\r
369         "y": 898.6796436309814,\r
370         "z": "f1a3b581.3496c8",\r
371         "wires": [\r
372             [\r
373                 "52f2f529.abde7c"\r
374             ]\r
375         ]\r
376     },\r
377     {\r
378         "id": "4e1f1b16.7137e4",\r
379         "type": "set",\r
380         "name": "set new pnf length",\r
381         "xml": "<set>\n\t<parameter name=\"service-data.pnfs.pnf_length\" value=\"`$service-data.pnfs.pnf_length - 1`\"/>\n\n\t\n",\r
382         "comments": "",\r
383         "x": 1863.1589050292969,\r
384         "y": 988.548994064331,\r
385         "z": "f1a3b581.3496c8",\r
386         "wires": []\r
387     },\r
388     {\r
389         "id": "30dd49ff.6bcb66",\r
390         "type": "set",\r
391         "name": "Remove the last pnf in the list",\r
392         "xml": "<set>\n\t<parameter name=\"service-data.pnfs.pnf[$service-data.pnfs.pnf_length - 1].\" value=\"\"/>\n\n",\r
393         "comments": "",\r
394         "x": 1900.291259765625,\r
395         "y": 930.8027439117432,\r
396         "z": "f1a3b581.3496c8",\r
397         "wires": []\r
398     },\r
399     {\r
400         "id": "52f2f529.abde7c",\r
401         "type": "block",\r
402         "name": "block : atomic",\r
403         "xml": "<block atomic=\"true\">",\r
404         "atomic": "true",\r
405         "outputs": 1,\r
406         "x": 1623.8384399414062,\r
407         "y": 898.2034244537354,\r
408         "z": "f1a3b581.3496c8",\r
409         "wires": [\r
410             [\r
411                 "2f8817c9.6ff968",\r
412                 "30dd49ff.6bcb66",\r
413                 "4e1f1b16.7137e4"\r
414             ]\r
415         ]\r
416     },\r
417     {\r
418         "id": "13e0a554.21a0db",\r
419         "type": "call",\r
420         "name": "call self-serve-pnf-unassign",\r
421         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-unassign' mode='sync' >\n",\r
422         "comments": "",\r
423         "outputs": 1,\r
424         "x": 825.9999084472656,\r
425         "y": 940.059440612793,\r
426         "z": "f1a3b581.3496c8",\r
427         "wires": [\r
428             [\r
429                 "3f91ac2d.0f5594",\r
430                 "a584b92f.61d548"\r
431             ]\r
432         ]\r
433     },\r
434     {\r
435         "id": "3f91ac2d.0f5594",\r
436         "type": "failure",\r
437         "name": "failure",\r
438         "xml": "<outcome value='failure'>\n",\r
439         "comments": "",\r
440         "outputs": 1,\r
441         "x": 1065.1784286499023,\r
442         "y": 1058.88090133667,\r
443         "z": "f1a3b581.3496c8",\r
444         "wires": [\r
445             [\r
446                 "35976213.e5e2de"\r
447             ]\r
448         ]\r
449     },\r
450     {\r
451         "id": "35976213.e5e2de",\r
452         "type": "returnFailure",\r
453         "name": "return failure",\r
454         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error while unassigning self-serve  pnf resources with error: '+ $error-message`\" />\n",\r
455         "comments": "",\r
456         "x": 1230.749855041504,\r
457         "y": 1058.523796081543,\r
458         "z": "f1a3b581.3496c8",\r
459         "wires": []\r
460     },\r
461     {\r
462         "id": "a584b92f.61d548",\r
463         "type": "success",\r
464         "name": "success",\r
465         "xml": "<outcome value='success'>\n",\r
466         "comments": "",\r
467         "outputs": 1,\r
468         "x": 1079.7855987548828,\r
469         "y": 823.7221164703369,\r
470         "z": "f1a3b581.3496c8",\r
471         "wires": [\r
472             [\r
473                 "360a75d1.d30c7a"\r
474             ]\r
475         ]\r
476     },\r
477     {\r
478         "id": "3f8e107f.398f6",\r
479         "type": "returnSuccess",\r
480         "name": "return success",\r
481         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",\r
482         "comments": "",\r
483         "x": 1408.7499732971191,\r
484         "y": 506.99694538116455,\r
485         "z": "f1a3b581.3496c8",\r
486         "wires": []\r
487     },\r
488     {\r
489         "id": "4eb21415.9f088c",\r
490         "type": "returnSuccess",\r
491         "name": "return success",\r
492         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",\r
493         "comments": "",\r
494         "x": 873.7499656677246,\r
495         "y": 380.33032417297363,\r
496         "z": "f1a3b581.3496c8",\r
497         "wires": []\r
498     },\r
499     {\r
500         "id": "db658b73.14d608",\r
501         "type": "other",\r
502         "name": "other",\r
503         "xml": "<outcome value='Other'>\n",\r
504         "comments": "",\r
505         "outputs": 1,\r
506         "x": 717.0833854675293,\r
507         "y": 490.33028984069824,\r
508         "z": "f1a3b581.3496c8",\r
509         "wires": [\r
510             [\r
511                 "417ce772.8c6608"\r
512             ]\r
513         ]\r
514     },\r
515     {\r
516         "id": "417ce772.8c6608",\r
517         "type": "block",\r
518         "name": "block : atomic",\r
519         "xml": "<block atomic=\"true\">",\r
520         "atomic": "true",\r
521         "outputs": 1,\r
522         "x": 875.4166221618652,\r
523         "y": 490.3302993774414,\r
524         "z": "f1a3b581.3496c8",\r
525         "wires": [\r
526             [\r
527                 "ac223b7b.327ae8",\r
528                 "91f7c5d2.aec7c8"\r
529             ]\r
530         ]\r
531     },\r
532     {\r
533         "id": "d339953b.0b9398",\r
534         "type": "block",\r
535         "name": "block : atomic",\r
536         "xml": "<block atomic=\"true\">",\r
537         "atomic": "true",\r
538         "outputs": 1,\r
539         "x": 580.773738861084,\r
540         "y": 940.4612274169922,\r
541         "z": "f1a3b581.3496c8",\r
542         "wires": [\r
543             [\r
544                 "13e0a554.21a0db"\r
545             ]\r
546         ]\r
547     },\r
548     {\r
549         "id": "61ae7a9f.6fa4c4",\r
550         "type": "other",\r
551         "name": "other",\r
552         "xml": "<outcome value='Other'>\n",\r
553         "comments": "",\r
554         "outputs": 1,\r
555         "x": 1248.7500686645508,\r
556         "y": 553.6636695861816,\r
557         "z": "f1a3b581.3496c8",\r
558         "wires": [\r
559             [\r
560                 "d339953b.0b9398"\r
561             ]\r
562         ]\r
563     },\r
564     {\r
565         "id": "fbaab91f.ad4ac8",\r
566         "type": "block",\r
567         "name": "block",\r
568         "xml": "<block>\n",\r
569         "atomic": "false",\r
570         "comments": "",\r
571         "outputs": 1,\r
572         "x": 2006.1906929016113,\r
573         "y": 815.7470827102661,\r
574         "z": "f1a3b581.3496c8",\r
575         "wires": [\r
576             [\r
577                 "dcefa387.6f6e2",\r
578                 "1e58255a.651e5b",\r
579                 "1b980290.5651ad"\r
580             ]\r
581         ]\r
582     },\r
583     {\r
584         "id": "dcefa387.6f6e2",\r
585         "type": "set",\r
586         "name": "set tmpidx",\r
587         "xml": "<set>\n<parameter name=\"$tmpidx\" value=\"`$idx - 1`\"/>\n",\r
588         "comments": "",\r
589         "x": 2180.190361022949,\r
590         "y": 756.2707481384277,\r
591         "z": "f1a3b581.3496c8",\r
592         "wires": []\r
593     },\r
594     {\r
595         "id": "1b980290.5651ad",\r
596         "type": "set",\r
597         "name": "erase entry at tmpidx",\r
598         "xml": "<set>\n<parameter name=\"service-data.pnfs.pnf[$tmpidx].\" value=\"\" />\n\t\n",\r
599         "comments": "",\r
600         "x": 2218.333023071289,\r
601         "y": 814.0803489685059,\r
602         "z": "f1a3b581.3496c8",\r
603         "wires": []\r
604     }\r
605 ]