de.danet.an.workflow.omgcore
Class WfExecutionObject.NotRunningState

java.lang.Object
  extended byde.danet.an.workflow.omgcore.WfExecutionObject.State
      extended byde.danet.an.workflow.omgcore.WfExecutionObject.OpenState
          extended byde.danet.an.workflow.omgcore.WfExecutionObject.NotRunningState
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
WfExecutionObject

public static class WfExecutionObject.NotRunningState
extends WfExecutionObject.OpenState
implements java.io.Serializable

This class defines the sub-states of OpenState.NOT_RUNNING of a WfExecutionObject as returned by whyNotRunningState().

See Also:
Serialized Form

Field Summary
static WfExecutionObject.NotRunningState NOT_STARTED
          Provides a state after creation where the object is active and ready to be initialized and started.
static WfExecutionObject.NotRunningState SUSPENDED
          Provides a state to temporarily pause the execution of the object.
 
Fields inherited from class de.danet.an.workflow.omgcore.WfExecutionObject.OpenState
NOT_RUNNING, RUNNING
 
Fields inherited from class de.danet.an.workflow.omgcore.WfExecutionObject.State
CLOSED, OPEN
 
Constructor Summary
protected WfExecutionObject.NotRunningState(java.lang.String text)
          Default constructor.
 
Method Summary
 WfExecutionObject.State getParent()
          Returns the parent in the state hierachy if all states defined in this class or null, if this states are at the top level of the hierachy.
 WfExecutionObject.State howClosedState()
          Returns the workflow substate for closed execution objects.
 WfExecutionObject.State whileOpenState()
          Returns the workflow substate for open execution objects.
 WfExecutionObject.State whyNotRunningState()
          Returns the workflow substate for open, not running execution objects.
 WfExecutionObject.State workflowState()
          Returns the workflow state, i.e. the grandparent.
 
Methods inherited from class de.danet.an.workflow.omgcore.WfExecutionObject.State
fromString, isSameOrSubState, registerState, textRepresentation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_STARTED

public static final WfExecutionObject.NotRunningState NOT_STARTED
Provides a state after creation where the object is active and ready to be initialized and started.


SUSPENDED

public static final WfExecutionObject.NotRunningState SUSPENDED
Provides a state to temporarily pause the execution of the object. When an execution object is suspended, no execution objects depending on this object may be started.

Constructor Detail

WfExecutionObject.NotRunningState

protected WfExecutionObject.NotRunningState(java.lang.String text)
Default constructor.

Parameters:
text - Textual representation of the state
Method Detail

getParent

public WfExecutionObject.State getParent()
Returns the parent in the state hierachy if all states defined in this class or null, if this states are at the top level of the hierachy.

Overrides:
getParent in class WfExecutionObject.OpenState
Returns:
parent in the state hierachy

workflowState

public WfExecutionObject.State workflowState()
Returns the workflow state, i.e. the grandparent.

Overrides:
workflowState in class WfExecutionObject.OpenState
Returns:
the workflow state

whileOpenState

public WfExecutionObject.State whileOpenState()
Returns the workflow substate for open execution objects.

Overrides:
whileOpenState in class WfExecutionObject.OpenState
Returns:
the sub-state of open state

whyNotRunningState

public WfExecutionObject.State whyNotRunningState()
Returns the workflow substate for open, not running execution objects.

Overrides:
whyNotRunningState in class WfExecutionObject.OpenState
Returns:
the sub-state of not-running state

howClosedState

public WfExecutionObject.State howClosedState()
Returns the workflow substate for closed execution objects.

Overrides:
howClosedState in class WfExecutionObject.OpenState
Returns:
the sub-state of closed state