Package io.dapr.workflows
Class Workflow
- java.lang.Object
-
- io.dapr.workflows.Workflow
-
public abstract class Workflow extends Object
Common interface for workflow implementations.
-
-
Constructor Summary
Constructors Constructor Description Workflow()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract WorkflowStub
create()
Executes the workflow logic.void
run(WorkflowContext ctx)
Executes the workflow logic.
-
-
-
Method Detail
-
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.
-
-