durable_workflow library
Local durable execution library for Dart.
Provides durable checkpoint/resume workflows with zero external dependencies.
Classes
- Cancelled
- Workflow execution was cancelled.
- CheckpointStore
- Abstract persistence interface for durable workflow state.
- Compensating
- Workflow execution is running compensating (saga rollback) steps.
- Completed
- Workflow execution completed successfully.
- DurableEngine
- Abstract interface for the durable workflow execution engine.
- DurableEngineImpl
- Concrete implementation of DurableEngine.
- ExecutionStatus
- Represents the lifecycle status of a workflow execution.
- Failed
- Workflow execution failed.
- Pending
- Workflow execution has been created but not yet started.
- RecoveryScanner
- Scans for interrupted workflow executions and resumes or fails them.
- RecoveryScanResult
- Result of a recovery scan operation.
- RetryPolicy
- Defines the retry strategy for a workflow step.
- RetryPolicyExponential
- Exponential backoff retry strategy.
- RetryPolicyFixed
- Fixed-interval retry strategy.
- RetryPolicyNone
- No retry — the step fails immediately on error.
- Running
- Workflow execution is currently running.
- StepCheckpoint
- Represents a checkpoint for a single workflow step.
- Suspended
- Workflow execution is suspended (e.g., waiting for a signal or timer).
- Workflow
- Represents a workflow definition.
- WorkflowContext
- Abstract interface for workflow step execution context.
- WorkflowExecution
- Represents a running instance of a workflow.
- WorkflowSignal
- Represents a signal sent to a workflow execution.
- WorkflowTimer
- Represents a durable timer associated with a workflow execution.
Enums
- SignalStatus
- Status of a workflow signal.
- StepStatus
- Status of a step checkpoint.
- TimerStatus
- Status of a workflow timer.
- WorkflowGuarantee
- Defines the execution guarantee level for a workflow.
Typedefs
- StepNameMismatchWarning = void Function(String workflowExecutionId, int stepIndex, String checkpointedName, String currentName)
- Callback signature for step name mismatch warnings during replay.
Exceptions / Errors
- WorkflowCancelledException
- Exception thrown when a workflow execution is cancelled during step execution.