bea Systems, Inc.

theory.smart.axiom.workflow
Interface State

All Known Implementing Classes:
StateImpl

public interface State
extends Belonging

Represents a discrete state in a state machine or workflow. It is contained by a StateMachine and refered to by Transitions

                  name
 [State] <*>------> [String] 

 

See Also:
StateHome, StateImpl

Method Summary
 void enter(Transition trans)
          This method is invoked whenever the state is entered.
 void error(Transition trans)
          This method is invoked whenever the state is transitioned from in erro.
 void exit(Transition trans)
          This method is invoked whenever the state is transitioned from.
 TransitionPolicy getEnterPolicy()
          Get the transition policy that is invoked when the state is entered.
 TransitionPolicy getErrorPolicy()
          Set the transition policy that is invoked when the state is exited with an invalid transition.
 TransitionPolicy getExitPolicy()
          Get the transition policy that is invoked when the state is exited.
 java.lang.String getName()
          Get the value of name
 void setEnterPolicy(TransitionPolicy policy)
          Set a transition policy that is invoked when the state is entered.
 void setErrorPolicy(TransitionPolicy policy)
          Set a transition policy that is invoked when the state is exited with an invalid transition.
 void setExitPolicy(TransitionPolicy policy)
          Set a transition policy that is invoked when the state is exited.
 void setName(java.lang.String name)
          Set the value of name
 
Methods inherited from interface theory.smart.foundation.Belonging
equals, value
 
Methods inherited from interface com.sun.java.util.collections.Comparable
compareTo
 

Method Detail

getName

public java.lang.String getName()
Get the value of name
Returns:
name.

setName

public void setName(java.lang.String name)
Set the value of name
Parameters:
names - name to be added

enter

public void enter(Transition trans)
           throws java.rmi.RemoteException
This method is invoked whenever the state is entered. It searches for an enter policy and invokes it.

exit

public void exit(Transition trans)
          throws java.rmi.RemoteException
This method is invoked whenever the state is transitioned from. It searches for an Exit Policy and invokes it if present.

error

public void error(Transition trans)
           throws java.rmi.RemoteException
This method is invoked whenever the state is transitioned from in erro. It searches for an Error Policy and invokes it if present

setEnterPolicy

public void setEnterPolicy(TransitionPolicy policy)
                    throws java.rmi.RemoteException
Set a transition policy that is invoked when the state is entered.

getEnterPolicy

public TransitionPolicy getEnterPolicy()
                                throws java.rmi.RemoteException
Get the transition policy that is invoked when the state is entered.

setExitPolicy

public void setExitPolicy(TransitionPolicy policy)
                   throws java.rmi.RemoteException
Set a transition policy that is invoked when the state is exited.

getExitPolicy

public TransitionPolicy getExitPolicy()
                               throws java.rmi.RemoteException
Get the transition policy that is invoked when the state is exited.

setErrorPolicy

public void setErrorPolicy(TransitionPolicy policy)
                    throws java.rmi.RemoteException
Set a transition policy that is invoked when the state is exited with an invalid transition.

getErrorPolicy

public TransitionPolicy getErrorPolicy()
                                throws java.rmi.RemoteException
Set the transition policy that is invoked when the state is exited with an invalid transition.

bea Systems, Inc.

© Copyright 2000 bea Systems, Inc. All rights reserved.