Package akka.javasdk.workflow
Interface Workflow.StepEffect.PersistenceEffectBuilder
- Enclosing interface:
Workflow.StepEffect
public static interface Workflow.StepEffect.PersistenceEffectBuilder
-
Method Summary
Modifier and TypeMethodDescriptionFinish and delete the workflow execution.thenEnd()
Finish the workflow execution.Pause the workflow execution and wait for an external input, e.g.thenTransitionTo
(akka.japi.function.Function<W, Workflow.StepEffect> methodRef) Defines the next step to which the workflow should transition to.<W,
I> Workflow.WithInput <I, Workflow.StepEffect> thenTransitionTo
(akka.japi.function.Function2<W, I, Workflow.StepEffect> methodRef) Defines the next step to which the workflow should transition to.
-
Method Details
-
thenPause
Workflow.StepEffect thenPause()Pause the workflow execution and wait for an external input, e.g. via command handler. -
thenTransitionTo
<W> Workflow.StepEffect thenTransitionTo(akka.japi.function.Function<W, Workflow.StepEffect> methodRef) Defines the next step to which the workflow should transition to.The step is identified by a method reference that accepts no input parameters.
- Type Parameters:
W
- The workflow type containing the step method- Parameters:
methodRef
- Reference to the step method- Returns:
- A step effect
-
thenTransitionTo
<W,I> Workflow.WithInput<I,Workflow.StepEffect> thenTransitionTo(akka.japi.function.Function2<W, I, Workflow.StepEffect> methodRef) Defines the next step to which the workflow should transition to.The step is identified by a method reference that accepts an input parameter.
- Type Parameters:
W
- The workflow type containing the step methodI
- The input parameter type for the step- Parameters:
methodRef
- Reference to the step method- Returns:
- A builder to provide the input parameter
-
thenEnd
Workflow.StepEffect thenEnd()Finish the workflow execution. After transition toend
, no more transitions are allowed. -
thenDelete
Workflow.StepEffect thenDelete()Finish and delete the workflow execution. After transition todelete
, no more transitions are allowed. The actual workflow state deletion is done with a configurable delay to allow downstream consumers to observe that fact.
-