001 package videoautomat.contentcreator.stdactions; 002 003 import sale.Action; 004 import sale.GateChangeTransition; 005 import sale.SaleProcess; 006 import sale.SalesPoint; 007 import sale.UIGate; 008 009 /** 010 * Standart action to change next to rollback gate. 011 * @author Tobias Ruch 012 */ 013 public class RollBackAction implements Action { 014 015 /** 016 * ID for Serialization. 017 */ 018 private static final long serialVersionUID = -6870469433795382578L; 019 020 /** 021 * Changes to the callback gate. Called by an action listener, such as an button. 022 * The attribues are setted by the action listener. 023 * @param saleProcess - current {@link sale.SaleProecess} 024 * @param salePoint - current {@link sale.SalesPoint} 025 */ 026 public void doAction(SaleProcess saleProcess, SalesPoint salePoint) throws Throwable { 027 UIGate currentGate = (UIGate)saleProcess.getCurrentGate(); 028 currentGate.setNextTransition(GateChangeTransition.CHANGE_TO_ROLLBACK_GATE); 029 030 } 031 032 }