ALBPM Process API

fuego.papi
Class ProcessInstanceState

java.lang.Object
  extended by fuego.papi.ProcessInstanceState
All Implemented Interfaces:
fuego.lang.EnumType

public class ProcessInstanceState
extends Object
implements fuego.lang.EnumType

Enumerates the different process instance's status.

It can be:


Field Summary
static int ABORTED
          The instance was aborted.
static int ACTIVITY_COMPLETED
          The instance has been completed the activity.
static int COMPLETED
          The instance finished its flow.
static int EXCEPTION
          The instance was sent to an exception (in an exception flow).
static int GRABBED
          The instance was grabbed (in a Grab activity).
static int NONE
          Instance without status assigned.
static int RUNNING
          The instance is beeing executed.
static int SUSPENDED
          The instance was suspended.
 
Constructor Summary
ProcessInstanceState()
           
 
Method Summary
static String getDescription(int state, Locale locale)
          Gets the localize description of the specified state number.
static String getId(int val)
          Gets the Id of the specified state number.
static int[] getLocaleGrabValues()
          For internal use only.
static int[] getValues()
          Returns all valid values
static int valueOf(String id)
          Returns the state number for the specified state Id.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Instance without status assigned.

See Also:
Constant Field Values

RUNNING

public static final int RUNNING
The instance is beeing executed.

See Also:
Constant Field Values

EXCEPTION

public static final int EXCEPTION
The instance was sent to an exception (in an exception flow).

See Also:
Constant Field Values

SUSPENDED

public static final int SUSPENDED
The instance was suspended.

See Also:
Constant Field Values

GRABBED

public static final int GRABBED
The instance was grabbed (in a Grab activity).

See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
The instance finished its flow.

See Also:
Constant Field Values

ABORTED

public static final int ABORTED
The instance was aborted.

See Also:
Constant Field Values

ACTIVITY_COMPLETED

public static final int ACTIVITY_COMPLETED
The instance has been completed the activity.

See Also:
Constant Field Values
Constructor Detail

ProcessInstanceState

public ProcessInstanceState()
Method Detail

getDescription

public static String getDescription(int state,
                                    Locale locale)
Gets the localize description of the specified state number.

Parameters:
state - state to obtain which description.
locale - the desired locale.
Returns:
localized description of the given state.

getId

public static String getId(int val)
Gets the Id of the specified state number.

Parameters:
val - state number to check.
Returns:
State Id

getLocaleGrabValues

public static int[] getLocaleGrabValues()
For internal use only.

Returns:
Grab locale values

valueOf

public static int valueOf(String id)
Returns the state number for the specified state Id.

Parameters:
id - state Id to check.
Returns:
State number

getValues

public static int[] getValues()
Returns all valid values

Returns:
ProcessInstanceState values

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved