Package io.iworkflow.core
Class StateMovement
java.lang.Object
io.iworkflow.core.StateMovement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StateMovementstatic final StateMovementstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I> StateMovementcreate(Class<? extends WorkflowState<I>> stateClass) static <I> StateMovementcreate(Class<? extends WorkflowState<I>> stateClass, I stateInput) static <I> StateMovementcreate(Class<? extends WorkflowState<I>> stateClass, I stateInput, WorkflowStateOptions stateOptionsOverride) static StateMovementuse the other one with WorkflowState class param if the stateId is provided by default, to make your code cleanerstatic StateMovementcreate(String stateId, Object stateInput, WorkflowStateOptions stateOptionsOverride) use the other one with WorkflowState class param if the stateId is provided by default, to make your code cleanerstatic StateMovementcreate(String stateId, Object stateInput, WorkflowStateOptions stateOptionsOverride, String waitForKey) static StateMovementstatic StateMovementforceCompleteWorkflow(Object output) static StateMovementforceFailWorkflow(Object output) abstract Stringabstract Optional<WorkflowStateOptions>static StateMovementstatic StateMovementgracefulCompleteWorkflow(Object output)
-
Field Details
-
RESERVED_STATE_ID_PREFIX
- See Also:
-
DEAD_END_WORKFLOW_MOVEMENT
-
FORCE_FAILING_WORKFLOW_MOVEMENT
-
-
Constructor Details
-
StateMovement
public StateMovement()
-
-
Method Details
-
getStateId
-
getStateInput
-
getStateOptionsOverride
-
getWaitForKey
-
gracefulCompleteWorkflow
-
gracefulCompleteWorkflow
-
forceCompleteWorkflow
-
forceCompleteWorkflow
-
forceFailWorkflow
-
create
public static <I> StateMovement create(Class<? extends WorkflowState<I>> stateClass, I stateInput, WorkflowStateOptions stateOptionsOverride) - Type Parameters:
I- Class type of the WorkflowState input- Parameters:
stateClass- requiredstateInput- optional, can be nullstateOptionsOverride- optional, can be null. It is used to override the defined one in the State class- Returns:
- state movement
-
create
- Type Parameters:
I- Class type of the WorkflowState input- Parameters:
stateClass- requiredstateInput- optional, can be null- Returns:
- state movement
-
create
- Type Parameters:
I- Class type of the WorkflowState input- Parameters:
stateClass- required- Returns:
- state movement
-
create
public static StateMovement create(String stateId, Object stateInput, WorkflowStateOptions stateOptionsOverride) use the other one with WorkflowState class param if the stateId is provided by default, to make your code cleaner- Parameters:
stateId- requiredstateInput- optional, can be nullstateOptionsOverride- optional, can be null. It is used to override the defined one in the State class- Returns:
- state movement
-
create
public static StateMovement create(String stateId, Object stateInput, WorkflowStateOptions stateOptionsOverride, String waitForKey) -
create
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 movement
-