com.filenet.api.constants
Class TaskState
- java.lang.Object
-
- com.filenet.api.constants.TaskState
-
- All Implemented Interfaces:
- java.io.Serializable
public final class TaskState extends java.lang.Object implements java.io.SerializableProvides a set of constants that identify the states of aCmTaskobject. For a complete description of each state, see Task State Machine.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static TaskStateCOMPLETEIndicates that the task has been successfully completed.static intCOMPLETE_AS_INTAnintvalue associated with the COMPLETE instance of this class.static TaskStateFAILEDIndicates that execution of the task failed.static intFAILED_AS_INTAnintvalue associated with the FAILED instance of this class.static TaskStateREADYIndicates that the task is no longer blocked either by predecessors that have not completed or by a precondition, and, therefore, it is ready to be worked on.static intREADY_AS_INTAnintvalue associated with the READY instance of this class.static TaskStateWAITING_ALLIndicates that the task is blocked by both incomplete predecessors and an unsatisfied precondition.static intWAITING_ALL_AS_INTAnintvalue associated with the WAITING_ALL instance of this class.static TaskStateWAITING_PRECONDITIONIndicates that the task is yet to satisfy its precondition, but is not blocked by any incomplete predecessors.static intWAITING_PRECONDITION_AS_INTAnintvalue associated with the WAITING_PRECONDITION instance of this class.static TaskStateWAITING_PREDECESSORSIndicates that the task has satisfied its precondition but is blocked by incomplete predecessors.static intWAITING_PREDECESSORS_AS_INTAnintvalue associated with the WAITING_PREDECESSORS instance of this class.static TaskStateWORKINGIndicates that the task is being actively worked on.static intWORKING_AS_INTAnintvalue associated with the WORKING instance of this class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static TaskStategetInstanceFromInt(int value)Returns an instance of this class using its associated integer value.intgetValue()Returns the internal integer value associated with a specific instance of this class.java.lang.StringtoString()Returns aStringrepresentation of this enumeration instance.
-
-
-
Field Detail
-
READY_AS_INT
public static final int READY_AS_INT
Anintvalue associated with the READY instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
READY
public static final TaskState READY
Indicates that the task is no longer blocked either by predecessors that have not completed or by a precondition, and, therefore, it is ready to be worked on.
-
WORKING_AS_INT
public static final int WORKING_AS_INT
Anintvalue associated with the WORKING instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
WORKING
public static final TaskState WORKING
Indicates that the task is being actively worked on.
-
COMPLETE_AS_INT
public static final int COMPLETE_AS_INT
Anintvalue associated with the COMPLETE instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
COMPLETE
public static final TaskState COMPLETE
Indicates that the task has been successfully completed.
-
FAILED_AS_INT
public static final int FAILED_AS_INT
Anintvalue associated with the FAILED instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
FAILED
public static final TaskState FAILED
Indicates that execution of the task failed.
-
WAITING_ALL_AS_INT
public static final int WAITING_ALL_AS_INT
Anintvalue associated with the WAITING_ALL instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
WAITING_ALL
public static final TaskState WAITING_ALL
Indicates that the task is blocked by both incomplete predecessors and an unsatisfied precondition.
-
WAITING_PRECONDITION_AS_INT
public static final int WAITING_PRECONDITION_AS_INT
Anintvalue associated with the WAITING_PRECONDITION instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
WAITING_PRECONDITION
public static final TaskState WAITING_PRECONDITION
Indicates that the task is yet to satisfy its precondition, but is not blocked by any incomplete predecessors. This is the initial state for all newly createdCmTaskinstances.
-
WAITING_PREDECESSORS_AS_INT
public static final int WAITING_PREDECESSORS_AS_INT
Anintvalue associated with the WAITING_PREDECESSORS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.- See Also:
- Constant Field Values
-
WAITING_PREDECESSORS
public static final TaskState WAITING_PREDECESSORS
Indicates that the task has satisfied its precondition but is blocked by incomplete predecessors.
-
-
Method Detail
-
getValue
public int getValue()
Returns the internal integer value associated with a specific instance of this class.- Returns:
- The enumeration instance's ordinal value.
- See Also:
getInstanceFromInt(int)
-
toString
public java.lang.String toString()
Returns aStringrepresentation of this enumeration instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- The enumeration instance's description.
-
getInstanceFromInt
public static TaskState getInstanceFromInt(int value)
Returns an instance of this class using its associated integer value.- Parameters:
value- The integer value. (See the *_AS_INT fields.)- Returns:
- The enumeration instance with the given ordinal value.
- Throws:
EngineRuntimeException- If an enumeration instance with the given ordinal value does not exist.- See Also:
getValue()
-
-