Enum Class QuestionStatus
- All Implemented Interfaces:
Serializable,Comparable<QuestionStatus>,Constable
Lifecycle state of a human-in-the-loop
Question.
Transitions are strictly forward: WAITING -> (ANSWERED | ABORTED | EXPIRED). A
question never leaves a terminal state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA human (or the pipeline) aborted the input; the pipeline received an abort.A human submitted an answer (choice or free text); the pipeline has resumed.The SLA elapsed with no answer; the pipeline received a timeout.The pipeline is paused and waiting for a human to answer. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic QuestionStatusReturns the enum constant of this class with the specified name.static QuestionStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WAITING
The pipeline is paused and waiting for a human to answer. -
ANSWERED
A human submitted an answer (choice or free text); the pipeline has resumed. -
ABORTED
A human (or the pipeline) aborted the input; the pipeline received an abort. -
EXPIRED
The SLA elapsed with no answer; the pipeline received a timeout.
-
-
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
-
isTerminal
public boolean isTerminal()- Returns:
trueif this is a terminal state (no further transitions allowed).
-