Package akka.javasdk.workflow
Interface Workflow.Effect.PersistenceEffectBuilder<T>
- Enclosing interface:
Workflow.Effect<T>
public static interface Workflow.Effect.PersistenceEffectBuilder<T>
-
Method Summary
Modifier and TypeMethodDescriptionend()
Finish the workflow execution.pause()
Pause the workflow execution and wait for an external input, e.g.transitionTo
(String stepName) Defines the next step to which the workflow should transition to.transitionTo
(String stepName, I input) Defines the next step to which the workflow should transition to.
-
Method Details
-
pause
Workflow.Effect.TransitionalEffect<Void> pause()Pause the workflow execution and wait for an external input, e.g. via command handler. -
transitionTo
Defines the next step to which the workflow should transition to.The step definition identified by
stepName
must have an input parameter of type I. In other words, the next step call (or asyncCall) must have been defined with aFunction
that accepts an input parameter of type I.- Parameters:
stepName
- The step name that should be executed next.input
- The input param for the next step.
-
transitionTo
Defines the next step to which the workflow should transition to.The step definition identified by
stepName
must not have an input parameter. In other words, the next step call (or asyncCall) must have been defined with aSupplier
.- Parameters:
stepName
- The step name that should be executed next.
-
end
Finish the workflow execution. After transition toend
, no more transitions are allowed.
-