Package akka.javasdk.workflow
Class StepBuilder.RunnableStepBuilder
Object
akka.javasdk.workflow.StepBuilder.RunnableStepBuilder
- Enclosing class:
StepBuilder
-
Method Summary
Modifier and TypeMethodDescriptionandThen
(Supplier<Workflow.Effect.TransitionalEffect<Void>> transitionFunc) Transition to the next step after the step call completes.
-
Method Details
-
andThen
public Workflow.RunnableStep andThen(Supplier<Workflow.Effect.TransitionalEffect<Void>> transitionFunc) Transition to the next step after the step call completes.The
Supplier
passed to this method should return anWorkflow.Effect.TransitionalEffect
describing the next step to transition to.When defining the Effect, you can update the workflow state and indicate the next step to transition to. This can be another step, or a pause or end of the workflow.
When transition to another step, you can also pass an input parameter to the next step.
- Parameters:
transitionFunc
- Supplier ofWorkflow.Effect.TransitionalEffect
- Returns:
- RunnableStep
-