Class Workflow.WorkflowDef<S>

Object
akka.javasdk.workflow.Workflow.WorkflowDef<S>
Enclosing class:
Workflow<S>

@Deprecated public static class Workflow.WorkflowDef<S> extends Object
Deprecated.
  • Method Details

    • findByName

      public Optional<Workflow.Step> findByName(String name)
      Deprecated.
    • addStep

      public Workflow.WorkflowDef<S> addStep(Workflow.Step step)
      Deprecated.
      Add step to workflow definition. Step name must be unique.
      Parameters:
      step - A workflow step
    • addStep

      public Workflow.WorkflowDef<S> addStep(Workflow.Step step, Workflow.RecoverStrategy<?> recoverStrategy)
      Deprecated.
      Add step to workflow definition with a dedicated Workflow.RecoverStrategy. Step name must be unique.
      Parameters:
      step - A workflow step
      recoverStrategy - A Step recovery strategy
    • timeout

      public Workflow.WorkflowDef<S> timeout(Duration timeout)
      Deprecated.
      Define a timeout for the duration of the entire workflow. When the timeout expires, the workflow is finished and no transitions are allowed.
      Parameters:
      timeout - Timeout duration
    • failoverTo

      public Workflow.WorkflowDef<S> failoverTo(String stepName, Workflow.RecoverStrategy.MaxRetries maxRetries)
      Deprecated.
      Define a failover step name after workflow timeout. Note that recover strategy for this step can set only the number of max retries.
      Parameters:
      stepName - A failover step name
      maxRetries - A recovery strategy for failover step.
    • failoverTo

      public <I> Workflow.WorkflowDef<S> failoverTo(String stepName, I stepInput, Workflow.RecoverStrategy.MaxRetries maxRetries)
      Deprecated.
      Define a failover step name after workflow timeout. Note that recover strategy for this step can set only the number of max retries.
      Parameters:
      stepName - A failover step name
      stepInput - A failover step input
      maxRetries - A recovery strategy for failover step.
    • defaultStepTimeout

      public Workflow.WorkflowDef<S> defaultStepTimeout(Duration timeout)
      Deprecated.
      Define a default step timeout. If not set, a default value of 5 seconds is used. Can be overridden with step configuration.
    • defaultStepRecoverStrategy

      public Workflow.WorkflowDef<S> defaultStepRecoverStrategy(Workflow.RecoverStrategy<?> recoverStrategy)
      Deprecated.
      Define a default step recovery strategy. Can be overridden with step configuration.
    • getWorkflowTimeout

      public Optional<Duration> getWorkflowTimeout()
      Deprecated.
    • getStepTimeout

      public Optional<Duration> getStepTimeout()
      Deprecated.
    • getStepRecoverStrategy

      public Optional<Workflow.RecoverStrategy<?>> getStepRecoverStrategy()
      Deprecated.
    • getSteps

      public List<Workflow.Step> getSteps()
      Deprecated.
    • getStepSettings

      public List<Workflow.StepSettings> getStepSettings()
      Deprecated.
    • getFailoverStepName

      public Optional<String> getFailoverStepName()
      Deprecated.
    • getFailoverStepInput

      public Optional<?> getFailoverStepInput()
      Deprecated.
    • getFailoverMaxRetries

      public Optional<Workflow.RecoverStrategy.MaxRetries> getFailoverMaxRetries()
      Deprecated.