Interface AbstractWorkflow.Effect.PersistenceEffectBuilder<T>

Enclosing interface:
AbstractWorkflow.Effect<T>

public static interface AbstractWorkflow.Effect.PersistenceEffectBuilder<T>
  • Method Details

    • pause

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

      @ApiMayChange <I> AbstractWorkflow.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

      @ApiMayChange AbstractWorkflow.Effect.TransitionalEffect<Void> transitionTo(String stepName)
      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

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