a29a716084b5e9e75aa6455d795bc61ed5f5f9a8
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vnf-changeassign.json
1 [
2     {
3         "id": "dc9ceada.747c9",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 79,
8         "y": 59,
9         "z": "ea55fe64.6b3f48",
10         "wires": [
11             [
12                 "6bbe4a7.598cb34"
13             ]
14         ]
15     },
16     {
17         "id": "6bbe4a7.598cb34",
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": 355,
26         "y": 60,
27         "z": "ea55fe64.6b3f48",
28         "wires": [
29             [
30                 "bb95c798.3cf368"
31             ]
32         ]
33     },
34     {
35         "id": "bb95c798.3cf368",
36         "type": "method",
37         "name": "self-serve-vnf-changeassign ",
38         "xml": "<method rpc='self-serve-vnf-changeassign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 672,
42         "y": 60,
43         "z": "ea55fe64.6b3f48",
44         "wires": [
45             [
46                 "72afded.b78132"
47             ]
48         ]
49     },
50     {
51         "id": "72afded.b78132",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 97.5,
59         "y": 142,
60         "z": "ea55fe64.6b3f48",
61         "wires": [
62             [
63                 "7eab9742.528a9",
64                 "c971c45d.67ed58"
65             ]
66         ]
67     },
68     {
69         "id": "7e2d788f.d439a8",
70         "type": "set",
71         "name": "set",
72         "xml": "<set>\n   <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.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='vnf' />\n   <parameter name='ss.capability-action' value='changeassign' />",
73         "comments": "",
74         "x": 1907,
75         "y": 446,
76         "z": "ea55fe64.6b3f48",
77         "wires": []
78     },
79     {
80         "id": "7eab9742.528a9",
81         "type": "switchNode",
82         "name": "switch vnf-input-parameters",
83         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'>\n",
84         "comments": "",
85         "outputs": 1,
86         "x": 340,
87         "y": 185,
88         "z": "ea55fe64.6b3f48",
89         "wires": [
90             [
91                 "b93197e8.d9d048"
92             ]
93         ]
94     },
95     {
96         "id": "b93197e8.d9d048",
97         "type": "outcome",
98         "name": "null",
99         "xml": "<outcome value=''>",
100         "comments": "",
101         "outputs": 1,
102         "x": 570.1428833007812,
103         "y": 184.85714721679688,
104         "z": "ea55fe64.6b3f48",
105         "wires": [
106             [
107                 "589a47b7.bf05e"
108             ]
109         ]
110     },
111     {
112         "id": "589a47b7.bf05e",
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 vnf-request-input\" />\n",
116         "comments": "",
117         "x": 743,
118         "y": 185,
119         "z": "ea55fe64.6b3f48",
120         "wires": []
121     },
122     {
123         "id": "c971c45d.67ed58",
124         "type": "for",
125         "name": "for vnf-input-parameters.param index i",
126         "xml": "<for index='i' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >",
127         "comments": "",
128         "outputs": 1,
129         "x": 367,
130         "y": 309,
131         "z": "ea55fe64.6b3f48",
132         "wires": [
133             [
134                 "a56c6c88.4c89e8"
135             ]
136         ]
137     },
138     {
139         "id": "a56c6c88.4c89e8",
140         "type": "switchNode",
141         "name": "switch service param length null",
142         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length == ''`\">\n\n",
143         "comments": "",
144         "outputs": 1,
145         "x": 670,
146         "y": 310,
147         "z": "ea55fe64.6b3f48",
148         "wires": [
149             [
150                 "34cc20c5.be038"
151             ]
152         ]
153     },
154     {
155         "id": "80ac5f3.6ad6ca",
156         "type": "for",
157         "name": "for service-data.vnf-parameters-data.param index j",
158         "xml": "<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >",
159         "comments": "",
160         "outputs": 1,
161         "x": 1038,
162         "y": 447,
163         "z": "ea55fe64.6b3f48",
164         "wires": [
165             [
166                 "9335b73a.1c0978"
167             ]
168         ]
169     },
170     {
171         "id": "9335b73a.1c0978",
172         "type": "switchNode",
173         "name": "switch match for vnf-name",
174         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$j].name == $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name`'>\n",
175         "comments": "",
176         "outputs": 1,
177         "x": 1369,
178         "y": 447,
179         "z": "ea55fe64.6b3f48",
180         "wires": [
181             [
182                 "94ee529d.b53828"
183             ]
184         ]
185     },
186     {
187         "id": "94ee529d.b53828",
188         "type": "not-found",
189         "name": "true",
190         "xml": "<outcome value='true'>\n",
191         "comments": "",
192         "outputs": 1,
193         "x": 1559,
194         "y": 447,
195         "z": "ea55fe64.6b3f48",
196         "wires": [
197             [
198                 "97f03230.8c76b8"
199             ]
200         ]
201     },
202     {
203         "id": "ad40df27.b42668",
204         "type": "not-found",
205         "name": "false",
206         "xml": "<outcome value='false'>\n",
207         "comments": "",
208         "outputs": 1,
209         "x": 1153,
210         "y": 531,
211         "z": "ea55fe64.6b3f48",
212         "wires": [
213             [
214                 "c7b41da6.be73e"
215             ]
216         ]
217     },
218     {
219         "id": "c7b41da6.be73e",
220         "type": "returnFailure",
221         "name": "return failure",
222         "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",
223         "comments": "",
224         "x": 1349,
225         "y": 531,
226         "z": "ea55fe64.6b3f48",
227         "wires": []
228     },
229     {
230         "id": "97f03230.8c76b8",
231         "type": "block",
232         "name": "block : atomic",
233         "xml": "<block atomic='true'>",
234         "atomic": "true",
235         "comments": "",
236         "outputs": 1,
237         "x": 1714,
238         "y": 445,
239         "z": "ea55fe64.6b3f48",
240         "wires": [
241             [
242                 "7e2d788f.d439a8",
243                 "ada6d713.8fde8",
244                 "8f887c51.38a1b"
245             ]
246         ]
247     },
248     {
249         "id": "ada6d713.8fde8",
250         "type": "call",
251         "name": "call self-serve-generate-name-changeassign",
252         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-generate-name-changeassign' mode='sync' >\n",
253         "comments": "",
254         "outputs": 1,
255         "x": 2018,
256         "y": 515,
257         "z": "ea55fe64.6b3f48",
258         "wires": [
259             [
260                 "e152b55.54f7b48",
261                 "e8deb550.a2fdb"
262             ]
263         ]
264     },
265     {
266         "id": "e152b55.54f7b48",
267         "type": "failure",
268         "name": "failure",
269         "xml": "<outcome value='failure'>\n",
270         "comments": "",
271         "outputs": 1,
272         "x": 2268,
273         "y": 487,
274         "z": "ea55fe64.6b3f48",
275         "wires": [
276             [
277                 "b0b66b18.a254d8"
278             ]
279         ]
280     },
281     {
282         "id": "e8deb550.a2fdb",
283         "type": "failure",
284         "name": "not-found",
285         "xml": "<outcome value='not-found'>\n",
286         "comments": "",
287         "outputs": 1,
288         "x": 2278,
289         "y": 555,
290         "z": "ea55fe64.6b3f48",
291         "wires": [
292             [
293                 "b0b66b18.a254d8"
294             ]
295         ]
296     },
297     {
298         "id": "b0b66b18.a254d8",
299         "type": "returnFailure",
300         "name": "return failure",
301         "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",
302         "comments": "",
303         "x": 2462,
304         "y": 516,
305         "z": "ea55fe64.6b3f48",
306         "wires": []
307     },
308     {
309         "id": "34cc20c5.be038",
310         "type": "other",
311         "name": "false",
312         "xml": "<outcome value='false'>\n",
313         "comments": "",
314         "outputs": 1,
315         "x": 885,
316         "y": 310,
317         "z": "ea55fe64.6b3f48",
318         "wires": [
319             [
320                 "8ae41419.5f27e8"
321             ]
322         ]
323     },
324     {
325         "id": "a74b1481.6af278",
326         "type": "set",
327         "name": "set",
328         "xml": "<set>\n   <parameter name='ss.input.param.found.in.service.param' value='false' />",
329         "comments": "",
330         "x": 895,
331         "y": 388,
332         "z": "ea55fe64.6b3f48",
333         "wires": []
334     },
335     {
336         "id": "d662c9f0.cf7fb",
337         "type": "switchNode",
338         "name": "switch if found vnf_name",
339         "xml": "<switch test='`$ss.input.param.found.in.service.param`'>\n",
340         "comments": "",
341         "outputs": 1,
342         "x": 952,
343         "y": 531,
344         "z": "ea55fe64.6b3f48",
345         "wires": [
346             [
347                 "ad40df27.b42668"
348             ]
349         ]
350     },
351     {
352         "id": "8f887c51.38a1b",
353         "type": "returnSuccess",
354         "name": "return success",
355         "xml": "<return status='success'>\n",
356         "comments": "",
357         "x": 1930,
358         "y": 588,
359         "z": "ea55fe64.6b3f48",
360         "wires": []
361     },
362     {
363         "id": "8ae41419.5f27e8",
364         "type": "block",
365         "name": "block : atomic",
366         "xml": "<block atomic='true'>",
367         "atomic": "true",
368         "comments": "",
369         "outputs": 1,
370         "x": 711,
371         "y": 388,
372         "z": "ea55fe64.6b3f48",
373         "wires": [
374             [
375                 "a74b1481.6af278",
376                 "80ac5f3.6ad6ca",
377                 "d662c9f0.cf7fb"
378             ]
379         ]
380     }
381 ]