Package io.iworkflow.core
Class StateDecision
- java.lang.Object
-
- io.iworkflow.core.StateDecision
-
@Immutable public abstract class StateDecision extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static StateDecisionDEAD_ENDstatic StateDecisionFORCE_FAILING_WORKFLOW
-
Constructor Summary
Constructors Constructor Description StateDecision()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static io.iworkflow.core.ImmutableStateDecision.Builderbuilder()static StateDecisionforceCompleteWorkflow()static StateDecisionforceCompleteWorkflow(java.lang.Object output)static StateDecisionforceFailWorkflow()static StateDecisionforceFailWorkflow(java.lang.Object output)abstract java.util.List<StateMovement>getNextStates()static StateDecisiongracefulCompleteWorkflow()static StateDecisiongracefulCompleteWorkflow(java.lang.Object output)static StateDecisionmultiNextStates(StateMovement... stateMovements)static StateDecisionmultiNextStates(java.lang.Class<? extends WorkflowState>... states)static StateDecisionmultiNextStates(java.lang.String... stateIds)use the other one with WorkflowState class param if the StateId is provided by default, to make your code cleanerstatic StateDecisionsingleNextState(java.lang.Class<? extends WorkflowState> stateClass)static StateDecisionsingleNextState(java.lang.Class<? extends WorkflowState> stateClass, java.lang.Object stateInput)static StateDecisionsingleNextState(java.lang.String stateId)use the other one with WorkflowState class param if the StateId is provided by default, to make your code cleanerstatic StateDecisionsingleNextState(java.lang.String stateId, java.lang.Object stateInput)use the other one with WorkflowState class param if the StateId is provided by default, to make your code cleaner
-
-
-
Field Detail
-
DEAD_END
public static final StateDecision DEAD_END
-
FORCE_FAILING_WORKFLOW
public static final StateDecision FORCE_FAILING_WORKFLOW
-
-
Method Detail
-
getNextStates
public abstract java.util.List<StateMovement> getNextStates()
-
builder
public static io.iworkflow.core.ImmutableStateDecision.Builder builder()
-
gracefulCompleteWorkflow
public static StateDecision gracefulCompleteWorkflow(java.lang.Object output)
-
gracefulCompleteWorkflow
public static StateDecision gracefulCompleteWorkflow()
-
forceCompleteWorkflow
public static StateDecision forceCompleteWorkflow(java.lang.Object output)
-
forceCompleteWorkflow
public static StateDecision forceCompleteWorkflow()
-
forceFailWorkflow
public static StateDecision forceFailWorkflow(java.lang.Object output)
-
forceFailWorkflow
public static StateDecision forceFailWorkflow()
-
singleNextState
public static StateDecision singleNextState(java.lang.Class<? extends WorkflowState> stateClass)
-
singleNextState
public static StateDecision singleNextState(java.lang.String stateId)
use the other one with WorkflowState class param if the StateId is provided by default, to make your code cleaner- Parameters:
stateId- stateId- Returns:
- state decision
-
singleNextState
public static StateDecision singleNextState(java.lang.Class<? extends WorkflowState> stateClass, java.lang.Object stateInput)
-
singleNextState
public static StateDecision singleNextState(java.lang.String stateId, java.lang.Object stateInput)
use the other one with WorkflowState class param if the StateId is provided by default, to make your code cleaner- Parameters:
stateId- stateId of next statestateInput- input for next state- Returns:
- state decision
-
multiNextStates
public static StateDecision multiNextStates(StateMovement... stateMovements)
-
multiNextStates
public static StateDecision multiNextStates(java.lang.Class<? extends WorkflowState>... states)
-
multiNextStates
public static StateDecision multiNextStates(java.lang.String... stateIds)
use the other one with WorkflowState class param if the StateId is provided by default, to make your code cleaner- Parameters:
stateIds- stateIds of next states- Returns:
- state decision
-
-