de.danet.an.workflow.api
Class Activity.ClosedCompletedState

java.lang.Object
  extended byde.danet.an.workflow.omgcore.WfExecutionObject.State
      extended byde.danet.an.workflow.omgcore.WfExecutionObject.ClosedState
          extended byde.danet.an.workflow.api.Activity.ClosedCompletedState
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Activity

public static class Activity.ClosedCompletedState
extends WfExecutionObject.ClosedState
implements java.io.Serializable

This class defines the sub-states of ClosedState.COMPLETED of a WfExecutionObject. These substates are an extention of the predefined omg states.

See Also:
Serialized Form

Field Summary
static Activity.ClosedCompletedState ABANDONED
          Provides a state indicating that the activity was completed by an exception.
static Activity.ClosedCompletedState NORMAL
          Provides a state indicating that the activity was completed normally.
 
Fields inherited from class de.danet.an.workflow.omgcore.WfExecutionObject.ClosedState
ABORTED, COMPLETED, TERMINATED
 
Fields inherited from class de.danet.an.workflow.omgcore.WfExecutionObject.State
CLOSED, OPEN
 
Constructor Summary
protected Activity.ClosedCompletedState(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

NORMAL

public static final Activity.ClosedCompletedState NORMAL
Provides a state indicating that the activity was completed normally.


ABANDONED

public static final Activity.ClosedCompletedState ABANDONED
Provides a state indicating that the activity was completed by an exception.

Constructor Detail

Activity.ClosedCompletedState

protected Activity.ClosedCompletedState(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.ClosedState
Returns:
parent in the state hierachy

workflowState

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

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

whileOpenState

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

Overrides:
whileOpenState in class WfExecutionObject.ClosedState
Returns:
the open state.

whyNotRunningState

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

Overrides:
whyNotRunningState in class WfExecutionObject.ClosedState
Returns:
the why not running state.

howClosedState

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

Overrides:
howClosedState in class WfExecutionObject.ClosedState
Returns:
the closed state.