SalesPoint Framework v3.0

sale
Class GateChangeTransition

java.lang.Object
  |
  +--sale.GateChangeTransition

public class GateChangeTransition
extends Object
implements Transition

Convenience implementation of a Transition that simply changes to another gate. Additionally, some other useful Transitions are provided.

Hooks:
Create a transition that just changes to a gate
Since:
v2.0
Version:
2.0 17/08/1999
Author:
Steffen Zschaler
See Also:
Transition, Gate, Serialized Form

Field Summary
static Transition CHANGE_TO_COMMIT_GATE
          Transition that will go to the calling process' commit gate.
static Transition CHANGE_TO_LOG_GATE
          Transition that will go to the calling process' log gate.
static Transition CHANGE_TO_QUIT_GATE
          Transition that will go to the calling process' quit gate.
static Transition CHANGE_TO_ROLLBACK_GATE
          Transition that will go to the calling process' rollback gate.
static Transition CHANGE_TO_STOP_GATE
          Transition that will go to the calling process' stop gate.
protected  Gate m_gTarget
          The target gate.
 
Constructor Summary
GateChangeTransition(Gate gTarget)
          Create a new GateChangeTransition.
 
Method Summary
 Gate perform(SaleProcess p, User u)
          Perform the Transition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_gTarget

protected Gate m_gTarget
The target gate.

CHANGE_TO_ROLLBACK_GATE

public static final Transition CHANGE_TO_ROLLBACK_GATE
Transition that will go to the calling process' rollback gate.
Hooks:
Select a Transition that changes to a special process gate

CHANGE_TO_COMMIT_GATE

public static final Transition CHANGE_TO_COMMIT_GATE
Transition that will go to the calling process' commit gate.
Hooks:
Select a Transition that changes to a special process gate

CHANGE_TO_QUIT_GATE

public static final Transition CHANGE_TO_QUIT_GATE
Transition that will go to the calling process' quit gate.
Hooks:
Select a Transition that changes to a special process gate

CHANGE_TO_STOP_GATE

public static final Transition CHANGE_TO_STOP_GATE
Transition that will go to the calling process' stop gate.
Hooks:
Select a Transition that changes to a special process gate

CHANGE_TO_LOG_GATE

public static final Transition CHANGE_TO_LOG_GATE
Transition that will go to the calling process' log gate.
Hooks:
Select a Transition that changes to a special process gate
Constructor Detail

GateChangeTransition

public GateChangeTransition(Gate gTarget)
Create a new GateChangeTransition.
Parameters:
gTarget - the Gate to change to.
Method Detail

perform

public final Gate perform(SaleProcess p,
                          User u)
Perform the Transition. I.e. go to the gate indicated on creation.
Override:
Never.
Specified by:
perform in interface Transition

SalesPoint Framework v3.0