3 "id": "74fb79ea.032e48",
7 "x": 122.85714721679688,
9 "z": "82b724af.168de8",
17 "id": "1f56866e.5a45aa",
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": 288.0238037109375,
26 "y": 60.16667175292969,
27 "z": "82b724af.168de8",
35 "id": "ded9641e.047bb8",
37 "name": "block : atomic",
38 "xml": "<block atomic=\"true\">",
41 "x": 200.3571548461914,
43 "z": "82b724af.168de8",
61 "id": "74023518.66a7dc",
63 "name": "set: order-status = PendingUpdate",
64 "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.order-status\" value=\"PendingUpdate\"/>",
67 "x": 495.8020248413086,
68 "y": 887.4610958099365,
69 "z": "82b724af.168de8",
75 "id": "53b04d88.f911e4",
76 "type": "returnSuccess",
77 "name": "return success",
78 "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
80 "x": 434.07183837890625,
81 "y": 1022.2609748840332,
82 "z": "82b724af.168de8",
86 "id": "ee20442e.3ca3d8",
88 "name": "switch: service-data order-status = Active",
89 "xml": "<switch test=\"`$vf-module-service-data.oper-status.order-status == Active`\">",
92 "x": 515.5238189697266,
93 "y": 162.88889145851135,
94 "z": "82b724af.168de8",
102 "id": "2efaeb27.a894b4",
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": 920.2736358642578,
108 "y": 162.72226548194885,
109 "z": "82b724af.168de8",
113 "id": "6f57b256.79d63c",
116 "xml": "<outcome value='false'>",
119 "x": 761.6904449462891,
120 "y": 162.47214341163635,
121 "z": "82b724af.168de8",
129 "id": "7d1ef972.4819e8",
131 "name": "method vf-module-topology-changeassign",
132 "xml": "<method rpc='vf-module-topology-changeassign' mode='sync'>\n",
135 "x": 222.85714721679688,
137 "z": "82b724af.168de8",
145 "id": "4e4ca37c.97abbc",
147 "name": "set: last-action ",
148 "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-action\" value=\"`$vf-module-service-data.request-information.request-action`\"/>",
151 "x": 433.80957794189453,
152 "y": 933.476110458374,
153 "z": "82b724af.168de8",
159 "id": "3db50ae5.43abb6",
161 "name": "set: last-order-status = order-status",
162 "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-order-status\" value=\"`$vf-module-service-data.oper-status.order-status`\"/>",
165 "x": 497.80957794189453,
166 "y": 841.476110458374,
167 "z": "82b724af.168de8",
173 "id": "6af9e30c.118d8c",
175 "name": "call: vf-module-topology-assign-vnf-neworks",
176 "xml": "<call module='VNF-API' rpc='vf-module-topology-assign-vnf-networks' mode='sync' >",
179 "x": 523.7460479736328,
180 "y": 208.66666793823242,
181 "z": "82b724af.168de8",
187 "id": "490cb041.34c72",
189 "name": "delete l3-network relationship",
190 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
193 "x": 478.7778015136719,
194 "y": 339.9049777984619,
195 "z": "82b724af.168de8",
203 "id": "557a38ee.a802f8",
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 vf-module l3-network relationship in AnAI with with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id + ' vf-module update FAILED.'`\"/>",
208 "x": 880.6347961425781,
209 "y": 340.1903476715088,
210 "z": "82b724af.168de8",
214 "id": "64e590aa.7bcaa",
216 "name": "get AnAI - vf-module",
217 "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tand generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" \n\t\tpfx=\"tmp.AnAI.vfmodule\">",
220 "x": 452.63490295410156,
221 "y": 253.55555725097656,
222 "z": "82b724af.168de8",
231 "id": "795ec745.e145d8",
233 "name": "save l3-network relationship",
234 "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-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=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id`\" />",
237 "x": 799.5909881591797,
238 "y": 429.90022468566895,
239 "z": "82b724af.168de8",
247 "id": "c6d96495.8cf3e8",
250 "xml": "<outcome value='failure'>\n",
253 "x": 1012.7352294921875,
254 "y": 429.94725704193115,
255 "z": "82b724af.168de8",
263 "id": "3520790.e294188",
265 "name": "for i : SERVICE_DATA vnf-networks",
266 "xml": "<for index=\"i\" start=\"0\" end=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
269 "x": 495.80943298339844,
270 "y": 429.44017601013184,
271 "z": "82b724af.168de8",
279 "id": "cbdefadd.2eea08",
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 vf-module l3-network relationship in AnAI. ' + $error-message`\"/>",
284 "x": 1368.928123474121,
285 "y": 789.1421012878418,
286 "z": "82b724af.168de8",
290 "id": "fc96e652.96f9f8",
292 "name": "block : atomic",
293 "xml": "<block atomic='true'>",
297 "x": 1181.713981628418,
298 "y": 429.1780004501343,
299 "z": "82b724af.168de8",
311 "id": "434af9d5.0675a8",
313 "name": "delete relationship: vf-module",
314 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
317 "x": 1421.2140502929688,
318 "y": 477.10680198669434,
319 "z": "82b724af.168de8",
325 "id": "d3e9f0df.7a967",
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 vf-module from AnAI with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\"/>",
330 "x": 833.9204864501953,
331 "y": 254.2696990966797,
332 "z": "82b724af.168de8",
336 "id": "9028380b.6c4ac8",
339 "xml": "<outcome value='failure'>\n",
342 "x": 694.6349182128906,
343 "y": 340.3333225250244,
344 "z": "82b724af.168de8",
352 "id": "8646627b.abeda",
354 "name": "Set final indicator to Y",
355 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
358 "x": 455.4286117553711,
359 "y": 979.4286098480225,
360 "z": "82b724af.168de8",
366 "id": "264625a3.d0bf3a",
368 "name": "for i : tmp.AnAI.vfmodule.relationship",
369 "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.vfmodule.relationship-list.relationship_length`\">",
372 "x": 1445.1783752441406,
373 "y": 568.0000343322754,
374 "z": "82b724af.168de8",
382 "id": "e2842577.e43338",
383 "type": "switchNode",
384 "name": "switch: relationship.related-to",
385 "xml": "<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].related-to`\">",
388 "x": 1756.1783447265625,
389 "y": 567.7143545150757,
390 "z": "82b724af.168de8",
398 "id": "6c2ffb96.bbe484",
400 "name": "l3-network",
401 "xml": "<outcome value='l3-network'>",
404 "x": 1984.1783447265625,
405 "y": 567.7143545150757,
406 "z": "82b724af.168de8",
414 "id": "a605f7c0.31a3b8",
416 "name": "for j : tmp.AnAI.vfmodule.relationship-data",
417 "xml": "<for index=\"j\" start=\"0\" end=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length`\">",
420 "x": 1884.1783752441406,
421 "y": 702.6071891784668,
422 "z": "82b724af.168de8",
430 "id": "75b5e472.e4c3ac",
432 "name": "save l3-network relationship",
433 "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-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.vfmodule.relationship-list.relationship[$i].relationship-data[$j].relationship-value`\" />",
436 "x": 2241.7498321533203,
437 "y": 702.750072479248,
438 "z": "82b724af.168de8",
447 "id": "706c56b8.8643e8",
450 "xml": "<outcome value='failure'>\n",
453 "x": 2499.7498321533203,
454 "y": 702.750072479248,
455 "z": "82b724af.168de8",
463 "id": "6fd52d0e.ed4644",
466 "xml": "<outcome value='failure'>\n",
469 "x": 642.4920768737793,
470 "y": 253.69842529296875,
471 "z": "82b724af.168de8",
479 "id": "c910e4b6.a9df08",
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 = ' + $vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id + ' for vf-module with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and generic-vnf-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\" />\n",
485 "x": 1386.2141189575195,
486 "y": 429.10716819763184,
487 "z": "82b724af.168de8",
493 "id": "7dd21ad6.da13b4",
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 vf-module with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and generic-vnf-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\" />\n",
499 "x": 2697.7141494750977,
500 "y": 702.285717010498,
501 "z": "82b724af.168de8",
507 "id": "85739c68.20d2c",
510 "xml": "<outcome value='not-found'>\n",
513 "x": 649.3849029541016,
514 "y": 296.1388702392578,
515 "z": "82b724af.168de8",
523 "id": "5f66312e.f434f",
526 "xml": "<outcome value='not-found'>\n",
529 "x": 2510.0355377197266,
530 "y": 743.9285688400269,
531 "z": "82b724af.168de8",
539 "id": "75eb4741.287e38",
540 "type": "switchNode",
541 "name": "set: vf-module-service-data...vnf-networks_length = 0",
542 "xml": "<set>\n\t<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length\" value = \"0\" />",
545 "x": 1134.9840469360352,
546 "y": 384.7142581939697,
547 "z": "82b724af.168de8",
553 "id": "6c3f0f76.71273",
556 "xml": "<outcome value=''>\n",
559 "x": 836.2340469360352,
560 "y": 384.7142581939697,
561 "z": "82b724af.168de8",
569 "id": "df4daff8.410d8",
570 "type": "switchNode",
571 "name": "switch: vf-module-service-data...vnf-networks_length",
572 "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
575 "x": 548.7340545654297,
576 "y": 384.7142581939697,
577 "z": "82b724af.168de8",
585 "id": "7ee2d878.734fd8",
586 "type": "switchNode",
587 "name": "set: tmp.AnAI.vfmodule.relationship-list.relationship_length = 0",
588 "xml": "<set>\n\t<parameter name=\"tmp.AnAI.vfmodule.relationship-list.relationship_length\" value = \"0\" />",
591 "x": 2168.9999923706055,
592 "y": 524.0000495910645,
593 "z": "82b724af.168de8",
599 "id": "a0c959dc.928788",
602 "xml": "<outcome value=''>\n",
605 "x": 1851.2499923706055,
606 "y": 524.0000495910645,
607 "z": "82b724af.168de8",
615 "id": "52f02717.530ac8",
616 "type": "switchNode",
617 "name": "switch: tmp.AnAI.vfmodule.relationship-list.relationship_length",
618 "xml": "<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship_length`\">",
622 "y": 524.0000495910645,
623 "z": "82b724af.168de8",
631 "id": "767a5f43.e2cc1",
632 "type": "switchNode",
633 "name": "set: tmp.AnAI.vfmodulerelationship-list.relationship[$i].relationship-data_length = 0",
634 "xml": "<set>\n\t<parameter name=\"tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length\" value = \"0\" />",
637 "x": 2777.0000228881836,
638 "y": 655.0000133514404,
639 "z": "82b724af.168de8",
645 "id": "4e18247d.2004dc",
648 "xml": "<outcome value=''>\n",
651 "x": 2392.2500228881836,
652 "y": 655.0000133514404,
653 "z": "82b724af.168de8",
661 "id": "a926fa42.76f768",
662 "type": "switchNode",
663 "name": "switch: tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length",
664 "xml": "<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length`\">",
667 "x": 2008.7500305175781,
668 "y": 655.0000133514404,
669 "z": "82b724af.168de8",
677 "id": "ee9c3f17.36cc2",
679 "name": "block : atomic",
680 "xml": "<block atomic='true'>",
684 "x": 1596.2500228881836,
685 "y": 654.7500095367432,
686 "z": "82b724af.168de8",