Class Workflow

java.lang.Object
io.dapr.workflows.Workflow

public abstract class Workflow extends Object
Common interface for workflow implementations.
  • Constructor Details

    • Workflow

      public Workflow()
  • Method Details

    • create

      public abstract WorkflowStub create()
      Executes the workflow logic.
      Returns:
      A WorkflowStub.
    • run

      public void run(WorkflowContext ctx)
      Executes the workflow logic.
      Parameters:
      ctx - provides access to methods for scheduling durable tasks and getting information about the current workflow instance.
    • isSagaEnabled

      public boolean isSagaEnabled()
    • getSagaOption

      public SagaOption getSagaOption()
      get saga configuration.
      Returns:
      saga configuration