3520747a94815698749a64a9ebf1ee2fcf40bdd2
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-topology-rollback.json
1 [{"id":"91e51a78.f2f898","type":"comment","name":"vnf-topology-rollback","info":"","comments":"","x":744.3209228515625,"y":66.54320526123047,"z":"da6e10f.d63acf","wires":[]},{"id":"cf768572.2720b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":167.79322814941406,"y":531.182092666626,"z":"da6e10f.d63acf","wires":[["38ee8eff.5172c2"]]},{"id":"685886bd.6497f8","type":"method","name":"method vnf-topology-rollback","xml":"<method rpc='vnf-topology-rollback' mode='sync'>\n","comments":"","outputs":1,"x":180.65435028076172,"y":125.26542377471924,"z":"da6e10f.d63acf","wires":[["e765cc09.203e5"]]},{"id":"9497dff0.cd216","type":"service-logic","name":"VNF-API ${project.version}","module":"VNF-API","version":"${project.version}","comments":"","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}'>","outputs":1,"x":329.6543884277344,"y":77.15432167053223,"z":"da6e10f.d63acf","wires":[["685886bd.6497f8"]]},{"id":"bd68af1b.bf9c3","type":"dgstart","name":"DGSTART","outputs":1,"x":126.48766326904297,"y":77.09875869750977,"z":"da6e10f.d63acf","wires":[["9497dff0.cd216"]]},{"id":"cdbdf7d4.379e78","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />","comments":"","x":489.3766670227051,"y":447.2627954483032,"z":"da6e10f.d63acf","wires":[]},{"id":"c94fe78d.f21d78","type":"set","name":"set: order-status = Deleted","xml":"<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Deleted\"/>","comments":"","x":526.2377548217773,"y":318.2627754211426,"z":"da6e10f.d63acf","wires":[]},{"id":"77ddff10.81a9e","type":"switchNode","name":"switch: order-status = PendingCreate","xml":"<switch test=\"`$service-data.oper-status.order-status == PendingCreate`\">","comments":"","outputs":1,"x":559.0786972045898,"y":232.39155769348145,"z":"da6e10f.d63acf","wires":[["1dbee524.28393b"]]},{"id":"1dbee524.28393b","type":"other","name":"false","xml":"<outcome value='false'>","comments":"","outputs":1,"x":790.6620788574219,"y":232.22486972808838,"z":"da6e10f.d63acf","wires":[["a0f6ee02.fe089"]]},{"id":"a0f6ee02.fe089","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>","comments":"","x":942.9952087402344,"y":232.22493076324463,"z":"da6e10f.d63acf","wires":[]},{"id":"712c6030.e56b2","type":"set","name":"set: last-action ","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>","comments":"","x":487.9954490661621,"y":360.5583686828613,"z":"da6e10f.d63acf","wires":[]},{"id":"aa95e846.1b2478","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":779.3362731933594,"y":185.18211460113525,"z":"da6e10f.d63acf","wires":[["4527a17.6e2476"]]},{"id":"4527a17.6e2476","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value=\"`'vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' not found in config tree'`\"/>","comments":"","x":942.4270935058594,"y":185.59121799468994,"z":"da6e10f.d63acf","wires":[]},{"id":"9ab6d07b.bdd0c","type":"set","name":"set: last-order-status = order-status","xml":"<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>","comments":"","x":552.8817977905273,"y":275.25032234191895,"z":"da6e10f.d63acf","wires":[]},{"id":"95a16bfa.1fed78","type":"set","name":"Clear vnf topology","xml":"<set>\n\t<parameter name=\"service-data.\" value=\"\" /> \n","comments":"","x":500.2707099914551,"y":404.2503433227539,"z":"da6e10f.d63acf","wires":[]},{"id":"52c9c127.4c5ea","type":"switchNode","name":"switch:CONFIG == INPUT - vnf-id","xml":"<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">","comments":"","outputs":1,"x":548.4877548217773,"y":185.18211460113525,"z":"da6e10f.d63acf","wires":[["aa95e846.1b2478"]]},{"id":"38ee8eff.5172c2","type":"switchNode","name":"switch: order-status = PendingCreate","xml":"<switch test=\"`$service-data.oper-status.order-status == PendingCreate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->","comments":"","outputs":1,"x":275.2932357788086,"y":578.1265535354614,"z":"da6e10f.d63acf","wires":[["3321b25c.99345e"]]},{"id":"3321b25c.99345e","type":"other","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":511.54322814941406,"y":578.8765468597412,"z":"da6e10f.d63acf","wires":[[]]},{"id":"e765cc09.203e5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":257.98773193359375,"y":184.4321117401123,"z":"da6e10f.d63acf","wires":[["52c9c127.4c5ea","77ddff10.81a9e","9ab6d07b.bdd0c","c94fe78d.f21d78","712c6030.e56b2","95a16bfa.1fed78","cdbdf7d4.379e78"]]},{"id":"a864c3f6.a048c","type":"comment","name":"request-action = VNFActivateRequest, svc-action = rollback","info":"","comments":"","x":755.7376708984375,"y":102.5432071685791,"z":"da6e10f.d63acf","wires":[]},{"id":"5b757381.4bc8ac","type":"comment","name":"Removing the redundent check","info":"ks220y: it's being checked at node 3","comments":"","x":217.65431213378906,"y":490.987642288208,"z":"da6e10f.d63acf","wires":[]}]