Package io.iworkflow.core
Class StateMovement
java.lang.Object
io.iworkflow.core.StateMovement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StateMovement
static final StateMovement
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I> StateMovement
create
(Class<? extends WorkflowState<I>> stateClass) static <I> StateMovement
create
(Class<? extends WorkflowState<I>> stateClass, I stateInput) static <I> StateMovement
create
(Class<? extends WorkflowState<I>> stateClass, I stateInput, WorkflowStateOptions stateOptionsOverride) static StateMovement
use the other one with WorkflowState class param if the stateId is provided by default, to make your code cleanerstatic 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 cleanerstatic StateMovement
create
(String stateId, Object stateInput, WorkflowStateOptions stateOptionsOverride, String waitForKey) static StateMovement
static StateMovement
forceCompleteWorkflow
(Object output) static StateMovement
forceFailWorkflow
(Object output) abstract String
abstract Optional<WorkflowStateOptions>
static StateMovement
static StateMovement
gracefulCompleteWorkflow
(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
-