Enum Class ProcessState
- All Implemented Interfaces:
Serializable
,Comparable<ProcessState>
,Constable
ProcessState represents the state of a process.
Not all process states are visible in all environments.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionActive process.The process has been archived and deleted.The process has been cancelled.Process has completed, but has not yet been deleted.The process has been deleted.This status should never be returned, but would be if the pp!This status should never be returned, but would be if the pp!The process has been paused.The process is paused by an exception.The process instance has been REQUESTED, but the process has not yet been picked up by the queue and started.The process is terminating, but the end node has not yet completed.The process is unfinished, in that the parent process ended before this process ended. -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
static ProcessState
getProcessState
(int code) static ProcessState
Returns the enum constant of this class with the specified name.static ProcessState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
Active process. The process has started and is either currently running or it has started running and is eligible to continue to run. -
ARCHIVED_AND_DELETED
The process has been archived and deleted. You may not be able to distinguish anything further about this process. -
CANCELLED
The process has been cancelled. It cannot be restarted. -
COMPLETED
Process has completed, but has not yet been deleted. -
DELETED
The process has been deleted. You may not be able to distinguish anything further about this process. -
ERROR_RETRIEVING_STATE
This status should never be returned, but would be if the pp!status could not be retrieved from storage, such as due to a connection error. A log message should be generated if this is returned. -
INVALID_STATUS_CODE
This status should never be returned, but would be if the pp!status were set to an invalid value. -
PAUSED
The process has been paused. It will not make further progress until resumed. -
PAUSED_BY_EXCEPTION
The process is paused by an exception. It could be resumed if the cause of the exception is resolved. -
REQUESTED
The process instance has been REQUESTED, but the process has not yet been picked up by the queue and started. This state allows one to distinguish a requested, but not yet started, process vs. one that has completed and deleted its data. (EPEx only) -
TERMINATING
The process is terminating, but the end node has not yet completed. -
UNFINISHED
The process is unfinished, in that the parent process ended before this process ended.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()- Returns:
- code number for this state
-
getProcessState
- Parameters:
code
-- Returns:
- the code number converted into a ProcessState
-