Remove duplicate staging
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vfmodule-changeassign.json
1 [
2     {
3         "id": "f70303c0.672d3",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 104,
8         "y": 45,
9         "z": "726449b2.4963",
10         "wires": [
11             [
12                 "b30ec3af.cbe5d"
13             ]
14         ]
15     },
16     {
17         "id": "b30ec3af.cbe5d",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
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}'>",
24         "outputs": 1,
25         "x": 380,
26         "y": 46,
27         "z": "726449b2.4963",
28         "wires": [
29             [
30                 "dd0487fb.01a09"
31             ]
32         ]
33     },
34     {
35         "id": "dd0487fb.01a09",
36         "type": "method",
37         "name": "self-serve-vfmodule-changeassign ",
38         "xml": "<method rpc='self-serve-vfmodule-changeassign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 713,
42         "y": 47,
43         "z": "726449b2.4963",
44         "wires": [
45             [
46                 "ced5c4eb.661a9"
47             ]
48         ]
49     },
50     {
51         "id": "ced5c4eb.661a9",
52         "type": "block",
53         "name": "block atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 122.5,
59         "y": 128,
60         "z": "726449b2.4963",
61         "wires": [
62             [
63                 "ae1af1b3.fcf59",
64                 "e4e58c8c.cef7c8"
65             ]
66         ]
67     },
68     {
69         "id": "f3250dd4.8f7b3",
70         "type": "set",
71         "name": "set",
72         "xml": "<set>\n   <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$j].resource-resolution-data.status`' value='PENDING'/>\n   <parameter name='ss.input.param.index' value='`$i`' />\n   <parameter name='ss.service-data.param.index' value='`$j`' />\n   <parameter name='ss.input.param.found.in.service.param' value='true' />\n   <parameter name='ss.capability-type' value='vf-module' />\n   <parameter name='ss.capability-action' value='changeassign' />",
73         "comments": "",
74         "x": 2051,
75         "y": 395,
76         "z": "726449b2.4963",
77         "wires": []
78     },
79     {
80         "id": "ae1af1b3.fcf59",
81         "type": "switchNode",
82         "name": "switch vf-module-input-parameters",
83         "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`'>\n",
84         "comments": "",
85         "outputs": 1,
86         "x": 365,
87         "y": 171,
88         "z": "726449b2.4963",
89         "wires": [
90             [
91                 "85ade545.2ec22"
92             ]
93         ]
94     },
95     {
96         "id": "85ade545.2ec22",
97         "type": "outcome",
98         "name": "null",
99         "xml": "<outcome value=''>",
100         "comments": "",
101         "outputs": 1,
102         "x": 595.1428833007812,
103         "y": 170.85714721679688,
104         "z": "726449b2.4963",
105         "wires": [
106             [
107                 "4c3d2e9.5bda2d"
108             ]
109         ]
110     },
111     {
112         "id": "4c3d2e9.5bda2d",
113         "type": "returnFailure",
114         "name": "return failure",
115         "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 param name/value provided in vf-module-request-input\" />\n",
116         "comments": "",
117         "x": 768,
118         "y": 171,
119         "z": "726449b2.4963",
120         "wires": []
121     },
122     {
123         "id": "e4e58c8c.cef7c8",
124         "type": "for",
125         "name": "for vf-module-input-parameters.param index i",
126         "xml": "<for index='i' start='0' end='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`' >",
127         "comments": "",
128         "outputs": 1,
129         "x": 398,
130         "y": 240,
131         "z": "726449b2.4963",
132         "wires": [
133             [
134                 "142575c6.6caafa"
135             ]
136         ]
137     },
138     {
139         "id": "142575c6.6caafa",
140         "type": "switchNode",
141         "name": "switch service param length null",
142         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length == ''`\">\n\n",
143         "comments": "",
144         "outputs": 1,
145         "x": 754,
146         "y": 241,
147         "z": "726449b2.4963",
148         "wires": [
149             [
150                 "6ebd9074.f07218"
151             ]
152         ]
153     },
154     {
155         "id": "6ebd9074.f07218",
156         "type": "other",
157         "name": "false",
158         "xml": "<outcome value='false'>\n",
159         "comments": "",
160         "outputs": 1,
161         "x": 988,
162         "y": 240,
163         "z": "726449b2.4963",
164         "wires": [
165             [
166                 "e0ed93ed.b2b8b"
167             ]
168         ]
169     },
170     {
171         "id": "590e174a.65d8a",
172         "type": "for",
173         "name": "for service-data.vnf-parameters-data.param index j",
174         "xml": "<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >",
175         "comments": "",
176         "outputs": 1,
177         "x": 1162,
178         "y": 394,
179         "z": "726449b2.4963",
180         "wires": [
181             [
182                 "ac5e4634.0b2448"
183             ]
184         ]
185     },
186     {
187         "id": "ac5e4634.0b2448",
188         "type": "switchNode",
189         "name": "switch match for vnf-name",
190         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$j].name == $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name`'>\n",
191         "comments": "",
192         "outputs": 1,
193         "x": 1503,
194         "y": 395,
195         "z": "726449b2.4963",
196         "wires": [
197             [
198                 "f7d97b3d.e60038"
199             ]
200         ]
201     },
202     {
203         "id": "f7d97b3d.e60038",
204         "type": "not-found",
205         "name": "true",
206         "xml": "<outcome value='true'>\n",
207         "comments": "",
208         "outputs": 1,
209         "x": 1698,
210         "y": 394,
211         "z": "726449b2.4963",
212         "wires": [
213             [
214                 "deae5a01.337f58"
215             ]
216         ]
217     },
218     {
219         "id": "e69f3b51.b837b8",
220         "type": "not-found",
221         "name": "false",
222         "xml": "<outcome value='false'>\n",
223         "comments": "",
224         "outputs": 1,
225         "x": 1301,
226         "y": 473,
227         "z": "726449b2.4963",
228         "wires": [
229             [
230                 "c754e2e.93a8ba"
231             ]
232         ]
233     },
234     {
235         "id": "c754e2e.93a8ba",
236         "type": "returnFailure",
237         "name": "return failure",
238         "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 param with param[].name = ' +  $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name + ' found in service-data.'`\" />\n",
239         "comments": "",
240         "x": 1450,
241         "y": 472,
242         "z": "726449b2.4963",
243         "wires": []
244     },
245     {
246         "id": "deae5a01.337f58",
247         "type": "block",
248         "name": "block : atomic",
249         "xml": "<block atomic='true'>",
250         "atomic": "true",
251         "comments": "",
252         "outputs": 1,
253         "x": 1854,
254         "y": 395,
255         "z": "726449b2.4963",
256         "wires": [
257             [
258                 "f3250dd4.8f7b3",
259                 "c0d5c4ec.a72a3",
260                 "3af469f6.38cc1e"
261             ]
262         ]
263     },
264     {
265         "id": "c0d5c4ec.a72a3",
266         "type": "call",
267         "name": "call self-serve-generate-name-changeassign",
268         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-generate-name-changeassign' mode='sync' >\n",
269         "comments": "",
270         "outputs": 1,
271         "x": 2160,
272         "y": 458,
273         "z": "726449b2.4963",
274         "wires": [
275             [
276                 "e0b4c040.c1636",
277                 "a668b860.256a88"
278             ]
279         ]
280     },
281     {
282         "id": "e0b4c040.c1636",
283         "type": "failure",
284         "name": "failure",
285         "xml": "<outcome value='failure'>\n",
286         "comments": "",
287         "outputs": 1,
288         "x": 2436,
289         "y": 422,
290         "z": "726449b2.4963",
291         "wires": [
292             [
293                 "e7042dd5.9e899"
294             ]
295         ]
296     },
297     {
298         "id": "a668b860.256a88",
299         "type": "failure",
300         "name": "not-found",
301         "xml": "<outcome value='not-found'>\n",
302         "comments": "",
303         "outputs": 1,
304         "x": 2438,
305         "y": 490,
306         "z": "726449b2.4963",
307         "wires": [
308             [
309                 "e7042dd5.9e899"
310             ]
311         ]
312     },
313     {
314         "id": "e7042dd5.9e899",
315         "type": "returnFailure",
316         "name": "return failure",
317         "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 from self-service-generate-name-changeassign\" />\n",
318         "comments": "",
319         "x": 2626,
320         "y": 452,
321         "z": "726449b2.4963",
322         "wires": []
323     },
324     {
325         "id": "e0ed93ed.b2b8b",
326         "type": "block",
327         "name": "block : atomic",
328         "xml": "<block atomic='true'>",
329         "atomic": "true",
330         "comments": "",
331         "outputs": 1,
332         "x": 838,
333         "y": 313,
334         "z": "726449b2.4963",
335         "wires": [
336             [
337                 "12c4ca5c.0c4496",
338                 "590e174a.65d8a",
339                 "d31f5e36.31a7c8"
340             ]
341         ]
342     },
343     {
344         "id": "12c4ca5c.0c4496",
345         "type": "set",
346         "name": "set",
347         "xml": "<set>\n   <parameter name='ss.input.param.found.in.service.param' value='false' />",
348         "comments": "",
349         "x": 1029,
350         "y": 313,
351         "z": "726449b2.4963",
352         "wires": []
353     },
354     {
355         "id": "3af469f6.38cc1e",
356         "type": "returnSuccess",
357         "name": "return success",
358         "xml": "<return status='success'>\n",
359         "comments": "",
360         "x": 2081,
361         "y": 535,
362         "z": "726449b2.4963",
363         "wires": []
364     },
365     {
366         "id": "d31f5e36.31a7c8",
367         "type": "switchNode",
368         "name": "switch if found vnf_name",
369         "xml": "<switch test='`$ss.input.param.found.in.service.param`'>\n",
370         "comments": "",
371         "outputs": 1,
372         "x": 1081,
373         "y": 473,
374         "z": "726449b2.4963",
375         "wires": [
376             [
377                 "e69f3b51.b837b8"
378             ]
379         ]
380     }
381 ]