Class WorkflowRuntimeBuilder

java.lang.Object
io.dapr.workflows.runtime.WorkflowRuntimeBuilder

public class WorkflowRuntimeBuilder extends Object
  • Constructor Details

    • WorkflowRuntimeBuilder

      public WorkflowRuntimeBuilder()
      Constructs the WorkflowRuntimeBuilder.
  • Method Details

    • build

      public WorkflowRuntime build()
      Returns a WorkflowRuntime object.
      Returns:
      A WorkflowRuntime object.
    • registerWorkflow

      public <T extends Workflow> WorkflowRuntimeBuilder registerWorkflow(Class<T> clazz)
      Registers a Workflow object.
      Type Parameters:
      T - any Workflow type
      Parameters:
      clazz - the class being registered
      Returns:
      the WorkflowRuntimeBuilder
    • registerActivity

      public <T extends WorkflowActivity> void registerActivity(Class<T> clazz)
      Registers an Activity object.
      Type Parameters:
      T - any WorkflowActivity type
      Parameters:
      clazz - the class being registered