Merge "Dublin release"
[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": "d3b3a7ea.d04d08",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 133.3333282470703,\r
8         "y": 79.63588523864746,\r
9         "z": "6dfe2c1.a0003d4",\r
10         "wires": [\r
11             [\r
12                 "46bb10f7.5c3fb"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "46bb10f7.5c3fb",\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": 248.61903381347656,\r
26         "y": 121.54066467285156,\r
27         "z": "6dfe2c1.a0003d4",\r
28         "wires": [\r
29             [\r
30                 "11b944cd.c96c5b"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "11b944cd.c96c5b",\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": 243.92864990234375,\r
42         "y": 165.55255317687988,\r
43         "z": "6dfe2c1.a0003d4",\r
44         "wires": [\r
45             [\r
46                 "ce6b8a58.b8d3e8"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "7e923496.314c4c",\r
52         "type": "comment",\r
53         "name": "pnf-topology-operation-assign",\r
54         "info": "",\r
55         "comments": "",\r
56         "x": 535.5948638916016,\r
57         "y": 41.38888931274414,\r
58         "z": "6dfe2c1.a0003d4",\r
59         "wires": []\r
60     },\r
61     {\r
62         "id": "2c8dd484.c334bc",\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.2143096923828,\r
69         "y": 309.0287160873413,\r
70         "z": "6dfe2c1.a0003d4",\r
71         "wires": [\r
72             [\r
73                 "e97259d0.1af158",\r
74                 "413f5d48.571fc4"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "e97259d0.1af158",\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": 880.9286041259766,\r
86         "y": 286.1715974807739,\r
87         "z": "6dfe2c1.a0003d4",\r
88         "wires": [\r
89             [\r
90                 "f6bc9eb4.5cc37"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "413f5d48.571fc4",\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": 842.9285697937012,\r
102         "y": 331.88592529296875,\r
103         "z": "6dfe2c1.a0003d4",\r
104         "wires": [\r
105             [\r
106                 "514d78e9.baa838"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "f6bc9eb4.5cc37",\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": 1065.785732269287,\r
119         "y": 286.17162704467773,\r
120         "z": "6dfe2c1.a0003d4",\r
121         "wires": [\r
122             []\r
123         ]\r
124     },\r
125     {\r
126         "id": "514d78e9.baa838",\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": 1082.9285774230957,\r
132         "y": 331.8858833312988,\r
133         "z": "6dfe2c1.a0003d4",\r
134         "wires": []\r
135     },\r
136     {\r
137         "id": "4388ff9d.ce7d6",\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": 639.5476150512695,\r
144         "y": 400.17158603668213,\r
145         "z": "6dfe2c1.a0003d4",\r
146         "wires": [\r
147             [\r
148                 "512ab575.220ccc",\r
149                 "3a1614d2.3eacec"\r
150             ]\r
151         ]\r
152     },\r
153     {\r
154         "id": "6dc29919.0f2208",\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": 1080.9760932922363,\r
160         "y": 423.60007190704346,\r
161         "z": "6dfe2c1.a0003d4",\r
162         "wires": []\r
163     },\r
164     {\r
165         "id": "512ab575.220ccc",\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.3333129882812,\r
172         "y": 380.55242347717285,\r
173         "z": "6dfe2c1.a0003d4",\r
174         "wires": [\r
175             [\r
176                 "d5d2d14c.f67aa"\r
177             ]\r
178         ]\r
179     },\r
180     {\r
181         "id": "3a1614d2.3eacec",\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": 848.9047431945801,\r
188         "y": 424.83813667297363,\r
189         "z": "6dfe2c1.a0003d4",\r
190         "wires": [\r
191             [\r
192                 "6dc29919.0f2208"\r
193             ]\r
194         ]\r
195     },\r
196     {\r
197         "id": "d5d2d14c.f67aa",\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.333293914795,\r
203         "y": 378.695330619812,\r
204         "z": "6dfe2c1.a0003d4",\r
205         "wires": []\r
206     },\r
207     {\r
208         "id": "95465986.653a28",\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": 635.1190948486328,\r
215         "y": 182.314471244812,\r
216         "z": "6dfe2c1.a0003d4",\r
217         "wires": [\r
218             []\r
219         ]\r
220     },\r
221     {\r
222         "id": "ce6b8a58.b8d3e8",\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": 353.41272735595703,\r
229         "y": 309.5079708099365,\r
230         "z": "6dfe2c1.a0003d4",\r
231         "wires": [\r
232             [\r
233                 "2c8dd484.c334bc",\r
234                 "4388ff9d.ce7d6",\r
235                 "95465986.653a28",\r
236                 "6cdfcbff.124fe4",\r
237                 "4f7127f2.481f58"\r
238             ]\r
239         ]\r
240     },\r
241     {\r
242         "id": "6cdfcbff.124fe4",\r
243         "type": "switchNode",\r
244         "name": "switch input cloud-owner",\r
245         "xml": "<switch test='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`'>\n",\r
246         "comments": "",\r
247         "outputs": 1,\r
248         "x": 635.8333511352539,\r
249         "y": 237.55254077911377,\r
250         "z": "6dfe2c1.a0003d4",\r
251         "wires": [\r
252             [\r
253                 "fbe3ca5c.624b78",\r
254                 "12f9e0f5.d15d1f"\r
255             ]\r
256         ]\r
257     },\r
258     {\r
259         "id": "fbe3ca5c.624b78",\r
260         "type": "other",\r
261         "name": "NULL",\r
262         "xml": "<outcome value=''>\n",\r
263         "comments": "",\r
264         "outputs": 1,\r
265         "x": 819.1667251586914,\r
266         "y": 207.55252933502197,\r
267         "z": "6dfe2c1.a0003d4",\r
268         "wires": [\r
269             [\r
270                 "c50e0e6c.80923"\r
271             ]\r
272         ]\r
273     },\r
274     {\r
275         "id": "12f9e0f5.d15d1f",\r
276         "type": "other",\r
277         "name": "other",\r
278         "xml": "<outcome value='Other'>\n",\r
279         "comments": "",\r
280         "outputs": 1,\r
281         "x": 818.9286308288574,\r
282         "y": 248.5050230026245,\r
283         "z": "6dfe2c1.a0003d4",\r
284         "wires": [\r
285             [\r
286                 "6843bdbc.1eb674"\r
287             ]\r
288         ]\r
289     },\r
290     {\r
291         "id": "c50e0e6c.80923",\r
292         "type": "block",\r
293         "name": "block",\r
294         "xml": "<block>\n",\r
295         "atomic": "false",\r
296         "comments": "",\r
297         "outputs": 1,\r
298         "x": 954.1666793823242,\r
299         "y": 205.88586902618408,\r
300         "z": "6dfe2c1.a0003d4",\r
301         "wires": [\r
302             []\r
303         ]\r
304     },\r
305     {\r
306         "id": "6843bdbc.1eb674",\r
307         "type": "set",\r
308         "name": "set prop.cloud-region.cloud-owner",\r
309         "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`' />\n",\r
310         "comments": "",\r
311         "x": 1035.8333358764648,\r
312         "y": 247.55255031585693,\r
313         "z": "6dfe2c1.a0003d4",\r
314         "wires": []\r
315     },\r
316     {\r
317         "id": "940a3bec.b79db8",\r
318         "type": "call",\r
319         "name": "call self-serve-pnf-assign",\r
320         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-assign' mode='sync' >\n",\r
321         "comments": "",\r
322         "outputs": 1,\r
323         "x": 848.5553359985352,\r
324         "y": 596.4128832817078,\r
325         "z": "6dfe2c1.a0003d4",\r
326         "wires": [\r
327             [\r
328                 "ee11637d.64cc5"\r
329             ]\r
330         ]\r
331     },\r
332     {\r
333         "id": "22ef4f33.3ca9c",\r
334         "type": "returnFailure",\r
335         "name": "return failure",\r
336         "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
337         "comments": "",\r
338         "x": 1232.6267127990723,\r
339         "y": 596.4128336906433,\r
340         "z": "6dfe2c1.a0003d4",\r
341         "wires": []\r
342     },\r
343     {\r
344         "id": "d7499e88.a3c54",\r
345         "type": "comment",\r
346         "name": "SELF-SERVE FORK",\r
347         "info": "",\r
348         "comments": "",\r
349         "x": 758.174690246582,\r
350         "y": 547.6151220798492,\r
351         "z": "6dfe2c1.a0003d4",\r
352         "wires": []\r
353     },\r
354     {\r
355         "id": "ee11637d.64cc5",\r
356         "type": "failure",\r
357         "name": "failure",\r
358         "xml": "<outcome value='failure'>\n",\r
359         "comments": "",\r
360         "outputs": 1,\r
361         "x": 1053.8529167175293,\r
362         "y": 595.9009146690369,\r
363         "z": "6dfe2c1.a0003d4",\r
364         "wires": [\r
365             [\r
366                 "22ef4f33.3ca9c"\r
367             ]\r
368         ]\r
369     },\r
370     {\r
371         "id": "8085154e.65e6a8",\r
372         "type": "returnSuccess",\r
373         "name": "return success",\r
374         "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
375         "comments": "",\r
376         "x": 820.9642715454102,\r
377         "y": 750.5674510002136,\r
378         "z": "6dfe2c1.a0003d4",\r
379         "wires": []\r
380     },\r
381     {\r
382         "id": "4326ce02.3a255",\r
383         "type": "set",\r
384         "name": "set pnf-level-oper-status to PendingCreate",\r
385         "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
386         "comments": "",\r
387         "x": 959.0277328491211,\r
388         "y": 649.15491771698,\r
389         "z": "6dfe2c1.a0003d4",\r
390         "wires": []\r
391     },\r
392     {\r
393         "id": "b05b3263.f3526",\r
394         "type": "execute",\r
395         "name": "printContext",\r
396         "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
397         "comments": "",\r
398         "outputs": 1,\r
399         "x": 810.8689994812012,\r
400         "y": 698.3447003364563,\r
401         "z": "6dfe2c1.a0003d4",\r
402         "wires": [\r
403             []\r
404         ]\r
405     },\r
406     {\r
407         "id": "4f7127f2.481f58",\r
408         "type": "block",\r
409         "name": "block : atomic",\r
410         "xml": "<block atomic=\"true\">",\r
411         "atomic": "true",\r
412         "outputs": 1,\r
413         "x": 599.535530090332,\r
414         "y": 667.8531589508057,\r
415         "z": "6dfe2c1.a0003d4",\r
416         "wires": [\r
417             [\r
418                 "940a3bec.b79db8",\r
419                 "8085154e.65e6a8",\r
420                 "b05b3263.f3526"\r
421             ]\r
422         ]\r
423     }\r
424 ]