Merge "self-serve DG for Casablanca"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vfmodule-changeassign.json
1 [
2     {
3         "id": "22eab388.16eaf4",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 261.25,
8         "y": 35,
9         "z": "46b207bc.3f592",
10         "wires": [
11             [
12                 "94105a8.3e56d28"
13             ]
14         ]
15     },
16     {
17         "id": "94105a8.3e56d28",
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": 537.25,
26         "y": 36,
27         "z": "46b207bc.3f592",
28         "wires": [
29             [
30                 "31e05f30.9bc35"
31             ]
32         ]
33     },
34     {
35         "id": "31e05f30.9bc35",
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": 870.25,
42         "y": 37,
43         "z": "46b207bc.3f592",
44         "wires": [
45             [
46                 "ee5ed489.b65008"
47             ]
48         ]
49     },
50     {
51         "id": "ee5ed489.b65008",
52         "type": "block",
53         "name": "block atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 279.75,
59         "y": 118,
60         "z": "46b207bc.3f592",
61         "wires": [
62             [
63                 "95b7958e.623f",
64                 "da8442bf.f537b"
65             ]
66         ]
67     },
68     {
69         "id": "42b47e59.9697a8",
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`' />",
73         "comments": "",
74         "x": 1496.25,
75         "y": 536,
76         "z": "46b207bc.3f592",
77         "wires": []
78     },
79     {
80         "id": "95b7958e.623f",
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": 522.25,
87         "y": 161,
88         "z": "46b207bc.3f592",
89         "wires": [
90             [
91                 "18fa94ab.fe4b7b"
92             ]
93         ]
94     },
95     {
96         "id": "18fa94ab.fe4b7b",
97         "type": "outcome",
98         "name": "null",
99         "xml": "<outcome value=''>",
100         "comments": "",
101         "outputs": 1,
102         "x": 752.3928833007812,
103         "y": 160.85714721679688,
104         "z": "46b207bc.3f592",
105         "wires": [
106             [
107                 "bf2bc904.dd0a38"
108             ]
109         ]
110     },
111     {
112         "id": "bf2bc904.dd0a38",
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": 925.25,
118         "y": 161,
119         "z": "46b207bc.3f592",
120         "wires": []
121     },
122     {
123         "id": "da8442bf.f537b",
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": 555.25,
130         "y": 230,
131         "z": "46b207bc.3f592",
132         "wires": [
133             [
134                 "977e46f6.877358"
135             ]
136         ]
137     },
138     {
139         "id": "977e46f6.877358",
140         "type": "block",
141         "name": "block : atomic",
142         "xml": "<block atomic='true'>",
143         "atomic": "true",
144         "comments": "",
145         "outputs": 1,
146         "x": 793.25,
147         "y": 285,
148         "z": "46b207bc.3f592",
149         "wires": [
150             [
151                 "201c0f41.e053b8"
152             ]
153         ]
154     },
155     {
156         "id": "201c0f41.e053b8",
157         "type": "switchNode",
158         "name": "switch",
159         "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",
160         "comments": "",
161         "outputs": 1,
162         "x": 964.25,
163         "y": 285,
164         "z": "46b207bc.3f592",
165         "wires": [
166             [
167                 "108e76a3.9cd481"
168             ]
169         ]
170     },
171     {
172         "id": "108e76a3.9cd481",
173         "type": "other",
174         "name": "other",
175         "xml": "<outcome value='Other'>\n",
176         "comments": "",
177         "outputs": 1,
178         "x": 712.25,
179         "y": 369,
180         "z": "46b207bc.3f592",
181         "wires": [
182             [
183                 "4d1767d8.2a9c3"
184             ]
185         ]
186     },
187     {
188         "id": "4d1767d8.2a9c3",
189         "type": "for",
190         "name": "for service-data.vnf-parameters-data.param index j",
191         "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`' >",
192         "comments": "",
193         "outputs": 1,
194         "x": 1004.25,
195         "y": 369,
196         "z": "46b207bc.3f592",
197         "wires": [
198             [
199                 "8891bef1.8502d"
200             ]
201         ]
202     },
203     {
204         "id": "8891bef1.8502d",
205         "type": "switchNode",
206         "name": "switch input vnf-name",
207         "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",
208         "comments": "",
209         "outputs": 1,
210         "x": 947.25,
211         "y": 463,
212         "z": "46b207bc.3f592",
213         "wires": [
214             [
215                 "5274d8ce.a623c",
216                 "654491e7.62d698"
217             ]
218         ]
219     },
220     {
221         "id": "654491e7.62d698",
222         "type": "not-found",
223         "name": "true",
224         "xml": "<outcome value='true'>\n",
225         "comments": "",
226         "outputs": 1,
227         "x": 1160.25,
228         "y": 536,
229         "z": "46b207bc.3f592",
230         "wires": [
231             [
232                 "4262d0f1.813fb"
233             ]
234         ]
235     },
236     {
237         "id": "5274d8ce.a623c",
238         "type": "not-found",
239         "name": "false",
240         "xml": "<outcome value='false'>\n",
241         "comments": "",
242         "outputs": 1,
243         "x": 1168.25,
244         "y": 418,
245         "z": "46b207bc.3f592",
246         "wires": [
247             [
248                 "ff6ddcf3.7baac8"
249             ]
250         ]
251     },
252     {
253         "id": "ff6ddcf3.7baac8",
254         "type": "returnFailure",
255         "name": "return failure",
256         "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",
257         "comments": "",
258         "x": 1373.25,
259         "y": 417,
260         "z": "46b207bc.3f592",
261         "wires": []
262     },
263     {
264         "id": "4262d0f1.813fb",
265         "type": "block",
266         "name": "block : atomic",
267         "xml": "<block atomic='true'>",
268         "atomic": "true",
269         "comments": "",
270         "outputs": 1,
271         "x": 1321.25,
272         "y": 535,
273         "z": "46b207bc.3f592",
274         "wires": [
275             [
276                 "42b47e59.9697a8",
277                 "bd5eede2.612be8"
278             ]
279         ]
280     },
281     {
282         "id": "bd5eede2.612be8",
283         "type": "call",
284         "name": "call self-serve-generate-name-changeassign",
285         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-generate-name-changeassign' mode='sync' >\n",
286         "comments": "",
287         "outputs": 1,
288         "x": 1613.25,
289         "y": 612,
290         "z": "46b207bc.3f592",
291         "wires": [
292             [
293                 "4bb46cb.5d8d914",
294                 "566ddacf.c229b4"
295             ]
296         ]
297     },
298     {
299         "id": "4bb46cb.5d8d914",
300         "type": "failure",
301         "name": "failure",
302         "xml": "<outcome value='failure'>\n",
303         "comments": "",
304         "outputs": 1,
305         "x": 1863.25,
306         "y": 584,
307         "z": "46b207bc.3f592",
308         "wires": [
309             [
310                 "b50ec2c9.740af8"
311             ]
312         ]
313     },
314     {
315         "id": "566ddacf.c229b4",
316         "type": "failure",
317         "name": "not-found",
318         "xml": "<outcome value='not-found'>\n",
319         "comments": "",
320         "outputs": 1,
321         "x": 1873.25,
322         "y": 652,
323         "z": "46b207bc.3f592",
324         "wires": [
325             [
326                 "b50ec2c9.740af8"
327             ]
328         ]
329     },
330     {
331         "id": "b50ec2c9.740af8",
332         "type": "returnFailure",
333         "name": "return failure",
334         "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",
335         "comments": "",
336         "x": 2062.25,
337         "y": 583,
338         "z": "46b207bc.3f592",
339         "wires": []
340     }
341 ]