net.kwfgrid.gwes
Enum Activity.Status

java.lang.Object
  extended by java.lang.Enum<Activity.Status>
      extended by net.kwfgrid.gwes.Activity.Status
All Implemented Interfaces:
Serializable, Comparable<Activity.Status>
Enclosing class:
Activity

public static enum Activity.Status
extends Enum<Activity.Status>

Valid status for activities:
Status UNDEFINED. The status remains UNDEFINED from the construction of the activity until the method initiateActivity() has been called.
Status INITIATED. The activity has been created and initialized but not yet been started or aborted.
Status RUNNING. The activity has been started but it is not yet active or complete and it has not been suspended or aborted.
Status SUSPENDED. The activity is quiescent and can be returned to the running state via resumeActivity().
Status ACTIVE. Resources related to this activity have been allocated and/or sub activities have been started.
Status TERMINATED. The execution of this activity instance has aborted before its normal completion. This can be due to an activity exception (activity failed) or via the method abortActivity().
Status COMPLETED. The activity instance has fulfilled the conditions for completion. The activity instance will be destroyed.
Status FAILED. Activity has failed. It will be retried.


Enum Constant Summary
ACTIVE
           
COMPLETED
           
FAILED
           
INITIATED
           
RUNNING
           
SUSPENDED
           
TERMINATED
           
UNDEFINED
           
 
Method Summary
static Activity.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Activity.Status[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDEFINED

public static final Activity.Status UNDEFINED

INITIATED

public static final Activity.Status INITIATED

RUNNING

public static final Activity.Status RUNNING

SUSPENDED

public static final Activity.Status SUSPENDED

ACTIVE

public static final Activity.Status ACTIVE

TERMINATED

public static final Activity.Status TERMINATED

COMPLETED

public static final Activity.Status COMPLETED

FAILED

public static final Activity.Status FAILED
Method Detail

values

public static Activity.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Activity.Status c : Activity.Status.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Activity.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.