Interface Workflow.Effect.PersistenceEffectBuilder<T>

Enclosing interface:
Workflow.Effect<T>

public static interface Workflow.Effect.PersistenceEffectBuilder<T>
  • Method Details Link icon

    • pause Link icon

      Pause the workflow execution and wait for an external input, e.g. via command handler.
    • transitionTo Link icon

      <I> Workflow.Effect.TransitionalEffect<Void> transitionTo(String stepName, I input)
      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 a Function 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 Link icon

      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 a Supplier.

      Parameters:
      stepName - The step name that should be executed next.
    • end Link icon

      Finish the workflow execution. After transition to end, no more transitions are allowed.