Package io.dapr.workflows
Class Workflow
java.lang.Object
io.dapr.workflows.Workflow
Common interface for workflow implementations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract WorkflowStub
create()
Executes the workflow logic.get saga configuration.boolean
void
run
(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
-