Videoautomat

videoautomat.contentcreator.stdactions
Class RunProcessAction

java.lang.Object
  extended by videoautomat.contentcreator.stdactions.RunProcessAction

public class RunProcessAction
extends Object

Standart action to start an sale.SaleProcess.

Author:
Tobias Ruch

Constructor Summary
RunProcessAction(SaleProcess process)
          Constructs a new action to start the process.
RunProcessAction(SaleProcess process, DataBasket basket)
          Constructs a new action to start the process.
 
Method Summary
 void doAction(SaleProcess saleProcess, SalesPoint salePoint)
          Applies the action and start the given process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunProcessAction

public RunProcessAction(SaleProcess process)
Constructs a new action to start the process.

Parameters:
process - - sale.SaleProcess which should be started by this action.

RunProcessAction

public RunProcessAction(SaleProcess process,
                        DataBasket basket)
Constructs a new action to start the process.

Parameters:
process - - sale.SaleProcess which should be started by this action.
basket - - data.ooimpl.DataBasket attached to the process.
Method Detail

doAction

public void doAction(SaleProcess saleProcess,
                     SalesPoint salePoint)
              throws Throwable
Applies the action and start the given process.

Parameters:
saleProcess - - current sale.SaleProecess
salePoint - - current sale.SalesPoint
Throws:
Throwable

Videoautomat