Enum Class SubFlowReusePolicy
- All Implemented Interfaces:
Serializable, Comparable<SubFlowReusePolicy>, Constable
Controls how a SubFlow condition resolves an execution that already uses its generated Flow ID.
The server first compares normalized request IDs, making a retried start idempotent regardless of this policy. It then describes the existing execution and applies the selected state machine.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStarts a new execution and terminates an existing running execution.Attaches to a running execution or returns any existing terminal result.Attaches to running or completed executions and restarts an abnormally closed execution. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubFlowReusePolicyReturns the enum constant of this class with the specified name.static SubFlowReusePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ATTACH
Attaches to a running execution or returns any existing terminal result. -
RESTART_IF_PREVIOUS_EXITS_ABNORMALLY
Attaches to running or completed executions and restarts an abnormally closed execution.This is the default. Failed, canceled, timed-out, and terminated executions are abnormal.
-
ALWAYS_RESTART
Starts a new execution and terminates an existing running execution.
-
-
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
-