Enum Class StepStatus
- All Implemented Interfaces:
Serializable,Comparable<StepStatus>,Constable
Step status.
- Since:
- 5.4.0
- Author:
- Allard Buijze, Stefan Dragisic, Simon Zambrovski
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe step was cancelled, either directly or through a terminal transition of the workflow.The step finished successfully.The step finished with an error and no retry is left.A retry attempt was accepted by the store and is running.An attempt failed and the retry policy allows another one.The first attempt of the step was accepted by the store and is running.The step did not finish within its timeout. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the status is terminal.static StepStatusReturns the enum constant of this class with the specified name.static StepStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STARTED
The first attempt of the step was accepted by the store and is running. -
RETRYING
An attempt failed and the retry policy allows another one. The step waits for the backoff before the next attempt starts. -
RETRY_STARTED
A retry attempt was accepted by the store and is running. Recorded once per retry attempt, after theRETRYINGrecord of the attempt that failed. -
COMPLETED
The step finished successfully. Terminal. -
FAILED
The step finished with an error and no retry is left. Terminal. -
TIMED_OUT
The step did not finish within its timeout. Terminal. -
CANCELLED
The step was cancelled, either directly or through a terminal transition of the workflow. Terminal.
-
-
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()Checks if the status is terminal.- Returns:
- true, if terminal.
-