Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_pnf-topology-operation-activate.json
1 [\r
2     {\r
3         "id": "c1cda377.e6968",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 158.75,\r
8         "y": 92.5,\r
9         "z": "decb865e.560cf8",\r
10         "wires": [\r
11             [\r
12                 "58dce5c3.307dcc"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "58dce5c3.307dcc",\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": 272.3690414428711,\r
26         "y": 132.73811054229736,\r
27         "z": "decb865e.560cf8",\r
28         "wires": [\r
29             [\r
30                 "9667d3fe.1b151"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "9667d3fe.1b151",\r
36         "type": "method",\r
37         "name": "method pnf-topology-operation-activate",\r
38         "xml": "<method rpc='pnf-topology-operation-activate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 250.1786346435547,\r
42         "y": 173.166654586792,\r
43         "z": "decb865e.560cf8",\r
44         "wires": [\r
45             [\r
46                 "af3e8af.a61e978"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "49fe6017.3a4b5",\r
52         "type": "comment",\r
53         "name": "pnf-topology-operation-activate",\r
54         "info": "",\r
55         "comments": "",\r
56         "x": 553.094856262207,\r
57         "y": 40.08634376525879,\r
58         "z": "decb865e.560cf8",\r
59         "wires": []\r
60     },\r
61     {\r
62         "id": "490a17e0.43a998",\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": 562.273811340332,\r
69         "y": 271.3571376800537,\r
70         "z": "decb865e.560cf8",\r
71         "wires": [\r
72             [\r
73                 "f5055a1f.74b9c8",\r
74                 "707a8e66.03ca9"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "f5055a1f.74b9c8",\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": 780.6547737121582,\r
86         "y": 248.50002193450928,\r
87         "z": "decb865e.560cf8",\r
88         "wires": [\r
89             [\r
90                 "92dc7585.b94628"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "707a8e66.03ca9",\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": 744.6547393798828,\r
102         "y": 294.2143497467041,\r
103         "z": "decb865e.560cf8",\r
104         "wires": [\r
105             [\r
106                 "e8067f7e.1e237"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "92dc7585.b94628",\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": 967.5119018554688,\r
119         "y": 248.5000514984131,\r
120         "z": "decb865e.560cf8",\r
121         "wires": [\r
122             []\r
123         ]\r
124     },\r
125     {\r
126         "id": "e8067f7e.1e237",\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 'activate' then request-action must be 'CreatePnfInstance'\" />\n",\r
130         "comments": "",\r
131         "x": 984.6547470092773,\r
132         "y": 294.2143077850342,\r
133         "z": "decb865e.560cf8",\r
134         "wires": []\r
135     },\r
136     {\r
137         "id": "af3e8af.a61e978",\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": 240.41666412353516,\r
144         "y": 481.6666622161865,\r
145         "z": "decb865e.560cf8",\r
146         "wires": [\r
147             [\r
148                 "490a17e0.43a998",\r
149                 "5bf28db1.61b564",\r
150                 "5b09bd46.5c0574",\r
151                 "a8e6104b.8eaab",\r
152                 "5ddadd37.238e54",\r
153                 "653d68c6.7140b8",\r
154                 "9b19e105.b2e98",\r
155                 "7bd93c51.6f0374"\r
156             ]\r
157         ]\r
158     },\r
159     {\r
160         "id": "5bf28db1.61b564",\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": 548.7499847412109,\r
167         "y": 340.83336353302,\r
168         "z": "decb865e.560cf8",\r
169         "wires": [\r
170             [\r
171                 "89467472.09d148"\r
172             ]\r
173         ]\r
174     },\r
175     {\r
176         "id": "89467472.09d148",\r
177         "type": "other",\r
178         "name": "NULL",\r
179         "xml": "<outcome value=''>\n",\r
180         "comments": "",\r
181         "outputs": 1,\r
182         "x": 735.4166641235352,\r
183         "y": 340.1666612625122,\r
184         "z": "decb865e.560cf8",\r
185         "wires": [\r
186             [\r
187                 "7e601764.405ac8"\r
188             ]\r
189         ]\r
190     },\r
191     {\r
192         "id": "7e601764.405ac8",\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": 917.0832901000977,\r
198         "y": 340.1666612625122,\r
199         "z": "decb865e.560cf8",\r
200         "wires": []\r
201     },\r
202     {\r
203         "id": "5b09bd46.5c0574",\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": 530.4166641235352,\r
210         "y": 389.16668128967285,\r
211         "z": "decb865e.560cf8",\r
212         "wires": [\r
213             [\r
214                 "4e154697.d6fc28"\r
215             ]\r
216         ]\r
217     },\r
218     {\r
219         "id": "4e154697.d6fc28",\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": 785.4167518615723,\r
226         "y": 387.8333492279053,\r
227         "z": "decb865e.560cf8",\r
228         "wires": [\r
229             [\r
230                 "e7691b1.8180fe8"\r
231             ]\r
232         ]\r
233     },\r
234     {\r
235         "id": "e7691b1.8180fe8",\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": 1023.7500381469727,\r
242         "y": 386.833327293396,\r
243         "z": "decb865e.560cf8",\r
244         "wires": [\r
245             [\r
246                 "cc442217.f25db"\r
247             ]\r
248         ]\r
249     },\r
250     {\r
251         "id": "cc442217.f25db",\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": 1192.0832328796387,\r
257         "y": 386.8333492279053,\r
258         "z": "decb865e.560cf8",\r
259         "wires": []\r
260     },\r
261     {\r
262         "id": "a8e6104b.8eaab",\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": 542.0833282470703,\r
269         "y": 435.8333511352539,\r
270         "z": "decb865e.560cf8",\r
271         "wires": [\r
272             [\r
273                 "f4e58e32.9147f"\r
274             ]\r
275         ]\r
276     },\r
277     {\r
278         "id": "f4e58e32.9147f",\r
279         "type": "other",\r
280         "name": "NULL",\r
281         "xml": "<outcome value=''>\n",\r
282         "comments": "",\r
283         "outputs": 1,\r
284         "x": 723.7499465942383,\r
285         "y": 435.16668128967285,\r
286         "z": "decb865e.560cf8",\r
287         "wires": [\r
288             [\r
289                 "1460f65f.17708a"\r
290             ]\r
291         ]\r
292     },\r
293     {\r
294         "id": "1460f65f.17708a",\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 ' + $pnf-topology-operation-input.pnf-details.pnf-id + ' in MD-SAL'\" />\n",\r
298         "comments": "",\r
299         "x": 890.416633605957,\r
300         "y": 434.83330726623535,\r
301         "z": "decb865e.560cf8",\r
302         "wires": []\r
303     },\r
304     {\r
305         "id": "9b19e105.b2e98",\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": 530.8332901000977,\r
311         "y": 788.7500114440918,\r
312         "z": "decb865e.560cf8",\r
313         "wires": []\r
314     },\r
315     {\r
316         "id": "653d68c6.7140b8",\r
317         "type": "set",\r
318         "name": "set pnf-level-oper-status to Created",\r
319         "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.order-status' value='Created' />\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": 594.5633964538574,\r
322         "y": 739.8371295928955,\r
323         "z": "decb865e.560cf8",\r
324         "wires": []\r
325     },\r
326     {\r
327         "id": "5ddadd37.238e54",\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": 535.4165382385254,\r
333         "y": 695.8333110809326,\r
334         "z": "decb865e.560cf8",\r
335         "wires": []\r
336     },\r
337     {\r
338         "id": "cb0c3cab.3e7f9",\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": 1053.7500190734863,\r
344         "y": 581.4999418258667,\r
345         "z": "decb865e.560cf8",\r
346         "wires": []\r
347     },\r
348     {\r
349         "id": "7ccf7c78.770534",\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": 884.7739181518555,\r
356         "y": 537.7857532501221,\r
357         "z": "decb865e.560cf8",\r
358         "wires": [\r
359             [\r
360                 "bb23b26b.3439a"\r
361             ]\r
362         ]\r
363     },\r
364     {\r
365         "id": "877c806f.dc481",\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": 893.3453483581543,\r
372         "y": 582.0714664459229,\r
373         "z": "decb865e.560cf8",\r
374         "wires": [\r
375             [\r
376                 "cb0c3cab.3e7f9"\r
377             ]\r
378         ]\r
379     },\r
380     {\r
381         "id": "bb23b26b.3439a",\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": 1056.4406127929688,\r
387         "y": 538.2621469497681,\r
388         "z": "decb865e.560cf8",\r
389         "wires": []\r
390     },\r
391     {\r
392         "id": "7bd93c51.6f0374",\r
393         "type": "save",\r
394         "name": "update generic-pnf prov-status to NVTPROV",\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=\"prov-status\" value=\"NVTPROV\" />\n",\r
396         "comments": "",\r
397         "outputs": 1,\r
398         "x": 632.0833435058594,\r
399         "y": 557.5000095367432,\r
400         "z": "decb865e.560cf8",\r
401         "wires": [\r
402             [\r
403                 "7ccf7c78.770534",\r
404                 "877c806f.dc481"\r
405             ]\r
406         ]\r
407     }\r
408 ]