Enum Class TeamExecutionState
- All Implemented Interfaces:
Serializable,Comparable<TeamExecutionState>,Constable
Execution states supported by a Select AI Agent team.
UNKNOWN represents a state introduced by a newer database
release. It allows state retrieval to remain forward-compatible while
preventing an unknown state from being submitted by an execution-state
request.
- Since:
- 1.1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe workflow failed.The team workflow is running.The workflow completed successfully.A state introduced by a newer database release.The workflow is waiting for human input. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the database state value.booleanisKnown()Indicates whether this state is supported by this SDK release.static TeamExecutionStateParses a database state value.static TeamExecutionStateReturns the enum constant of this class with the specified name.static TeamExecutionState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING
The team workflow is running. -
WAITING_FOR_HUMAN
The workflow is waiting for human input. -
SUCCEEDED
The workflow completed successfully. -
FAILED
The workflow failed. -
UNKNOWN
A state introduced by a newer database release.
-
-
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
-
of
Parses a database state value.- Parameters:
value- database state value- Returns:
- matching state, or
UNKNOWNfor a newer value - Throws:
IllegalArgumentException- whenvalueis null or blank
-
getValue
Returns the database state value.- Returns:
- canonical database state value
-
isKnown
Indicates whether this state is supported by this SDK release.- Returns:
falseonly forUNKNOWN
-