Package io.dapr.workflows
Class Workflow
java.lang.Object
io.dapr.workflows.Workflow
Common interface for workflow implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract WorkflowStubcreate()Executes the workflow logic.get saga configuration.booleanvoidrun(WorkflowContext ctx) Executes the workflow logic.
-
Constructor Details
-
Workflow
public Workflow()
-
-
Method Details
-
create
Executes the workflow logic.- Returns:
- A WorkflowStub.
-
run
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
get saga configuration.- Returns:
- saga configuration
-