Enum WorkRequirementStatus
- All Implemented Interfaces:
Serializable
,Comparable<WorkRequirementStatus>
,java.lang.constant.Constable
Describes the status of a work requirement.
The status of a work requirement provides an aggregated view of the statuses of the task groups within that requirement.
The status of a work requirement provides an aggregated view of the statuses of the task groups within that requirement.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe work requirement has been explicitly cancelled by the user.The work requirement is in the process of cancelling, once no task groups are currently executing the status will become CANCELLED.All task groups in the work requirement have been completed.All task groups in the work requirement have been finished but at least one has failed.The work requirement has been held by the user and no further tasks will be executed until it is resumed.The work requirement is in progress and its tasks can be executed. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true, if the status indicates the work requirement is finished; otherwise, false.static WorkRequirementStatus
Returns the enum constant of this type with the specified name.static WorkRequirementStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RUNNING
The work requirement is in progress and its tasks can be executed. -
HELD
The work requirement has been held by the user and no further tasks will be executed until it is resumed. Task group resources (e.g. Workers) will be released. -
COMPLETED
All task groups in the work requirement have been completed. -
FAILED
All task groups in the work requirement have been finished but at least one has failed. -
CANCELLING
The work requirement is in the process of cancelling, once no task groups are currently executing the status will become CANCELLED. -
CANCELLED
The work requirement has been explicitly cancelled by the user.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
isFinished
public boolean isFinished()Returns true, if the status indicates the work requirement is finished; otherwise, false.- Returns:
- true, if the status indicates the work requirement is finished; otherwise, false
-