Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_pnf-topology-operation-deactivate.json
1 [\r
2     {\r
3         "id": "8506af40.5640e",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 182.5,\r
8         "y": 152.4136562347412,\r
9         "z": "e258b0aa.62b08",\r
10         "wires": [\r
11             [\r
12                 "8720000f.3622"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "8720000f.3622",\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": 296.78570556640625,\r
26         "y": 192.6517677307129,\r
27         "z": "e258b0aa.62b08",\r
28         "wires": [\r
29             [\r
30                 "35837ff.2b64c8"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "35837ff.2b64c8",\r
36         "type": "method",\r
37         "name": "method pnf-topology-operation-deactivate",\r
38         "xml": "<method rpc='pnf-topology-operation-deactivate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 282.92862701416016,\r
42         "y": 232.4136562347412,\r
43         "z": "e258b0aa.62b08",\r
44         "wires": [\r
45             [\r
46                 "5faec448.e83a7c"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "988f9bfd.746e88",\r
52         "type": "comment",\r
53         "name": "pnf-topology-operation-deactivate",\r
54         "info": "",\r
55         "comments": "",\r
56         "x": 576.844856262207,\r
57         "y": 100,\r
58         "z": "e258b0aa.62b08",\r
59         "wires": []\r
60     },\r
61     {\r
62         "id": "f4c58140.97edc",\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": 586.023811340332,\r
69         "y": 331.2707939147949,\r
70         "z": "e258b0aa.62b08",\r
71         "wires": [\r
72             [\r
73                 "726a3e0d.32be6",\r
74                 "1cb14b3d.d899b5"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "726a3e0d.32be6",\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": 812.7380867004395,\r
86         "y": 306.74701023101807,\r
87         "z": "e258b0aa.62b08",\r
88         "wires": [\r
89             [\r
90                 "a3bbd2.65d8743"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "1cb14b3d.d899b5",\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": 776.7380523681641,\r
102         "y": 352.4613380432129,\r
103         "z": "e258b0aa.62b08",\r
104         "wires": [\r
105             [\r
106                 "4344bfcd.bedc2"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "a3bbd2.65d8743",\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": 999.59521484375,\r
119         "y": 306.7470397949219,\r
120         "z": "e258b0aa.62b08",\r
121         "wires": [\r
122             []\r
123         ]\r
124     },\r
125     {\r
126         "id": "4344bfcd.bedc2",\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 'deactivate' then request-action must be 'DeletePnfInstance'\" />\n",\r
130         "comments": "",\r
131         "x": 1016.7380599975586,\r
132         "y": 352.46129608154297,\r
133         "z": "e258b0aa.62b08",\r
134         "wires": []\r
135     },\r
136     {\r
137         "id": "5faec448.e83a7c",\r
138         "type": "block",\r
139         "name": "block : atomic",\r
140         "xml": "<block atomic=\"true\">",\r
141         "atomic": "true",\r
142         "outputs": 1,\r
143         "x": 259.16666412353516,\r
144         "y": 454.0803279876709,\r
145         "z": "e258b0aa.62b08",\r
146         "wires": [\r
147             [\r
148                 "f4c58140.97edc",\r
149                 "12e91417.a114bc",\r
150                 "de22c438.12dd88",\r
151                 "8ecfe532.9e7b28",\r
152                 "abfda14e.5c5ef",\r
153                 "33eac0f7.3cb6e",\r
154                 "3a413756.ae65c8",\r
155                 "391576a4.28d9fa"\r
156             ]\r
157         ]\r
158     },\r
159     {\r
160         "id": "12e91417.a114bc",\r
161         "type": "switchNode",\r
162         "name": "switch pnf_length",\r
163         "xml": "<switch test='`$service-data.pnfs.pnf_length`'>\n",\r
164         "comments": "",\r
165         "outputs": 1,\r
166         "x": 572.4999847412109,\r
167         "y": 400.74701976776123,\r
168         "z": "e258b0aa.62b08",\r
169         "wires": [\r
170             [\r
171                 "65a7dfe.70d192"\r
172             ]\r
173         ]\r
174     },\r
175     {\r
176         "id": "65a7dfe.70d192",\r
177         "type": "other",\r
178         "name": "NULL",\r
179         "xml": "<outcome value=''>\n",\r
180         "comments": "",\r
181         "outputs": 1,\r
182         "x": 759.1666641235352,\r
183         "y": 400.0803174972534,\r
184         "z": "e258b0aa.62b08",\r
185         "wires": [\r
186             [\r
187                 "72a5bc7.446c444"\r
188             ]\r
189         ]\r
190     },\r
191     {\r
192         "id": "72a5bc7.446c444",\r
193         "type": "returnFailure",\r
194         "name": "return failure",\r
195         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"There are no PNFs in MD-SAL\" />\n",\r
196         "comments": "",\r
197         "x": 940.8332901000977,\r
198         "y": 400.0803174972534,\r
199         "z": "e258b0aa.62b08",\r
200         "wires": []\r
201     },\r
202     {\r
203         "id": "de22c438.12dd88",\r
204         "type": "for",\r
205         "name": "for each pnf",\r
206         "xml": "<for index='idx' start='0' end='`$service-data.pnfs.pnf_length`' >\n",\r
207         "comments": "",\r
208         "outputs": 1,\r
209         "x": 554.1666641235352,\r
210         "y": 449.08033752441406,\r
211         "z": "e258b0aa.62b08",\r
212         "wires": [\r
213             [\r
214                 "20aebd62.e37282"\r
215             ]\r
216         ]\r
217     },\r
218     {\r
219         "id": "20aebd62.e37282",\r
220         "type": "switchNode",\r
221         "name": "switch this pnf-id == input pnf-id",\r
222         "xml": "<switch test='`$service-data.pnfs.pnf[$idx].pnf-id == $pnf-topology-operation-input.pnf-details.pnf-id`'>\n",\r
223         "comments": "",\r
224         "outputs": 1,\r
225         "x": 809.1667518615723,\r
226         "y": 447.7470054626465,\r
227         "z": "e258b0aa.62b08",\r
228         "wires": [\r
229             [\r
230                 "ea9be52a.cc9c48"\r
231             ]\r
232         ]\r
233     },\r
234     {\r
235         "id": "ea9be52a.cc9c48",\r
236         "type": "outcomeTrue",\r
237         "name": "true",\r
238         "xml": "<outcome value='true'>\n",\r
239         "comments": "",\r
240         "outputs": 1,\r
241         "x": 1047.5000381469727,\r
242         "y": 446.7469835281372,\r
243         "z": "e258b0aa.62b08",\r
244         "wires": [\r
245             [\r
246                 "f14f1154.64ba2"\r
247             ]\r
248         ]\r
249     },\r
250     {\r
251         "id": "f14f1154.64ba2",\r
252         "type": "set",\r
253         "name": "set pnf-index",\r
254         "xml": "<set>\n<parameter name='pnf-index' value='`$idx`' />\n",\r
255         "comments": "",\r
256         "x": 1215.8332328796387,\r
257         "y": 446.7470054626465,\r
258         "z": "e258b0aa.62b08",\r
259         "wires": []\r
260     },\r
261     {\r
262         "id": "8ecfe532.9e7b28",\r
263         "type": "switchNode",\r
264         "name": "switch pnf-index",\r
265         "xml": "<switch test='`$pnf-index`'>\n",\r
266         "comments": "",\r
267         "outputs": 1,\r
268         "x": 565.8333206176758,\r
269         "y": 495.74700689315796,\r
270         "z": "e258b0aa.62b08",\r
271         "wires": [\r
272             [\r
273                 "9637a20a.14e2a"\r
274             ]\r
275         ]\r
276     },\r
277     {\r
278         "id": "9637a20a.14e2a",\r
279         "type": "other",\r
280         "name": "NULL",\r
281         "xml": "<outcome value=''>\n",\r
282         "comments": "",\r
283         "outputs": 1,\r
284         "x": 747.4999465942383,\r
285         "y": 495.08033752441406,\r
286         "z": "e258b0aa.62b08",\r
287         "wires": [\r
288             [\r
289                 "f6ea119e.d9b2b"\r
290             ]\r
291         ]\r
292     },\r
293     {\r
294         "id": "f6ea119e.d9b2b",\r
295         "type": "returnFailure",\r
296         "name": "return failure",\r
297         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"'Could not find PNF with pnf-id = ' + $pnf-topology-operation-input.pnf-details.pnf-id + ' in MD-SAL'\" />\n",\r
298         "comments": "",\r
299         "x": 914.166633605957,\r
300         "y": 494.74696350097656,\r
301         "z": "e258b0aa.62b08",\r
302         "wires": []\r
303     },\r
304     {\r
305         "id": "abfda14e.5c5ef",\r
306         "type": "returnSuccess",\r
307         "name": "return success",\r
308         "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
309         "comments": "",\r
310         "x": 559.1666488647461,\r
311         "y": 715.7469959259033,\r
312         "z": "e258b0aa.62b08",\r
313         "wires": []\r
314     },\r
315     {\r
316         "id": "33eac0f7.3cb6e",\r
317         "type": "set",\r
318         "name": "set pnf-level-oper-status to PendingDelete",\r
319         "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.order-status' value='PendingDelete' />\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`' />\n",\r
320         "comments": "",\r
321         "x": 646.646728515625,\r
322         "y": 671.4174251556396,\r
323         "z": "e258b0aa.62b08",\r
324         "wires": []\r
325     },\r
326     {\r
327         "id": "3a413756.ae65c8",\r
328         "type": "set",\r
329         "name": "copy input data",\r
330         "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.sdnc-request-header.' value='$pnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.request-information.' value='$pnf-topology-operation-input.request-information.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.' value='$pnf-topology-operation-input.service-information.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-details.' value='$pnf-topology-operation-input.pnf-details.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.' value='$pnf-topology-operation-input.pnf-request-input.' />\n\n",\r
331         "comments": "",\r
332         "x": 560.8332290649414,\r
333         "y": 629.0803050994873,\r
334         "z": "e258b0aa.62b08",\r
335         "wires": []\r
336     },\r
337     {\r
338         "id": "e04691b0.11c04",\r
339         "type": "returnFailure",\r
340         "name": "return failure",\r
341         "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 pnf found in AAI with pnf-id =  ' + $service-data.pnfs.pnf[$pnf-index].pnf-id`\" />\n",\r
342         "comments": "",\r
343         "x": 1112.499942779541,\r
344         "y": 581.6666793823242,\r
345         "z": "e258b0aa.62b08",\r
346         "wires": []\r
347     },\r
348     {\r
349         "id": "cbdddd32.ce5af",\r
350         "type": "failure",\r
351         "name": "failure",\r
352         "xml": "<outcome value='failure'>\n",\r
353         "comments": "",\r
354         "outputs": 1,\r
355         "x": 943.5238418579102,\r
356         "y": 537.9524908065796,\r
357         "z": "e258b0aa.62b08",\r
358         "wires": [\r
359             [\r
360                 "1f3441b2.bf159e"\r
361             ]\r
362         ]\r
363     },\r
364     {\r
365         "id": "156cb32c.728abd",\r
366         "type": "not-found",\r
367         "name": "not-found",\r
368         "xml": "<outcome value='not-found'>\n",\r
369         "comments": "",\r
370         "outputs": 1,\r
371         "x": 952.095272064209,\r
372         "y": 582.2382040023804,\r
373         "z": "e258b0aa.62b08",\r
374         "wires": [\r
375             [\r
376                 "e04691b0.11c04"\r
377             ]\r
378         ]\r
379     },\r
380     {\r
381         "id": "1f3441b2.bf159e",\r
382         "type": "returnFailure",\r
383         "name": "return failure",\r
384         "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 updating pnf in AAI\" />\n",\r
385         "comments": "",\r
386         "x": 1115.1905364990234,\r
387         "y": 538.4288845062256,\r
388         "z": "e258b0aa.62b08",\r
389         "wires": []\r
390     },\r
391     {\r
392         "id": "391576a4.28d9fa",\r
393         "type": "save",\r
394         "name": "update pnf orch-status to PendingDelete",\r
395         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"pnf\"\n   key=\"pnf.pnf-id = $service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-topology-identifier-structure.pnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n",\r
396         "comments": "",\r
397         "outputs": 1,\r
398         "x": 667.4999084472656,\r
399         "y": 557.6667184829712,\r
400         "z": "e258b0aa.62b08",\r
401         "wires": [\r
402             [\r
403                 "cbdddd32.ce5af",\r
404                 "156cb32c.728abd"\r
405             ]\r
406         ]\r
407     }\r
408 ]