self-serve dg patch
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json
1 [
2     {
3         "id": "1c1b1b8c.f22d8c",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 101,
8         "y": 36,
9         "z": "cd15d378.222de8",
10         "wires": [
11             [
12                 "5242feba.24d568"
13             ]
14         ]
15     },
16     {
17         "id": "5242feba.24d568",
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": 377,
26         "y": 37,
27         "z": "cd15d378.222de8",
28         "wires": [
29             [
30                 "d27cbed.05f55c"
31             ]
32         ]
33     },
34     {
35         "id": "d27cbed.05f55c",
36         "type": "method",
37         "name": "self-serve-generate-name-changeassign",
38         "xml": "<method rpc='self-serve-generate-name-changeassign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 773,
42         "y": 36,
43         "z": "cd15d378.222de8",
44         "wires": [
45             [
46                 "5dd94280.59f404"
47             ]
48         ]
49     },
50     {
51         "id": "5dd94280.59f404",
52         "type": "block",
53         "name": "block atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 119.5,
59         "y": 119,
60         "z": "cd15d378.222de8",
61         "wires": [
62             [
63                 "f7b2e52c.493238",
64                 "f8d58ab4.c216e",
65                 "488f44a1.f47cc4"
66             ]
67         ]
68     },
69     {
70         "id": "488f44a1.f47cc4",
71         "type": "switchNode",
72         "name": "switch",
73         "xml": "<switch test='`$ss.capability-type`'>\n\n",
74         "comments": "",
75         "outputs": 1,
76         "x": 365,
77         "y": 450.11114501953125,
78         "z": "cd15d378.222de8",
79         "wires": [
80             [
81                 "2c48172e.c12508",
82                 "33b5a922.c609d6",
83                 "7e07a472.6c934c",
84                 "b86ad187.19dd28"
85             ]
86         ]
87     },
88     {
89         "id": "2c48172e.c12508",
90         "type": "outcome",
91         "name": "vnf",
92         "xml": "<outcome value='vnf'>\n",
93         "comments": "",
94         "outputs": 1,
95         "x": 550,
96         "y": 514,
97         "z": "cd15d378.222de8",
98         "wires": [
99             [
100                 "973953f9.a1f848"
101             ]
102         ]
103     },
104     {
105         "id": "33b5a922.c609d6",
106         "type": "outcome",
107         "name": "vf-module",
108         "xml": "<outcome value='vf-module'>\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 567.4444580078125,
112         "y": 1362.777587890625,
113         "z": "cd15d378.222de8",
114         "wires": [
115             [
116                 "fc92d96a.d71e28"
117             ]
118         ]
119     },
120     {
121         "id": "7e07a472.6c934c",
122         "type": "outcome",
123         "name": "other",
124         "xml": "<outcome value='Other'>\n",
125         "comments": "",
126         "outputs": 1,
127         "x": 538.111083984375,
128         "y": 2089.5556030273438,
129         "z": "cd15d378.222de8",
130         "wires": [
131             [
132                 "6e4fdf25.0d9908"
133             ]
134         ]
135     },
136     {
137         "id": "b86ad187.19dd28",
138         "type": "outcome",
139         "name": "null",
140         "xml": "<outcome value=''>",
141         "comments": "",
142         "outputs": 1,
143         "x": 541.111083984375,
144         "y": 2159.5556030273438,
145         "z": "cd15d378.222de8",
146         "wires": [
147             [
148                 "6e4fdf25.0d9908"
149             ]
150         ]
151     },
152     {
153         "id": "6e4fdf25.0d9908",
154         "type": "returnFailure",
155         "name": "return failure",
156         "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=\"capability-type is not vnf or vf-module\" />\n",
157         "comments": "",
158         "x": 726.111083984375,
159         "y": 2119.5556030273438,
160         "z": "cd15d378.222de8",
161         "wires": []
162     },
163     {
164         "id": "f7b2e52c.493238",
165         "type": "switchNode",
166         "name": "switch",
167         "xml": "<switch test='`$ss.input.param.index`'>\n\n",
168         "comments": "",
169         "outputs": 1,
170         "x": 362,
171         "y": 162,
172         "z": "cd15d378.222de8",
173         "wires": [
174             [
175                 "570568eb.22122"
176             ]
177         ]
178     },
179     {
180         "id": "f8d58ab4.c216e",
181         "type": "switchNode",
182         "name": "switch",
183         "xml": "<switch test='`$ss.service-data.param.index`'>\n\n",
184         "comments": "",
185         "outputs": 1,
186         "x": 364,
187         "y": 235,
188         "z": "cd15d378.222de8",
189         "wires": [
190             [
191                 "b5d6857c.4e6108"
192             ]
193         ]
194     },
195     {
196         "id": "570568eb.22122",
197         "type": "outcome",
198         "name": "null",
199         "xml": "<outcome value=''>",
200         "comments": "",
201         "outputs": 1,
202         "x": 525,
203         "y": 161,
204         "z": "cd15d378.222de8",
205         "wires": [
206             [
207                 "efa9a9cc.1d3f18"
208             ]
209         ]
210     },
211     {
212         "id": "b5d6857c.4e6108",
213         "type": "outcome",
214         "name": "null",
215         "xml": "<outcome value=''>",
216         "comments": "",
217         "outputs": 1,
218         "x": 528,
219         "y": 234,
220         "z": "cd15d378.222de8",
221         "wires": [
222             [
223                 "7c13efe5.43ea88"
224             ]
225         ]
226     },
227     {
228         "id": "efa9a9cc.1d3f18",
229         "type": "returnFailure",
230         "name": "return failure",
231         "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=\"ss.input.param.index is null\" />\n",
232         "comments": "",
233         "x": 714,
234         "y": 161,
235         "z": "cd15d378.222de8",
236         "wires": []
237     },
238     {
239         "id": "7c13efe5.43ea88",
240         "type": "returnFailure",
241         "name": "return failure",
242         "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=\"ss.service-data.param.index is null\" />\n",
243         "comments": "",
244         "x": 715,
245         "y": 234,
246         "z": "cd15d378.222de8",
247         "wires": []
248     },
249     {
250         "id": "776ec9b3.cfe35",
251         "type": "execute",
252         "name": "execute NameGenerationNode-changeassign",
253         "xml": "<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n   <parameter name='payload' value='`$tmp.vnf.changeassign.naming-data-payload`' />\n   <parameter name=\"prifix\" value=\"vnf.changeassign.nameGenResponse\" />\n",
254         "comments": "",
255         "outputs": 1,
256         "x": 839,
257         "y": 829,
258         "z": "cd15d378.222de8",
259         "wires": [
260             [
261                 "ece4186c.66532",
262                 "92f7fa59.72257"
263             ]
264         ]
265     },
266     {
267         "id": "ece4186c.66532",
268         "type": "failure",
269         "name": "failure",
270         "xml": "<outcome value='failure'>\n",
271         "comments": "",
272         "outputs": 1,
273         "x": 1080,
274         "y": 784,
275         "z": "cd15d378.222de8",
276         "wires": [
277             [
278                 "cef19df0.cf597"
279             ]
280         ]
281     },
282     {
283         "id": "92f7fa59.72257",
284         "type": "failure",
285         "name": "not-found",
286         "xml": "<outcome value='not-found'>\n",
287         "comments": "",
288         "outputs": 1,
289         "x": 1085,
290         "y": 882,
291         "z": "cd15d378.222de8",
292         "wires": [
293             [
294                 "cef19df0.cf597"
295             ]
296         ]
297     },
298     {
299         "id": "cef19df0.cf597",
300         "type": "block",
301         "name": "block : atomic",
302         "xml": "<block atomic='true'>",
303         "atomic": "true",
304         "comments": "",
305         "outputs": 1,
306         "x": 1237,
307         "y": 826,
308         "z": "cd15d378.222de8",
309         "wires": [
310             [
311                 "ee51f6c5.2fc7b",
312                 "2868a2e7.19a866"
313             ]
314         ]
315     },
316     {
317         "id": "ee51f6c5.2fc7b",
318         "type": "set",
319         "name": "set status as FAILED",
320         "xml": "<set>\n<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
321         "comments": "",
322         "x": 1438,
323         "y": 774,
324         "z": "cd15d378.222de8",
325         "wires": []
326     },
327     {
328         "id": "2868a2e7.19a866",
329         "type": "returnFailure",
330         "name": "return failure",
331         "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 NameGenerationNode ChangeAssign vnf ' + $error-message`\" />\n",
332         "comments": "",
333         "x": 1424,
334         "y": 883,
335         "z": "cd15d378.222de8",
336         "wires": []
337     },
338     {
339         "id": "973953f9.a1f848",
340         "type": "block",
341         "name": "block : atomic",
342         "xml": "<block atomic='true'>",
343         "atomic": "true",
344         "comments": "",
345         "outputs": 1,
346         "x": 718,
347         "y": 514,
348         "z": "cd15d378.222de8",
349         "wires": [
350             [
351                 "e2385750.976298",
352                 "924870b0.89a2",
353                 "43fb1f27.951ec8",
354                 "776ec9b3.cfe35",
355                 "cdac6275.62c538",
356                 "3d7cf445.7e3e64"
357             ]
358         ]
359     },
360     {
361         "id": "e2385750.976298",
362         "type": "for",
363         "name": "for service-data.vnf-parameters-data.param index i",
364         "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key_length`' >",
365         "comments": "",
366         "outputs": 1,
367         "x": 886,
368         "y": 577,
369         "z": "cd15d378.222de8",
370         "wires": [
371             [
372                 "502bdf23.14a01"
373             ]
374         ]
375     },
376     {
377         "id": "502bdf23.14a01",
378         "type": "switchNode",
379         "name": "switch",
380         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].name`'>\n\n",
381         "comments": "",
382         "outputs": 1,
383         "x": 1042,
384         "y": 639,
385         "z": "cd15d378.222de8",
386         "wires": [
387             [
388                 "a82dd4d8.fa645"
389             ]
390         ]
391     },
392     {
393         "id": "a82dd4d8.fa645",
394         "type": "outcome",
395         "name": "external-key",
396         "xml": "<outcome value='external-key'>\n",
397         "comments": "",
398         "outputs": 1,
399         "x": 1228,
400         "y": 639,
401         "z": "cd15d378.222de8",
402         "wires": [
403             [
404                 "c9562be9.ab781"
405             ]
406         ]
407     },
408     {
409         "id": "c9562be9.ab781",
410         "type": "set",
411         "name": "set tmp.external-key.value",
412         "xml": "<set>\n<parameter name='tmp.external-key.value' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].value`' />\n",
413         "comments": "",
414         "x": 1460,
415         "y": 639,
416         "z": "cd15d378.222de8",
417         "wires": []
418     },
419     {
420         "id": "43fb1f27.951ec8",
421         "type": "set",
422         "name": "set payload data",
423         "xml": "<set>\n<parameter name=\"tmp.vnf.changeassign.naming-data-payload\" value=\"`'{&quot;elements&quot;:[{' + '&quot;resource-name&quot;:&quot;' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].name + '&quot;,&quot;resource-value&quot;:&quot;' + $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].value + '&quot;,&quot;external-key&quot;:&quot;' + $tmp.external-key.value + '&quot;}]}'`\"/>",
424         "comments": "",
425         "x": 775,
426         "y": 763,
427         "z": "cd15d378.222de8",
428         "wires": []
429     },
430     {
431         "id": "924870b0.89a2",
432         "type": "switchNode",
433         "name": "switch",
434         "xml": "<switch test='`$tmp.external-key.value`'>\n\n",
435         "comments": "",
436         "outputs": 1,
437         "x": 746,
438         "y": 706,
439         "z": "cd15d378.222de8",
440         "wires": [
441             [
442                 "a1e3a0cf.8001e8"
443             ]
444         ]
445     },
446     {
447         "id": "a1e3a0cf.8001e8",
448         "type": "outcome",
449         "name": "null",
450         "xml": "<outcome value=''>",
451         "comments": "",
452         "outputs": 1,
453         "x": 899,
454         "y": 705,
455         "z": "cd15d378.222de8",
456         "wires": [
457             [
458                 "8627e3cd.3b77e8"
459             ]
460         ]
461     },
462     {
463         "id": "8627e3cd.3b77e8",
464         "type": "returnFailure",
465         "name": "return failure",
466         "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=\"self-service-generate-name-changeassign error : external-key is null for vnf\" />\n",
467         "comments": "",
468         "x": 1060,
469         "y": 705,
470         "z": "cd15d378.222de8",
471         "wires": []
472     },
473     {
474         "id": "89b0826d.ca14b",
475         "type": "execute",
476         "name": "execute NameGenerationNode-changeassign",
477         "xml": "<execute plugin='org.openecomp.sdnc.prov.namegeneration.node.AssignNameNode' method='process'>\n   <parameter name='payload' value='`$tmp.vf-module.changeassign.naming-data-payload`' />\n   <parameter name=\"prifix\" value=\"vf-module.changeassign.nameGenResponse\" />\n",
478         "comments": "",
479         "outputs": 1,
480         "x": 897.4444580078125,
481         "y": 1678.777587890625,
482         "z": "cd15d378.222de8",
483         "wires": [
484             [
485                 "24cee4e8.4b448c",
486                 "75bedfb3.3ade98"
487             ]
488         ]
489     },
490     {
491         "id": "24cee4e8.4b448c",
492         "type": "failure",
493         "name": "failure",
494         "xml": "<outcome value='failure'>\n",
495         "comments": "",
496         "outputs": 1,
497         "x": 1134.4444580078125,
498         "y": 1632.777587890625,
499         "z": "cd15d378.222de8",
500         "wires": [
501             [
502                 "cb648bfb.cf66d8"
503             ]
504         ]
505     },
506     {
507         "id": "75bedfb3.3ade98",
508         "type": "failure",
509         "name": "not-found",
510         "xml": "<outcome value='not-found'>\n",
511         "comments": "",
512         "outputs": 1,
513         "x": 1140.4444580078125,
514         "y": 1732.777587890625,
515         "z": "cd15d378.222de8",
516         "wires": [
517             [
518                 "cb648bfb.cf66d8"
519             ]
520         ]
521     },
522     {
523         "id": "cb648bfb.cf66d8",
524         "type": "block",
525         "name": "block : atomic",
526         "xml": "<block atomic='true'>",
527         "atomic": "true",
528         "comments": "",
529         "outputs": 1,
530         "x": 1287.4444580078125,
531         "y": 1674.777587890625,
532         "z": "cd15d378.222de8",
533         "wires": [
534             [
535                 "6fbd418e.fb8d9",
536                 "a4b1611a.39c14"
537             ]
538         ]
539     },
540     {
541         "id": "6fbd418e.fb8d9",
542         "type": "set",
543         "name": "set status as FAILED",
544         "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[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
545         "comments": "",
546         "x": 1496.4444580078125,
547         "y": 1623.777587890625,
548         "z": "cd15d378.222de8",
549         "wires": []
550     },
551     {
552         "id": "a4b1611a.39c14",
553         "type": "returnFailure",
554         "name": "return failure",
555         "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 NameGenerationNode ChangeAssign vf-module ' + $error-message`\" />\n",
556         "comments": "",
557         "x": 1482.4444580078125,
558         "y": 1732.777587890625,
559         "z": "cd15d378.222de8",
560         "wires": []
561     },
562     {
563         "id": "fc92d96a.d71e28",
564         "type": "block",
565         "name": "block : atomic",
566         "xml": "<block atomic='true'>",
567         "atomic": "true",
568         "comments": "",
569         "outputs": 1,
570         "x": 776.4444580078125,
571         "y": 1363.777587890625,
572         "z": "cd15d378.222de8",
573         "wires": [
574             [
575                 "c4770fe1.62916",
576                 "dd52b043.a96ef",
577                 "12397850.e2f698",
578                 "89b0826d.ca14b",
579                 "352c4756.0206c8",
580                 "d93b3d94.b2b228"
581             ]
582         ]
583     },
584     {
585         "id": "c4770fe1.62916",
586         "type": "for",
587         "name": "for service-data.vnf-parameters-data.param index i",
588         "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key_length`' >",
589         "comments": "",
590         "outputs": 1,
591         "x": 944.4444580078125,
592         "y": 1426.777587890625,
593         "z": "cd15d378.222de8",
594         "wires": [
595             [
596                 "7c7934f8.f11a6c"
597             ]
598         ]
599     },
600     {
601         "id": "7c7934f8.f11a6c",
602         "type": "switchNode",
603         "name": "switch",
604         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].name`'>\n\n",
605         "comments": "",
606         "outputs": 1,
607         "x": 1098.4444580078125,
608         "y": 1488.777587890625,
609         "z": "cd15d378.222de8",
610         "wires": [
611             [
612                 "c6f3adca.93b718"
613             ]
614         ]
615     },
616     {
617         "id": "c6f3adca.93b718",
618         "type": "outcome",
619         "name": "external-key",
620         "xml": "<outcome value='external-key'>\n",
621         "comments": "",
622         "outputs": 1,
623         "x": 1284.4444580078125,
624         "y": 1488.777587890625,
625         "z": "cd15d378.222de8",
626         "wires": [
627             [
628                 "be8ee91c.01b38"
629             ]
630         ]
631     },
632     {
633         "id": "be8ee91c.01b38",
634         "type": "set",
635         "name": "set tmp.external-key.value",
636         "xml": "<set>\n<parameter name='tmp.external-key.value' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.resource-key[$i].value`' />\n",
637         "comments": "",
638         "x": 1516.4444580078125,
639         "y": 1488.777587890625,
640         "z": "cd15d378.222de8",
641         "wires": []
642     },
643     {
644         "id": "12397850.e2f698",
645         "type": "set",
646         "name": "set payload data",
647         "xml": "<set>\n<parameter name=\"tmp.vf-module.changeassign.naming-data-payload\" value=\"`'{&quot;elements&quot;:[{' + '&quot;resource-name&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].name + '&quot;,&quot;resource-value&quot;:&quot;' + $vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value + '&quot;,&quot;external-key&quot;:&quot;' + $tmp.external-key.value + '&quot;}]}'`\"/>",
648         "comments": "",
649         "x": 833.4444580078125,
650         "y": 1612.777587890625,
651         "z": "cd15d378.222de8",
652         "wires": []
653     },
654     {
655         "id": "dd52b043.a96ef",
656         "type": "switchNode",
657         "name": "switch",
658         "xml": "<switch test='`$tmp.external-key.value`'>\n\n",
659         "comments": "",
660         "outputs": 1,
661         "x": 804.4444580078125,
662         "y": 1555.777587890625,
663         "z": "cd15d378.222de8",
664         "wires": [
665             [
666                 "e401bf03.ed02a8"
667             ]
668         ]
669     },
670     {
671         "id": "e401bf03.ed02a8",
672         "type": "outcome",
673         "name": "null",
674         "xml": "<outcome value=''>",
675         "comments": "",
676         "outputs": 1,
677         "x": 957.4444580078125,
678         "y": 1554.777587890625,
679         "z": "cd15d378.222de8",
680         "wires": [
681             [
682                 "1bd8e3a8.c533b4"
683             ]
684         ]
685     },
686     {
687         "id": "1bd8e3a8.c533b4",
688         "type": "returnFailure",
689         "name": "return failure",
690         "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=\"self-service-generate-name-changeassign error : external-key is null for vf-module\" />\n",
691         "comments": "",
692         "x": 1118.4444580078125,
693         "y": 1554.777587890625,
694         "z": "cd15d378.222de8",
695         "wires": []
696     },
697     {
698         "id": "c22afee4.bb0e98",
699         "type": "failure",
700         "name": "failure",
701         "xml": "<outcome value='failure'>\n",
702         "comments": "",
703         "outputs": 1,
704         "x": 890.9999389648438,
705         "y": 948.8888549804688,
706         "z": "cd15d378.222de8",
707         "wires": [
708             [
709                 "d52d5d8a.20fc58"
710             ]
711         ]
712     },
713     {
714         "id": "d52d5d8a.20fc58",
715         "type": "block",
716         "name": "block : atomic",
717         "xml": "<block atomic='true'>",
718         "atomic": "true",
719         "comments": "",
720         "outputs": 1,
721         "x": 1056.5556640625,
722         "y": 993.4444427490234,
723         "z": "cd15d378.222de8",
724         "wires": [
725             [
726                 "85e49276.168cd",
727                 "f60bf43e.3a4bd8"
728             ]
729         ]
730     },
731     {
732         "id": "85e49276.168cd",
733         "type": "set",
734         "name": "set status as FAILED",
735         "xml": "<set>\n\t<parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
736         "comments": "",
737         "x": 1266,
738         "y": 949,
739         "z": "cd15d378.222de8",
740         "wires": []
741     },
742     {
743         "id": "f60bf43e.3a4bd8",
744         "type": "returnFailure",
745         "name": "return failure",
746         "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 update generic-vnf.vnf-name to ' + $ss.changeassign.vnf-name + ' in AnAI'`\" />\n",
747         "comments": "",
748         "x": 1254,
749         "y": 1037,
750         "z": "cd15d378.222de8",
751         "wires": []
752     },
753     {
754         "id": "3d7cf445.7e3e64",
755         "type": "set",
756         "name": "set success",
757         "xml": "<set>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].value`' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].value`'/>\n\t <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.service-data.param.index].resource-resolution-data.status`' value='SUCCESS' />",
758         "comments": "",
759         "x": 688.1111450195312,
760         "y": 1077.8888549804688,
761         "z": "cd15d378.222de8",
762         "wires": []
763     },
764     {
765         "id": "296de1b7.0fd81e",
766         "type": "failure",
767         "name": "failure",
768         "xml": "<outcome value='failure'>\n",
769         "comments": "",
770         "outputs": 1,
771         "x": 959.111083984375,
772         "y": 1804.1109008789062,
773         "z": "cd15d378.222de8",
774         "wires": [
775             [
776                 "1a47636d.f18615"
777             ]
778         ]
779     },
780     {
781         "id": "1a47636d.f18615",
782         "type": "block",
783         "name": "block : atomic",
784         "xml": "<block atomic='true'>",
785         "atomic": "true",
786         "comments": "",
787         "outputs": 1,
788         "x": 1122.4444580078125,
789         "y": 1839.777587890625,
790         "z": "cd15d378.222de8",
791         "wires": [
792             [
793                 "13f096ae.130bd9",
794                 "446f10ad.05f988"
795             ]
796         ]
797     },
798     {
799         "id": "13f096ae.130bd9",
800         "type": "set",
801         "name": "set status as FAILED",
802         "xml": "<set>\n\t<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[$ss.service-data.param.index].resource-resolution-data.status`' value='FAILED' />",
803         "comments": "",
804         "x": 1337.4444580078125,
805         "y": 1799.777587890625,
806         "z": "cd15d378.222de8",
807         "wires": []
808     },
809     {
810         "id": "446f10ad.05f988",
811         "type": "returnFailure",
812         "name": "return failure",
813         "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 update vf-module.vf-module-name to ' + $ss.changeassign.vf-module-name + ' in AnAI'`\" />\n",
814         "comments": "",
815         "x": 1325.4444580078125,
816         "y": 1887.777587890625,
817         "z": "cd15d378.222de8",
818         "wires": []
819     },
820     {
821         "id": "d93b3d94.b2b228",
822         "type": "set",
823         "name": "set success",
824         "xml": "<set>\n\t <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[$ss.service-data.param.index].value`' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value`'/>\n\t <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[$ss.service-data.param.index].resource-resolution-data.status`' value='SUCCESS' />",
825         "comments": "",
826         "x": 788.4444580078125,
827         "y": 1929.777587890625,
828         "z": "cd15d378.222de8",
829         "wires": []
830     },
831     {
832         "id": "ef964ca0.407bf8",
833         "type": "comment",
834         "name": "For VNF genname changeassign",
835         "info": "",
836         "comments": "",
837         "x": 632.2222290039062,
838         "y": 450.2222595214844,
839         "z": "cd15d378.222de8",
840         "wires": []
841     },
842     {
843         "id": "2ef4734c.fa35c4",
844         "type": "comment",
845         "name": "For VF-MODULE genname changeassign",
846         "info": "",
847         "comments": "",
848         "x": 667.7777709960938,
849         "y": 1272.444580078125,
850         "z": "cd15d378.222de8",
851         "wires": []
852     },
853     {
854         "id": "cdac6275.62c538",
855         "type": "save",
856         "name": "update generic-vnf",
857         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id =  $service-data.vnfs.vnf[$vnf-index].vnf-id \" >\n<parameter name=\"vnf-name\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$ss.input.param.index].value`' />\n\n",
858         "comments": "",
859         "outputs": 1,
860         "x": 712.22216796875,
861         "y": 990.2222900390625,
862         "z": "cd15d378.222de8",
863         "wires": [
864             [
865                 "c22afee4.bb0e98",
866                 "5fc85d40.547644"
867             ]
868         ]
869     },
870     {
871         "id": "352c4756.0206c8",
872         "type": "save",
873         "name": "update vf-module",
874         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id AND vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id \" > \n<parameter name=\"vf-module-name\" value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$ss.input.param.index].value`' />\n",
875         "comments": "",
876         "outputs": 1,
877         "x": 790,
878         "y": 1840.2222900390625,
879         "z": "cd15d378.222de8",
880         "wires": [
881             [
882                 "296de1b7.0fd81e",
883                 "ba968b2c.2f6978"
884             ]
885         ]
886     },
887     {
888         "id": "ba968b2c.2f6978",
889         "type": "not-found",
890         "name": "not-found",
891         "xml": "<outcome value='not-found'>\n",
892         "comments": "",
893         "outputs": 1,
894         "x": 956.6666870117188,
895         "y": 1890.2219848632812,
896         "z": "cd15d378.222de8",
897         "wires": [
898             [
899                 "1a47636d.f18615"
900             ]
901         ]
902     },
903     {
904         "id": "5fc85d40.547644",
905         "type": "not-found",
906         "name": "not-found",
907         "xml": "<outcome value='not-found'>\n",
908         "comments": "",
909         "outputs": 1,
910         "x": 894.4445190429688,
911         "y": 1039.1111450195312,
912         "z": "cd15d378.222de8",
913         "wires": [
914             [
915                 "d52d5d8a.20fc58"
916             ]
917         ]
918     }
919 ]