self-serve DG for Casablanca
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vnf-changeassign.json
1 [
2     {
3         "id": "57248231.a7bfcc",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 108.75,
8         "y": 47.5,
9         "z": "484e90dc.3bd078",
10         "wires": [
11             [
12                 "1d542904.ad727f"
13             ]
14         ]
15     },
16     {
17         "id": "1d542904.ad727f",
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": 384.75,
26         "y": 48.5,
27         "z": "484e90dc.3bd078",
28         "wires": [
29             [
30                 "e103515d.6bcd18"
31             ]
32         ]
33     },
34     {
35         "id": "e103515d.6bcd18",
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": 701.75,
42         "y": 48.5,
43         "z": "484e90dc.3bd078",
44         "wires": [
45             [
46                 "42a27363.ddaeac"
47             ]
48         ]
49     },
50     {
51         "id": "42a27363.ddaeac",
52         "type": "block",
53         "name": "block atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 127.25,
59         "y": 130.5,
60         "z": "484e90dc.3bd078",
61         "wires": [
62             [
63                 "1c0659a3.13cfde",
64                 "ec3506ba.e14a98"
65             ]
66         ]
67     },
68     {
69         "id": "30d6be53.aefb4a",
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`' />",
73         "comments": "",
74         "x": 1343.75,
75         "y": 548.5,
76         "z": "484e90dc.3bd078",
77         "wires": []
78     },
79     {
80         "id": "1c0659a3.13cfde",
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": 369.75,
87         "y": 173.5,
88         "z": "484e90dc.3bd078",
89         "wires": [
90             [
91                 "8a1cd82.5d583a8"
92             ]
93         ]
94     },
95     {
96         "id": "8a1cd82.5d583a8",
97         "type": "outcome",
98         "name": "null",
99         "xml": "<outcome value=''>",
100         "comments": "",
101         "outputs": 1,
102         "x": 599.8928833007812,
103         "y": 173.35714721679688,
104         "z": "484e90dc.3bd078",
105         "wires": [
106             [
107                 "37bbdbba.52315c"
108             ]
109         ]
110     },
111     {
112         "id": "37bbdbba.52315c",
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": 772.75,
118         "y": 173.5,
119         "z": "484e90dc.3bd078",
120         "wires": []
121     },
122     {
123         "id": "ec3506ba.e14a98",
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": 396.75,
130         "y": 297.5,
131         "z": "484e90dc.3bd078",
132         "wires": [
133             [
134                 "14eea10b.aad3ff"
135             ]
136         ]
137     },
138     {
139         "id": "14eea10b.aad3ff",
140         "type": "block",
141         "name": "block : atomic",
142         "xml": "<block atomic='true'>",
143         "atomic": "true",
144         "comments": "",
145         "outputs": 1,
146         "x": 640.75,
147         "y": 297.5,
148         "z": "484e90dc.3bd078",
149         "wires": [
150             [
151                 "ca4e5f29.4175a8"
152             ]
153         ]
154     },
155     {
156         "id": "ca4e5f29.4175a8",
157         "type": "switchNode",
158         "name": "switch",
159         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`'>\n\n",
160         "comments": "",
161         "outputs": 1,
162         "x": 811.75,
163         "y": 297.5,
164         "z": "484e90dc.3bd078",
165         "wires": [
166             [
167                 "3da72d90.fc11a2"
168             ]
169         ]
170     },
171     {
172         "id": "3da72d90.fc11a2",
173         "type": "other",
174         "name": "other",
175         "xml": "<outcome value='Other'>\n",
176         "comments": "",
177         "outputs": 1,
178         "x": 559.75,
179         "y": 381.5,
180         "z": "484e90dc.3bd078",
181         "wires": [
182             [
183                 "c490ce0.767473"
184             ]
185         ]
186     },
187     {
188         "id": "c490ce0.767473",
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.vnf-topology.vnf-parameters-data.param_length`' >",
192         "comments": "",
193         "outputs": 1,
194         "x": 851.75,
195         "y": 381.5,
196         "z": "484e90dc.3bd078",
197         "wires": [
198             [
199                 "1937b752.ee7f01"
200             ]
201         ]
202     },
203     {
204         "id": "1937b752.ee7f01",
205         "type": "switchNode",
206         "name": "switch input vnf-name",
207         "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",
208         "comments": "",
209         "outputs": 1,
210         "x": 794.75,
211         "y": 475.5,
212         "z": "484e90dc.3bd078",
213         "wires": [
214             [
215                 "c29b5f3e.26a9e",
216                 "7e31cc58.38af8c"
217             ]
218         ]
219     },
220     {
221         "id": "7e31cc58.38af8c",
222         "type": "not-found",
223         "name": "true",
224         "xml": "<outcome value='true'>\n",
225         "comments": "",
226         "outputs": 1,
227         "x": 1007.75,
228         "y": 548.5,
229         "z": "484e90dc.3bd078",
230         "wires": [
231             [
232                 "380d4f5a.84c61"
233             ]
234         ]
235     },
236     {
237         "id": "c29b5f3e.26a9e",
238         "type": "not-found",
239         "name": "false",
240         "xml": "<outcome value='false'>\n",
241         "comments": "",
242         "outputs": 1,
243         "x": 1015.75,
244         "y": 430.5,
245         "z": "484e90dc.3bd078",
246         "wires": [
247             [
248                 "97ff5a7e.916158"
249             ]
250         ]
251     },
252     {
253         "id": "97ff5a7e.916158",
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": 1220.75,
259         "y": 429.5,
260         "z": "484e90dc.3bd078",
261         "wires": []
262     },
263     {
264         "id": "380d4f5a.84c61",
265         "type": "block",
266         "name": "block : atomic",
267         "xml": "<block atomic='true'>",
268         "atomic": "true",
269         "comments": "",
270         "outputs": 1,
271         "x": 1168.75,
272         "y": 547.5,
273         "z": "484e90dc.3bd078",
274         "wires": [
275             [
276                 "30d6be53.aefb4a",
277                 "e0135d7c.04a028"
278             ]
279         ]
280     },
281     {
282         "id": "e0135d7c.04a028",
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": 1460.75,
289         "y": 624.5,
290         "z": "484e90dc.3bd078",
291         "wires": [
292             [
293                 "f8df579c.55d728",
294                 "5a6cefeb.f45dc"
295             ]
296         ]
297     },
298     {
299         "id": "f8df579c.55d728",
300         "type": "failure",
301         "name": "failure",
302         "xml": "<outcome value='failure'>\n",
303         "comments": "",
304         "outputs": 1,
305         "x": 1710.75,
306         "y": 596.5,
307         "z": "484e90dc.3bd078",
308         "wires": [
309             [
310                 "11426210.f443de"
311             ]
312         ]
313     },
314     {
315         "id": "5a6cefeb.f45dc",
316         "type": "failure",
317         "name": "not-found",
318         "xml": "<outcome value='not-found'>\n",
319         "comments": "",
320         "outputs": 1,
321         "x": 1720.75,
322         "y": 664.5,
323         "z": "484e90dc.3bd078",
324         "wires": [
325             [
326                 "11426210.f443de"
327             ]
328         ]
329     },
330     {
331         "id": "11426210.f443de",
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": 1909.75,
337         "y": 595.5,
338         "z": "484e90dc.3bd078",
339         "wires": []
340     }
341 ]