Package com.axelor.workflow.split
Enum Class JoinDecision
- All Implemented Interfaces:
Serializable,Comparable<JoinDecision>,Constable
Where one activation of a split stands: whether its join may continue, and if not, whether it
ever will.
decide(java.lang.Integer, int, int) is a pure function of three counts, so the synchronous walk and the
durable protocol cannot disagree on the arithmetic.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe policy is met: continue past the join, cancelling whatever is left under a quorum.Every branch ended before the join, so there is nothing to continue with and the owner simply finishes.The quorum can no longer be met; the run fails, since nothing would ever release the join.Something can still arrive; the join waits. -
Method Summary
Modifier and TypeMethodDescriptionstatic JoinDecisionstored()The decision as the split row stores it.static IntegerthresholdOf(WorkflowPlan.JoinPolicy policy) A quorum's size, ornullwhen the policy isall.static JoinDecisionReturns the enum constant of this class with the specified name.static JoinDecision[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
Something can still arrive; the join waits. -
CONTINUE
The policy is met: continue past the join, cancelling whatever is left under a quorum. -
END
Every branch ended before the join, so there is nothing to continue with and the owner simply finishes. Onlyallproduces this. -
FAIL
The quorum can no longer be met; the run fails, since nothing would ever release the join.
-
-
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
-
decide
- Parameters:
threshold- arrivals a quorum needs, ornullforallarrived- accepted arrivals at the join so far (A)pending- branches that can still arrive (P) — not started, running, parked, or blocked on a nested split
-
thresholdOf
A quorum's size, ornullwhen the policy isall. -
stored
The decision as the split row stores it.
-