org.javasteps
Enum ProcessContext.ProcessStatus

java.lang.Object
  extended by java.lang.Enum<ProcessContext.ProcessStatus>
      extended by org.javasteps.ProcessContext.ProcessStatus
All Implemented Interfaces:
Serializable, Comparable<ProcessContext.ProcessStatus>
Enclosing interface:
ProcessContext

public static enum ProcessContext.ProcessStatus
extends Enum<ProcessContext.ProcessStatus>

The Status enum marks the status of the process


Enum Constant Summary
FAILED
          The process was stopped because some action step failed
IDLE
          The process is not runnning yet
RUNNING
          The process is running
STOPPED
          The process was stopped by the user
SUCCESS
          The process finished normally
 
Method Summary
static ProcessContext.ProcessStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProcessContext.ProcessStatus[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IDLE

public static final ProcessContext.ProcessStatus IDLE
The process is not runnning yet


RUNNING

public static final ProcessContext.ProcessStatus RUNNING
The process is running


SUCCESS

public static final ProcessContext.ProcessStatus SUCCESS
The process finished normally


STOPPED

public static final ProcessContext.ProcessStatus STOPPED
The process was stopped by the user


FAILED

public static final ProcessContext.ProcessStatus FAILED
The process was stopped because some action step failed

Method Detail

values

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

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

valueOf

public static ProcessContext.ProcessStatus 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