self-serve DG for Casablanca
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-generate-name-changeassign.json
1 [
2     {
3         "id": "72ace04a.7be558",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 103.75,
8         "y": 43.75,
9         "z": "8e64cd0a.c97ea8",
10         "wires": [
11             [
12                 "4683e336.13fbec"
13             ]
14         ]
15     },
16     {
17         "id": "4683e336.13fbec",
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": 379.75,
26         "y": 44.75,
27         "z": "8e64cd0a.c97ea8",
28         "wires": [
29             [
30                 "1e499485.148aab"
31             ]
32         ]
33     },
34     {
35         "id": "1e499485.148aab",
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": 775.75,
42         "y": 43.75,
43         "z": "8e64cd0a.c97ea8",
44         "wires": [
45             [
46                 "fce9c766.afb09"
47             ]
48         ]
49     },
50     {
51         "id": "fce9c766.afb09",
52         "type": "block",
53         "name": "block atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 122.25,
59         "y": 126.75,
60         "z": "8e64cd0a.c97ea8",
61         "wires": [
62             [
63                 "96c99a94.2dd13",
64                 "d2f322ed.7ab698",
65                 "a1151215.a41af8"
66             ]
67         ]
68     },
69     {
70         "id": "a1151215.a41af8",
71         "type": "switchNode",
72         "name": "switch",
73         "xml": "<switch test='`$ss.capability-type`'>\n\n",
74         "comments": "",
75         "outputs": 1,
76         "x": 367.75,
77         "y": 457.86114501953125,
78         "z": "8e64cd0a.c97ea8",
79         "wires": [
80             [
81                 "2d8e8b63.2be73c",
82                 "8641945a.85d85",
83                 "87d6f1d6.fde57",
84                 "b49433f5.4f0a18"
85             ]
86         ]
87     },
88     {
89         "id": "2d8e8b63.2be73c",
90         "type": "outcome",
91         "name": "vnf",
92         "xml": "<outcome value='vnf'>\n",
93         "comments": "",
94         "outputs": 1,
95         "x": 552.75,
96         "y": 521.75,
97         "z": "8e64cd0a.c97ea8",
98         "wires": [
99             [
100                 "8257892.ab90ef8"
101             ]
102         ]
103     },
104     {
105         "id": "8641945a.85d85",
106         "type": "outcome",
107         "name": "vf-module",
108         "xml": "<outcome value='vf-module'>\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 570.1944580078125,
112         "y": 1370.527587890625,
113         "z": "8e64cd0a.c97ea8",
114         "wires": [
115             [
116                 "3b7a5a5b.0869d6"
117             ]
118         ]
119     },
120     {
121         "id": "87d6f1d6.fde57",
122         "type": "outcome",
123         "name": "other",
124         "xml": "<outcome value='Other'>\n",
125         "comments": "",
126         "outputs": 1,
127         "x": 540.861083984375,
128         "y": 2097.3056030273438,
129         "z": "8e64cd0a.c97ea8",
130         "wires": [
131             [
132                 "440694ff.4f3a6c"
133             ]
134         ]
135     },
136     {
137         "id": "b49433f5.4f0a18",
138         "type": "outcome",
139         "name": "null",
140         "xml": "<outcome value=''>",
141         "comments": "",
142         "outputs": 1,
143         "x": 543.861083984375,
144         "y": 2167.3056030273438,
145         "z": "8e64cd0a.c97ea8",
146         "wires": [
147             [
148                 "440694ff.4f3a6c"
149             ]
150         ]
151     },
152     {
153         "id": "440694ff.4f3a6c",
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": 728.861083984375,
159         "y": 2127.3056030273438,
160         "z": "8e64cd0a.c97ea8",
161         "wires": []
162     },
163     {
164         "id": "96c99a94.2dd13",
165         "type": "switchNode",
166         "name": "switch",
167         "xml": "<switch test='`$ss.input.param.index`'>\n\n",
168         "comments": "",
169         "outputs": 1,
170         "x": 364.75,
171         "y": 169.75,
172         "z": "8e64cd0a.c97ea8",
173         "wires": [
174             [
175                 "a6eb425f.b8bdd"
176             ]
177         ]
178     },
179     {
180         "id": "d2f322ed.7ab698",
181         "type": "switchNode",
182         "name": "switch",
183         "xml": "<switch test='`$ss.service-data.param.index`'>\n\n",
184         "comments": "",
185         "outputs": 1,
186         "x": 366.75,
187         "y": 242.75,
188         "z": "8e64cd0a.c97ea8",
189         "wires": [
190             [
191                 "4bd1595c.013718"
192             ]
193         ]
194     },
195     {
196         "id": "a6eb425f.b8bdd",
197         "type": "outcome",
198         "name": "null",
199         "xml": "<outcome value=''>",
200         "comments": "",
201         "outputs": 1,
202         "x": 527.75,
203         "y": 168.75,
204         "z": "8e64cd0a.c97ea8",
205         "wires": [
206             [
207                 "150b73ba.cd1f84"
208             ]
209         ]
210     },
211     {
212         "id": "4bd1595c.013718",
213         "type": "outcome",
214         "name": "null",
215         "xml": "<outcome value=''>",
216         "comments": "",
217         "outputs": 1,
218         "x": 530.75,
219         "y": 241.75,
220         "z": "8e64cd0a.c97ea8",
221         "wires": [
222             [
223                 "2339ed70.e452d2"
224             ]
225         ]
226     },
227     {
228         "id": "150b73ba.cd1f84",
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": 716.75,
234         "y": 168.75,
235         "z": "8e64cd0a.c97ea8",
236         "wires": []
237     },
238     {
239         "id": "2339ed70.e452d2",
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": 717.75,
245         "y": 241.75,
246         "z": "8e64cd0a.c97ea8",
247         "wires": []
248     },
249     {
250         "id": "fa65e5dc.08b3d8",
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": 841.75,
257         "y": 836.75,
258         "z": "8e64cd0a.c97ea8",
259         "wires": [
260             [
261                 "2e29dd23.0f7632",
262                 "268c5fb8.e45f3"
263             ]
264         ]
265     },
266     {
267         "id": "2e29dd23.0f7632",
268         "type": "failure",
269         "name": "failure",
270         "xml": "<outcome value='failure'>\n",
271         "comments": "",
272         "outputs": 1,
273         "x": 1082.75,
274         "y": 791.75,
275         "z": "8e64cd0a.c97ea8",
276         "wires": [
277             [
278                 "a64477a3.5d098"
279             ]
280         ]
281     },
282     {
283         "id": "268c5fb8.e45f3",
284         "type": "failure",
285         "name": "not-found",
286         "xml": "<outcome value='not-found'>\n",
287         "comments": "",
288         "outputs": 1,
289         "x": 1087.75,
290         "y": 889.75,
291         "z": "8e64cd0a.c97ea8",
292         "wires": [
293             [
294                 "a64477a3.5d098"
295             ]
296         ]
297     },
298     {
299         "id": "a64477a3.5d098",
300         "type": "block",
301         "name": "block : atomic",
302         "xml": "<block atomic='true'>",
303         "atomic": "true",
304         "comments": "",
305         "outputs": 1,
306         "x": 1239.75,
307         "y": 833.75,
308         "z": "8e64cd0a.c97ea8",
309         "wires": [
310             [
311                 "735acfc0.69263",
312                 "9f441bcd.48c91"
313             ]
314         ]
315     },
316     {
317         "id": "735acfc0.69263",
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": 1440.75,
323         "y": 781.75,
324         "z": "8e64cd0a.c97ea8",
325         "wires": []
326     },
327     {
328         "id": "9f441bcd.48c91",
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": 1426.75,
334         "y": 890.75,
335         "z": "8e64cd0a.c97ea8",
336         "wires": []
337     },
338     {
339         "id": "8257892.ab90ef8",
340         "type": "block",
341         "name": "block : atomic",
342         "xml": "<block atomic='true'>",
343         "atomic": "true",
344         "comments": "",
345         "outputs": 1,
346         "x": 720.75,
347         "y": 521.75,
348         "z": "8e64cd0a.c97ea8",
349         "wires": [
350             [
351                 "53e3c0e3.64d5d8",
352                 "50624aa7.268ebc",
353                 "1f68cda.b8d8b32",
354                 "fa65e5dc.08b3d8",
355                 "8643313e.d4e4a8",
356                 "5380e841.bea77"
357             ]
358         ]
359     },
360     {
361         "id": "53e3c0e3.64d5d8",
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": 888.75,
368         "y": 584.75,
369         "z": "8e64cd0a.c97ea8",
370         "wires": [
371             [
372                 "67ae549.369122c"
373             ]
374         ]
375     },
376     {
377         "id": "67ae549.369122c",
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": 1044.75,
384         "y": 646.75,
385         "z": "8e64cd0a.c97ea8",
386         "wires": [
387             [
388                 "408a6d52.bca67c"
389             ]
390         ]
391     },
392     {
393         "id": "408a6d52.bca67c",
394         "type": "outcome",
395         "name": "external-key",
396         "xml": "<outcome value='external-key'>\n",
397         "comments": "",
398         "outputs": 1,
399         "x": 1230.75,
400         "y": 646.75,
401         "z": "8e64cd0a.c97ea8",
402         "wires": [
403             [
404                 "9801ba33.1a3de"
405             ]
406         ]
407     },
408     {
409         "id": "9801ba33.1a3de",
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": 1462.75,
415         "y": 646.75,
416         "z": "8e64cd0a.c97ea8",
417         "wires": []
418     },
419     {
420         "id": "1f68cda.b8d8b32",
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": 777.75,
426         "y": 770.75,
427         "z": "8e64cd0a.c97ea8",
428         "wires": []
429     },
430     {
431         "id": "50624aa7.268ebc",
432         "type": "switchNode",
433         "name": "switch",
434         "xml": "<switch test='`$tmp.external-key.value`'>\n\n",
435         "comments": "",
436         "outputs": 1,
437         "x": 748.75,
438         "y": 713.75,
439         "z": "8e64cd0a.c97ea8",
440         "wires": [
441             [
442                 "c1a7e7c7.bb67c"
443             ]
444         ]
445     },
446     {
447         "id": "c1a7e7c7.bb67c",
448         "type": "outcome",
449         "name": "null",
450         "xml": "<outcome value=''>",
451         "comments": "",
452         "outputs": 1,
453         "x": 901.75,
454         "y": 712.75,
455         "z": "8e64cd0a.c97ea8",
456         "wires": [
457             [
458                 "17d289d6.1a9e5e"
459             ]
460         ]
461     },
462     {
463         "id": "17d289d6.1a9e5e",
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": 1062.75,
469         "y": 712.75,
470         "z": "8e64cd0a.c97ea8",
471         "wires": []
472     },
473     {
474         "id": "420ba6ad.26a838",
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": 900.1944580078125,
481         "y": 1686.527587890625,
482         "z": "8e64cd0a.c97ea8",
483         "wires": [
484             [
485                 "40004b3f.e2bedc",
486                 "a93541ba.8e68b8"
487             ]
488         ]
489     },
490     {
491         "id": "40004b3f.e2bedc",
492         "type": "failure",
493         "name": "failure",
494         "xml": "<outcome value='failure'>\n",
495         "comments": "",
496         "outputs": 1,
497         "x": 1137.1944580078125,
498         "y": 1640.527587890625,
499         "z": "8e64cd0a.c97ea8",
500         "wires": [
501             [
502                 "89d30d0a.86861"
503             ]
504         ]
505     },
506     {
507         "id": "a93541ba.8e68b8",
508         "type": "failure",
509         "name": "not-found",
510         "xml": "<outcome value='not-found'>\n",
511         "comments": "",
512         "outputs": 1,
513         "x": 1143.1944580078125,
514         "y": 1740.527587890625,
515         "z": "8e64cd0a.c97ea8",
516         "wires": [
517             [
518                 "89d30d0a.86861"
519             ]
520         ]
521     },
522     {
523         "id": "89d30d0a.86861",
524         "type": "block",
525         "name": "block : atomic",
526         "xml": "<block atomic='true'>",
527         "atomic": "true",
528         "comments": "",
529         "outputs": 1,
530         "x": 1290.1944580078125,
531         "y": 1682.527587890625,
532         "z": "8e64cd0a.c97ea8",
533         "wires": [
534             [
535                 "fc409ea5.e85ae",
536                 "e3c25f44.0cb21"
537             ]
538         ]
539     },
540     {
541         "id": "fc409ea5.e85ae",
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": 1499.1944580078125,
547         "y": 1631.527587890625,
548         "z": "8e64cd0a.c97ea8",
549         "wires": []
550     },
551     {
552         "id": "e3c25f44.0cb21",
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": 1485.1944580078125,
558         "y": 1740.527587890625,
559         "z": "8e64cd0a.c97ea8",
560         "wires": []
561     },
562     {
563         "id": "3b7a5a5b.0869d6",
564         "type": "block",
565         "name": "block : atomic",
566         "xml": "<block atomic='true'>",
567         "atomic": "true",
568         "comments": "",
569         "outputs": 1,
570         "x": 779.1944580078125,
571         "y": 1371.527587890625,
572         "z": "8e64cd0a.c97ea8",
573         "wires": [
574             [
575                 "2cccc824.ad2a78",
576                 "231cd5d7.8b6a1a",
577                 "2c11cde8.d352fa",
578                 "420ba6ad.26a838",
579                 "828d5f62.22b218",
580                 "bd0adc9e.3de71"
581             ]
582         ]
583     },
584     {
585         "id": "2cccc824.ad2a78",
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": 947.1944580078125,
592         "y": 1434.527587890625,
593         "z": "8e64cd0a.c97ea8",
594         "wires": [
595             [
596                 "5e430810.e35d5"
597             ]
598         ]
599     },
600     {
601         "id": "5e430810.e35d5",
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": 1101.1944580078125,
608         "y": 1496.527587890625,
609         "z": "8e64cd0a.c97ea8",
610         "wires": [
611             [
612                 "1cd2631e.5000ad"
613             ]
614         ]
615     },
616     {
617         "id": "1cd2631e.5000ad",
618         "type": "outcome",
619         "name": "external-key",
620         "xml": "<outcome value='external-key'>\n",
621         "comments": "",
622         "outputs": 1,
623         "x": 1287.1944580078125,
624         "y": 1496.527587890625,
625         "z": "8e64cd0a.c97ea8",
626         "wires": [
627             [
628                 "b5e021a4.2b14"
629             ]
630         ]
631     },
632     {
633         "id": "b5e021a4.2b14",
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": 1519.1944580078125,
639         "y": 1496.527587890625,
640         "z": "8e64cd0a.c97ea8",
641         "wires": []
642     },
643     {
644         "id": "2c11cde8.d352fa",
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": 836.1944580078125,
650         "y": 1620.527587890625,
651         "z": "8e64cd0a.c97ea8",
652         "wires": []
653     },
654     {
655         "id": "231cd5d7.8b6a1a",
656         "type": "switchNode",
657         "name": "switch",
658         "xml": "<switch test='`$tmp.external-key.value`'>\n\n",
659         "comments": "",
660         "outputs": 1,
661         "x": 807.1944580078125,
662         "y": 1563.527587890625,
663         "z": "8e64cd0a.c97ea8",
664         "wires": [
665             [
666                 "c92f1042.b4f728"
667             ]
668         ]
669     },
670     {
671         "id": "c92f1042.b4f728",
672         "type": "outcome",
673         "name": "null",
674         "xml": "<outcome value=''>",
675         "comments": "",
676         "outputs": 1,
677         "x": 960.1944580078125,
678         "y": 1562.527587890625,
679         "z": "8e64cd0a.c97ea8",
680         "wires": [
681             [
682                 "928dfda3.a334e"
683             ]
684         ]
685     },
686     {
687         "id": "928dfda3.a334e",
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": 1121.1944580078125,
693         "y": 1562.527587890625,
694         "z": "8e64cd0a.c97ea8",
695         "wires": []
696     },
697     {
698         "id": "e9758b29.f137c8",
699         "type": "failure",
700         "name": "failure",
701         "xml": "<outcome value='failure'>\n",
702         "comments": "",
703         "outputs": 1,
704         "x": 893.7499389648438,
705         "y": 956.6388549804688,
706         "z": "8e64cd0a.c97ea8",
707         "wires": [
708             [
709                 "866c1fb3.eb77a"
710             ]
711         ]
712     },
713     {
714         "id": "866c1fb3.eb77a",
715         "type": "block",
716         "name": "block : atomic",
717         "xml": "<block atomic='true'>",
718         "atomic": "true",
719         "comments": "",
720         "outputs": 1,
721         "x": 1059.3056640625,
722         "y": 1001.1944427490234,
723         "z": "8e64cd0a.c97ea8",
724         "wires": [
725             [
726                 "e7f01e3.2acaae",
727                 "712546c8.9b5af"
728             ]
729         ]
730     },
731     {
732         "id": "e7f01e3.2acaae",
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": 1268.75,
738         "y": 956.75,
739         "z": "8e64cd0a.c97ea8",
740         "wires": []
741     },
742     {
743         "id": "712546c8.9b5af",
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": 1256.75,
749         "y": 1044.75,
750         "z": "8e64cd0a.c97ea8",
751         "wires": []
752     },
753     {
754         "id": "5380e841.bea77",
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": 690.8611450195312,
760         "y": 1085.6388549804688,
761         "z": "8e64cd0a.c97ea8",
762         "wires": []
763     },
764     {
765         "id": "c57b7486.a57b1",
766         "type": "failure",
767         "name": "failure",
768         "xml": "<outcome value='failure'>\n",
769         "comments": "",
770         "outputs": 1,
771         "x": 961.861083984375,
772         "y": 1811.8609008789062,
773         "z": "8e64cd0a.c97ea8",
774         "wires": [
775             [
776                 "4fc9b736.8d6e3"
777             ]
778         ]
779     },
780     {
781         "id": "4fc9b736.8d6e3",
782         "type": "block",
783         "name": "block : atomic",
784         "xml": "<block atomic='true'>",
785         "atomic": "true",
786         "comments": "",
787         "outputs": 1,
788         "x": 1125.1944580078125,
789         "y": 1847.527587890625,
790         "z": "8e64cd0a.c97ea8",
791         "wires": [
792             [
793                 "c4cb3411.ce3c08",
794                 "5be64b3b.d3de2c"
795             ]
796         ]
797     },
798     {
799         "id": "c4cb3411.ce3c08",
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": 1340.1944580078125,
805         "y": 1807.527587890625,
806         "z": "8e64cd0a.c97ea8",
807         "wires": []
808     },
809     {
810         "id": "5be64b3b.d3de2c",
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": 1328.1944580078125,
816         "y": 1895.527587890625,
817         "z": "8e64cd0a.c97ea8",
818         "wires": []
819     },
820     {
821         "id": "bd0adc9e.3de71",
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": 791.1944580078125,
827         "y": 1937.527587890625,
828         "z": "8e64cd0a.c97ea8",
829         "wires": []
830     },
831     {
832         "id": "3ab1de2e.107f4a",
833         "type": "comment",
834         "name": "For VNF genname changeassign",
835         "info": "",
836         "comments": "",
837         "x": 634.9722290039062,
838         "y": 457.9722595214844,
839         "z": "8e64cd0a.c97ea8",
840         "wires": []
841     },
842     {
843         "id": "acf466b0.cd99d",
844         "type": "comment",
845         "name": "For VF-MODULE genname changeassign",
846         "info": "",
847         "comments": "",
848         "x": 670.5277709960938,
849         "y": 1280.194580078125,
850         "z": "8e64cd0a.c97ea8",
851         "wires": []
852     },
853     {
854         "id": "8643313e.d4e4a8",
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 = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-loopback0-address\" value='`$ss.param.ipv4-loopback0-address`' />\n<parameter name=\"ipv4-oam-address\" value='`$ss.param.ipv4-oam-address`' />\n<parameter name=\"as-number\" value='`$ss.param.as-number`' />\n<parameter name=\"vlan-id-outer\" value='`$ss.param.vlan-id-outer`' />\n\n",
858         "comments": "",
859         "outputs": 1,
860         "x": 714.97216796875,
861         "y": 997.9722900390625,
862         "z": "8e64cd0a.c97ea8",
863         "wires": [
864             [
865                 "e9758b29.f137c8",
866                 "291e7999.8fd276"
867             ]
868         ]
869     },
870     {
871         "id": "828d5f62.22b218",
872         "type": "save",
873         "name": "update vf-module",
874         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vf-module\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\t\tAND vf-module.vf-module-id = $ss.param.vf-module-id \" >\n<parameter name=\"vf-module-name\" value='`$ss.param.vf-module-name`' />\n",
875         "comments": "",
876         "outputs": 1,
877         "x": 792.75,
878         "y": 1847.9722900390625,
879         "z": "8e64cd0a.c97ea8",
880         "wires": [
881             [
882                 "c57b7486.a57b1",
883                 "5cf0712f.35945"
884             ]
885         ]
886     },
887     {
888         "id": "5cf0712f.35945",
889         "type": "not-found",
890         "name": "not-found",
891         "xml": "<outcome value='not-found'>\n",
892         "comments": "",
893         "outputs": 1,
894         "x": 959.4166870117188,
895         "y": 1897.9719848632812,
896         "z": "8e64cd0a.c97ea8",
897         "wires": [
898             [
899                 "4fc9b736.8d6e3"
900             ]
901         ]
902     },
903     {
904         "id": "291e7999.8fd276",
905         "type": "not-found",
906         "name": "not-found",
907         "xml": "<outcome value='not-found'>\n",
908         "comments": "",
909         "outputs": 1,
910         "x": 897.1945190429688,
911         "y": 1046.8611450195312,
912         "z": "8e64cd0a.c97ea8",
913         "wires": [
914             [
915                 "866c1fb3.eb77a"
916             ]
917         ]
918     }
919 ]