org.wfmc.wapi
Class WMProcessDefinitionState

java.lang.Object
  extended byorg.wfmc.wapi.WMObjectState
      extended byorg.wfmc.wapi.WMProcessDefinitionState
All Implemented Interfaces:
java.io.Serializable

public final class WMProcessDefinitionState
extends WMObjectState

Describes the supported states of a process definition. The states and their descriptions are taken from WfMC Interface 2/3.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static int CREATE_ACTION
          Create the process definition.
static int DELETE_ACTION
          Delete the process definition.
static int DISABLE_ACTION
          Disable the process definition.
static WMProcessDefinitionState DISABLED
          The process definition is disabled, and new instances cannot be created.
static int DISABLED_INT
           
static java.lang.String DISABLED_TAG
           
static int ENABLE_ACTION
          Enable the process definition.
static WMProcessDefinitionState ENABLED
          The process definition is enabled, and new instances can be created.
static int ENABLED_INT
           
static java.lang.String ENABLED_TAG
           
static int UPDATE_ACTION
          Update the process definition.
 
Fields inherited from class org.wfmc.wapi.WMObjectState
_state, DEFAULT_INT, FORCED_ACTION, ILLEGAL_ACTION, MESSAGE, NO_ACTION
 
Method Summary
protected  int[] getActionsByState()
          Returns the transitions from the current state, indexed by new state.
protected  int[] getStatesByAction()
          Returns the transitions from the current state, indexed by action.
protected  java.lang.String[] getTags()
          Returns the list of all state tags applicable to this instance's class.
protected  WMObjectState[] getValues()
          Returns the list of all state values applicable to this instance's class.
static WMProcessDefinitionState[] states()
           
static WMProcessDefinitionState valueOf(int state)
           
static WMProcessDefinitionState valueOf(java.lang.String state)
           
 
Methods inherited from class org.wfmc.wapi.WMObjectState
checkTransition, checkTransition, equals, getStates, getValue, hashCode, readResolve, stateFromAction, stringValue, toString, value, valueOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DISABLED_INT

public static final int DISABLED_INT
See Also:
DISABLED, Constant Field Values

ENABLED_INT

public static final int ENABLED_INT
See Also:
ENABLED, Constant Field Values

DISABLED_TAG

public static final java.lang.String DISABLED_TAG
See Also:
DISABLED, Constant Field Values

ENABLED_TAG

public static final java.lang.String ENABLED_TAG
See Also:
ENABLED, Constant Field Values

DISABLED

public static final WMProcessDefinitionState DISABLED
The process definition is disabled, and new instances cannot be created.


ENABLED

public static final WMProcessDefinitionState ENABLED
The process definition is enabled, and new instances can be created.


CREATE_ACTION

public static final int CREATE_ACTION
Create the process definition.

See Also:
Constant Field Values

DELETE_ACTION

public static final int DELETE_ACTION
Delete the process definition.

See Also:
Constant Field Values

DISABLE_ACTION

public static final int DISABLE_ACTION
Disable the process definition.

See Also:
Constant Field Values

ENABLE_ACTION

public static final int ENABLE_ACTION
Enable the process definition.

See Also:
Constant Field Values

UPDATE_ACTION

public static final int UPDATE_ACTION
Update the process definition.

See Also:
Constant Field Values
Method Detail

valueOf

public static WMProcessDefinitionState valueOf(java.lang.String state)

valueOf

public static WMProcessDefinitionState valueOf(int state)

states

public static WMProcessDefinitionState[] states()

getTags

protected java.lang.String[] getTags()
Description copied from class: WMObjectState
Returns the list of all state tags applicable to this instance's class. The array is indexed by state code. This is be a reference to a final array defined statically in the instance's subclass.

Specified by:
getTags in class WMObjectState
Returns:
Array of state tags.

getValues

protected WMObjectState[] getValues()
Description copied from class: WMObjectState
Returns the list of all state values applicable to this instance's class. This is a reference to a final array defined statically in the instance's subclass.

Specified by:
getValues in class WMObjectState
Returns:
Array of state objects.

getStatesByAction

protected int[] getStatesByAction()
Description copied from class: WMObjectState
Returns the transitions from the current state, indexed by action. Illegal transitions are marked by the array element value WMObjectState.ILLEGAL_ACTION.

Specified by:
getStatesByAction in class WMObjectState
Returns:
Array of state codes. This is a reference to a final array defined statically in the instance's subclass.

getActionsByState

protected int[] getActionsByState()
Description copied from class: WMObjectState
Returns the transitions from the current state, indexed by new state. Illegal transitions are marked by the array element value WMObjectState.ILLEGAL_ACTION.

Specified by:
getActionsByState in class WMObjectState
Returns:
Array of action codes. This is a reference to a final array defined statically in the instance's subclass.


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.