3 "id": "7e3f5196.e417c",
7 "x": 111.42857360839844,
8 "y": 60.00000047683716,
9 "z": "2cd468d5.f36418",
17 "id": "10b8528a.211b1d",
18 "type": "service-logic",
19 "name": "VNF-API ${project.version}",
21 "version": "${project.version}",
23 "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
25 "x": 276.59523010253906,
26 "y": 60.166672229766846,
27 "z": "2cd468d5.f36418",
35 "id": "26eeb6ea.2961fa",
37 "name": "block : atomic",
38 "xml": "<block atomic=\"true\">",
41 "x": 188.92858123779297,
42 "y": 163.00000047683716,
43 "z": "2cd468d5.f36418",
61 "id": "54500f80.f1dde",
63 "name": "set: order-status = PendingUpdate",
64 "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.order-status\" value=\"PendingUpdate\"/>",
67 "x": 484.37345123291016,
68 "y": 887.4610962867737,
69 "z": "2cd468d5.f36418",
75 "id": "b5bb0315.e5f83",
76 "type": "returnSuccess",
77 "name": "return success",
78 "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
80 "x": 422.6432647705078,
81 "y": 1022.2609753608704,
82 "z": "2cd468d5.f36418",
86 "id": "e31262f8.d4f67",
88 "name": "switch: service-data order-status = Active",
89 "xml": "<switch test=\"`$vnf-instance-service-data.oper-status.order-status == Active`\">",
92 "x": 495.2063674926758,
93 "y": 163.66666984558105,
94 "z": "2cd468d5.f36418",
102 "id": "1634a3cd.229f0c",
103 "type": "returnFailure",
104 "name": "return failure",
105 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid service-data order status'/>",
107 "x": 899.9561920166016,
108 "y": 166.00004768371582,
109 "z": "2cd468d5.f36418",
113 "id": "83191ca8.35ba",
116 "xml": "<outcome value='false'>",
119 "x": 741.3729934692383,
120 "y": 163.24992179870605,
121 "z": "2cd468d5.f36418",
129 "id": "59ca7427.fd225c",
131 "name": "method vnf-instance-topology-changeassign",
132 "xml": "<method rpc='vnf-instance-topology-changeassign' mode='sync'>\n",
135 "x": 233.65078735351562,
136 "y": 109.88889026641846,
137 "z": "2cd468d5.f36418",
145 "id": "b5584bc7.3ea138",
147 "name": "set: last-action ",
148 "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.last-action\" value=\"`$vnf-instance-service-data.request-information.request-action`\"/>",
151 "x": 422.3810043334961,
152 "y": 933.4761109352112,
153 "z": "2cd468d5.f36418",
159 "id": "7c0c33c0.92e28c",
161 "name": "set: last-order-status = order-status",
162 "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.last-order-status\" value=\"`$vnf-instance-service-data.oper-status.order-status`\"/>",
165 "x": 486.3810043334961,
166 "y": 841.4761109352112,
167 "z": "2cd468d5.f36418",
173 "id": "e091d3c2.33bc",
175 "name": "call: vnf-instance-topology-assign-vnf-networks",
176 "xml": "<call module='VNF-API' rpc='vnf-instance-topology-assign-vnf-networks' mode='sync' >",
179 "x": 514.3174896240234,
180 "y": 209.77777767181396,
181 "z": "2cd468d5.f36418",
187 "id": "579e919a.69eb7",
189 "name": "delete l3-network relationship",
190 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
193 "x": 461.793701171875,
194 "y": 348.7938804626465,
195 "z": "2cd468d5.f36418",
203 "id": "6fb4fdc9.79da44",
204 "type": "returnFailure",
205 "name": "return failure",
206 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while deleting existing l3-network relationship in AnAI with with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id + ' vnf-instance update FAILED.'`\"/>",
208 "x": 863.6506958007812,
209 "y": 349.07925033569336,
210 "z": "2cd468d5.f36418",
214 "id": "ed72da5e.728ab8",
216 "name": "get AnAI - vnf-instance",
217 "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" \n\tpfx=\"tmp.AnAI.vnf-instance\" >",
220 "x": 440.0952453613281,
221 "y": 253.55556106567383,
222 "z": "2cd468d5.f36418",
231 "id": "f6b122b7.d730f",
233 "name": "save l3-network relationship",
234 "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" >\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks[$i].network-id`\" />",
237 "x": 780.8290863037109,
238 "y": 438.56689071655273,
239 "z": "2cd468d5.f36418",
247 "id": "f6bb7bd9.76bae8",
250 "xml": "<outcome value='failure'>\n",
253 "x": 989.9733276367188,
254 "y": 438.61392307281494,
255 "z": "2cd468d5.f36418",
263 "id": "d72290b6.13cfc",
265 "name": "for i : SERVICE_DATA vnf-networks",
266 "xml": "<for index=\"i\" start=\"0\" end=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length`\">",
269 "x": 481.0475311279297,
270 "y": 439.1068420410156,
271 "z": "2cd468d5.f36418",
279 "id": "5921c16b.5bd97",
280 "type": "returnFailure",
281 "name": "return failure",
282 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to update vnf-instance l3-network relationship in AnAI. ' + $error-message`\"/>",
284 "x": 1335.166160583496,
285 "y": 818.8087882995605,
286 "z": "2cd468d5.f36418",
290 "id": "93b5ee1e.221ca",
292 "name": "block : atomic",
293 "xml": "<block atomic='true'>",
297 "x": 1152.9520797729492,
298 "y": 438.84466648101807,
299 "z": "2cd468d5.f36418",
311 "id": "625f1fb8.1f18e",
313 "name": "delete relationship: vf-module",
314 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
317 "x": 1392.4521484375,
318 "y": 486.7734680175781,
319 "z": "2cd468d5.f36418",
325 "id": "e63dcfd2.1a0d3",
326 "type": "returnFailure",
327 "name": "return failure",
328 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while querying generic-vnf from AnAI with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id`\"/>",
330 "x": 821.3808288574219,
331 "y": 254.26970291137695,
332 "z": "2cd468d5.f36418",
336 "id": "12305cd8.a70123",
339 "xml": "<outcome value='failure'>\n",
342 "x": 677.6508178710938,
343 "y": 349.222225189209,
344 "z": "2cd468d5.f36418",
352 "id": "7b79f91e.a56ff8",
354 "name": "Set final indicator to Y",
355 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
358 "x": 444.00003814697266,
359 "y": 979.4286103248596,
360 "z": "2cd468d5.f36418",
366 "id": "efc90ef3.b0a7c",
368 "name": "for i : tmp.AnAI.vnf-instance.relationship",
369 "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.vnf-instance.relationship-list.relationship_length`\">",
372 "x": 1425.4164733886719,
373 "y": 577.6667003631592,
374 "z": "2cd468d5.f36418",
382 "id": "68e41057.68fce",
383 "type": "switchNode",
384 "name": "switch: relationship.related-to",
385 "xml": "<switch test=\"`$tmp.AnAI.vnf-instance.relationship-list.relationship[$i].related-to`\">",
388 "x": 1732.4164428710938,
389 "y": 577.3810205459595,
390 "z": "2cd468d5.f36418",
398 "id": "ac07b174.2f5ff",
400 "name": "l3-network",
401 "xml": "<outcome value='l3-network'>",
404 "x": 1955.4164428710938,
405 "y": 577.3810205459595,
406 "z": "2cd468d5.f36418",
414 "id": "a34ca0bd.1f59f",
416 "name": "for j : tmp.AnAI.vnf-instance.relationship-data",
417 "xml": "<for index=\"j\" start=\"0\" end=\"`$tmp.AnAI.vnf-instance.relationship-list.relationship[$i].relationship-data_length`\">",
420 "x": 1866.6664123535156,
421 "y": 711.0238761901855,
422 "z": "2cd468d5.f36418",
430 "id": "867a21f.18c04e",
432 "name": "save l3-network relationship",
433 "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" >\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.vnf-instance.relationship-list.relationship[$i].relationship-data[$j].relationship-value`\" />",
436 "x": 2224.2378692626953,
437 "y": 711.1667594909668,
438 "z": "2cd468d5.f36418",
447 "id": "6dbc5217.3d6f5c",
450 "xml": "<outcome value='failure'>\n",
453 "x": 2482.2378692626953,
454 "y": 711.1667594909668,
455 "z": "2cd468d5.f36418",
463 "id": "75c63427.b2a41c",
466 "xml": "<outcome value='failure'>\n",
469 "x": 629.9524192810059,
470 "y": 253.69842910766602,
471 "z": "2cd468d5.f36418",
479 "id": "76dff6e4.660dd8",
481 "name": "set error-message",
482 "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`' | An error occurred while saving l3-network relationship with network-id = ' + $vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks[$i].network-id + ' for vnf-instance with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id`\" />\n",
485 "x": 1357.4522171020508,
486 "y": 438.7738342285156,
487 "z": "2cd468d5.f36418",
493 "id": "6609cec3.9d5d2",
495 "name": "set error-message",
496 "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`$error-message + ' | An error occurred while during rollback of l3-network relationship for vnf-instance with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id`\" />\n",
499 "x": 2680.2021865844727,
500 "y": 710.7024040222168,
501 "z": "2cd468d5.f36418",
507 "id": "58db1cd8.34dbb4",
510 "xml": "<outcome value='not-found'>\n",
513 "x": 636.8452453613281,
514 "y": 296.1388740539551,
515 "z": "2cd468d5.f36418",
523 "id": "6f428706.86a3b8",
526 "xml": "<outcome value='not-found'>\n",
529 "x": 2492.5235748291016,
530 "y": 752.3452558517456,
531 "z": "2cd468d5.f36418",
539 "id": "f7812e3d.246cd",
540 "type": "switchNode",
541 "name": "set: vnf-instance-service-data...vnf-networks_length = 0",
542 "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length\" value = \"0\" />",
545 "x": 1126.888816833496,
546 "y": 394.7142753601074,
547 "z": "2cd468d5.f36418",
553 "id": "a018c1ed.7323c",
556 "xml": "<outcome value=''>\n",
559 "x": 828.1388168334961,
560 "y": 394.7142753601074,
561 "z": "2cd468d5.f36418",
569 "id": "723df9f0.89be98",
570 "type": "switchNode",
571 "name": "switch: vnf-instance-service-data...vnf-networks_length",
572 "xml": "<switch test=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length`\">",
575 "x": 540.6388244628906,
576 "y": 394.7142753601074,
577 "z": "2cd468d5.f36418",
585 "id": "b1a06442.5f4468",
586 "type": "switchNode",
587 "name": "set: tmp.AnAI.vnf-instance.relationship-list.relationship_length = 0",
588 "xml": "<set>\n\t<parameter name=\"tmp.AnAI.vnf-instance.relationship-list.relationship_length\" value = \"0\" />",
591 "x": 2139.2380905151367,
592 "y": 533.6667156219482,
593 "z": "2cd468d5.f36418",
599 "id": "cfeea49e.1a6548",
602 "xml": "<outcome value=''>\n",
605 "x": 1821.4880905151367,
606 "y": 533.6667156219482,
607 "z": "2cd468d5.f36418",
615 "id": "e4edafac.b2e1f",
616 "type": "switchNode",
617 "name": "switch: tmp.AnAI.vnf-instance.relationship-list.relationship_length",
618 "xml": "<switch test=\"`$tmp.AnAI.vnf-instance.relationship-list.relationship_length`\">",
621 "x": 1502.9880981445312,
622 "y": 533.6667156219482,
623 "z": "2cd468d5.f36418",
631 "id": "87f7cb69.27eb38",
633 "name": "block : atomic",
634 "xml": "<block atomic='true'>",
638 "x": 1571.250015258789,
639 "y": 663.7500133514404,
640 "z": "2cd468d5.f36418",
649 "id": "baf72e9.09de9d",
650 "type": "switchNode",
651 "name": "switch: tmp.AnAI.vnf-instance.relationship-list.relationship[$i].relationship-data_length",
652 "xml": "<switch test=\"`$tmp.AnAI.vnf-instance.relationship-list.relationship[$i].relationship-data_length`\">",
655 "x": 1990.7500228881836,
656 "y": 664.0000171661377,
657 "z": "2cd468d5.f36418",
665 "id": "ddf26f89.730fa",
668 "xml": "<outcome value=''>\n",
671 "x": 2367.250015258789,
672 "y": 664.0000171661377,
673 "z": "2cd468d5.f36418",
681 "id": "a4584fcd.7e598",
682 "type": "switchNode",
683 "name": "set: tmp.AnAI.vnf-instance.relationship-list.relationship[$i].relationship-data_length = 0",
684 "xml": "<set>\n\t<parameter name=\"tmp.AnAI.vnf-instance.relationship-list.relationship[$i].relationship-data_length\" value = \"0\" />",
687 "x": 2752.000015258789,
688 "y": 664.0000171661377,
689 "z": "2cd468d5.f36418",