wt.workflow.engine
Class WfTransition

java.lang.Object
  extended bywt.fc.EnumeratedType
      extended bywt.workflow.engine.WfTransition
All Implemented Interfaces:
EnumeratedType, LocalizableMessage, LocalizableMetadata, Message, Serializable

public class WfTransition
extends EnumeratedType
implements Serializable

Used together with the State type to define the state transitions anexecution object can perform when it is in a particular state. The transitions currently implemented are the following:



Supported API: false

Extendable: false

See Also:
WfExecutionObject, Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.fc.EnumeratedType
 
Field Summary
static WfTransition ABORT
          

Supported API: false
private static String CLASS_RESOURCE
           
private static String CLASSNAME
           
static WfTransition COMPLETE
          

Supported API: false
static WfTransition DISABLE
          

Supported API: false
static WfTransition ENABLE
          

Supported API: false
private static Hashtable localeSets
           
static WfTransition RESET
          

Supported API: false
private static String RESOURCE
           
static WfTransition RESUME
          

Supported API: false
static WfTransition SKIP
          

Supported API: false
static WfTransition START
          

Supported API: false
static WfTransition SUSPEND
          

Supported API: false
static WfTransition TERMINATE
          

Supported API: false
private static EnumeratedType[] valueSet
           
 
Fields inherited from class wt.fc.EnumeratedType
secretHandshake, SEP_CHAR
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Constructor Summary
protected WfTransition()
          Used by sub-classes that need a default constructor.
 
Method Summary
protected  EnumeratedType[] getLocaleSet(Locale locale)
          Returns the set of values (instances) for this instance, for the specified locale.
 EnumeratedType[] getValueSet()
          Returns a copy of the set of valid values (instances) for this instance, for the current user locale.
static WfTransition getWfTransitionDefault()
          Returns the default value (instance) for the WfTransition set.
static WfTransition[] getWfTransitionSet()
          Returns a copy of the set of valid values (instances) for the WfTransition class.
private static EnumeratedType[] initializeLocaleSet(Locale locale)
           
static WfTransition newWfTransition(int secretHandshake)
          Used by EnumeratedType for constructing instances of WfTransition, from a resource bundle.
static WfTransition toWfTransition(String internal_value)
          Returns the WfTransition instance for the internal_value argument.
protected  EnumeratedType[] valueSet()
          Returns a reference to the set of valid values (instances) for this instance.
 
Methods inherited from class wt.fc.EnumeratedType
defaultEnumeratedType, dynamicInstance, equals, getAbbreviatedDisplay, getComment, getComment, getDisplay, getDisplay, getFullDisplay, getInternalKey, getLocalizedMessage, getLocalizedValues, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getShortDescription, getStringValue, getStringValue, getValidSet, getValue, hashCode, instantiateSet, isDefaultValue, isDefaultValue, isPrimaryKey, isSelectable, main, readResolve, toEnumeratedType, toEnumeratedType, toEnumeratedType, toString, validateFriendship
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CLASS_RESOURCE

private static final String CLASS_RESOURCE
See Also:
Constant Field Values

valueSet

private static final EnumeratedType[] valueSet

localeSets

private static Hashtable localeSets

START

public static final WfTransition START


Supported API: false


DISABLE

public static final WfTransition DISABLE


Supported API: false


ENABLE

public static final WfTransition ENABLE


Supported API: false


SUSPEND

public static final WfTransition SUSPEND


Supported API: false


RESUME

public static final WfTransition RESUME


Supported API: false


SKIP

public static final WfTransition SKIP


Supported API: false


COMPLETE

public static final WfTransition COMPLETE


Supported API: false


TERMINATE

public static final WfTransition TERMINATE


Supported API: false


ABORT

public static final WfTransition ABORT


Supported API: false


RESET

public static final WfTransition RESET


Supported API: false

Constructor Detail

WfTransition

protected WfTransition()
Used by sub-classes that need a default constructor.

Supported API: false

Method Detail

newWfTransition

public static WfTransition newWfTransition(int secretHandshake)
                                    throws IllegalAccessException
Used by EnumeratedType for constructing instances of WfTransition, from a resource bundle.

Supported API: false

Parameters:
secretHandshake -
Returns:
WfTransition
Throws:
IllegalAccessException

toWfTransition

public static WfTransition toWfTransition(String internal_value)
                                   throws WTInvalidParameterException
Returns the WfTransition instance for the internal_value argument.

Supported API: false

Parameters:
internal_value - The internal (persistent) value for a valid instance of WfTransition.
Returns:
WfTransition
Throws:
WTInvalidParameterException

getWfTransitionDefault

public static WfTransition getWfTransitionDefault()
Returns the default value (instance) for the WfTransition set.

Supported API: false

Returns:
WfTransition

getWfTransitionSet

public static WfTransition[] getWfTransitionSet()
Returns a copy of the set of valid values (instances) for the WfTransition class.

Supported API: false

Returns:
WfTransition[]

getValueSet

public EnumeratedType[] getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale.

Supported API: false

Specified by:
getValueSet in class EnumeratedType
Returns:
EnumeratedType[]

valueSet

protected EnumeratedType[] valueSet()
Returns a reference to the set of valid values (instances) for this instance.

Supported API: false

Specified by:
valueSet in class EnumeratedType
Returns:
EnumeratedType[]

getLocaleSet

protected EnumeratedType[] getLocaleSet(Locale locale)
Returns the set of values (instances) for this instance, for the specified locale.

Supported API: false

Specified by:
getLocaleSet in class EnumeratedType
Parameters:
locale -
Returns:
EnumeratedType[]

initializeLocaleSet

private static EnumeratedType[] initializeLocaleSet(Locale locale)
                                             throws Throwable
Parameters:
locale -
Returns:
EnumeratedType[]
Throws:
Throwable