Table of Contents

Namespace FlowOrchestrator.Core.Storage

Classes

DashboardStatistics

Aggregate counts displayed on the dashboard overview panel. Returned by GetStatisticsAsync().

ExpiredStepLease

A step whose execution lease expired without a terminal status, selected for redelivery.

FlowDefinitionRecord

Persisted representation of a flow definition stored in the database or in-memory store. The ManifestJson column holds the serialised FlowManifest.

FlowEventRecord

One entry of a run's chronological timeline, as returned by Build(FlowRunRecord).

FlowRunControlRecord

Control-plane state for a run: timeout deadline, cancellation request, and idempotency key. Written before the run starts and polled by step handlers to honour cancellation signals.

FlowRunRecord

Persisted record of a single flow run execution, including overall status and an optional list of step records (populated by GetRunDetailAsync(Guid)).

FlowRunTimeline

Derives a run's chronological timeline from data every store already keeps: the run record and the per-execution rows of Attempts.

FlowScheduleState

Persisted schedule override state for a Hangfire recurring job. Allows the dashboard to pause/resume schedules and override cron expressions without modifying the code-defined flow manifest.

FlowServerRecord

One FlowOrchestrator process (a "server", i.e. a replica) as recorded by its heartbeat in IFlowServerStore.

FlowSignalWaiter

Persisted record of a WaitForSignal step that is currently parked, awaiting an external signal. One row per (RunId, StepKey).

FlowStepAttemptRecord

Immutable audit record for a single execution attempt of a step. Multiple attempts are created when a step is retried via the dashboard.

FlowStepRecord

Persisted state of a single step within a flow run, including its latest execution outcome and the full attempt history.

IdempotencyKeyStorage

The one normalisation every built-in store applies to a caller-supplied idempotency key before it is stored or looked up, so SQL Server, PostgreSQL and the in-memory store deduplicate identically.

InMemoryFlowScheduleStateStore

Process-local IFlowScheduleStateStore: dashboard pause states and cron overrides live for the lifetime of the process and are lost on restart.

OutputsRepositoryTypedExtensions

Extension methods for retrieving strongly-typed step outputs and trigger data from an IOutputsRepository.

RunSearchDocument

The searchable projection of a run, produced when the run starts.

RunSearchIndexQuery

A text query against an IRunSearchIndex.

RunSearchIndexResult

Run ids matching a RunSearchIndexQuery, newest first, without any run columns.

RunSearchPage

One page of SearchRunsAsync(RunSearchQuery, CancellationToken) results, newest first.

RunSearchQuery

Structured run-list query for SearchRunsAsync(RunSearchQuery, CancellationToken). Every filter is AND-combined; unset filters are ignored.

RunSearchTokenizer

Tokenizer for the portable run-search token index (FlowRunSearchTokens): turns run, step and payload text into lower-cased identifier tokens, and a search term into the tokens to probe.

RunStatusNames

The run statuses the engine persists on Status, and a helper that maps a caller-supplied status filter onto that exact spelling.

RunTimeseriesBucket

One bucket in a run timeseries query. Counts are by terminal status; Running captures runs whose start falls in the bucket but which have not yet completed. Duration percentiles are computed across runs that have completed (CompletedAt is non-null) and started inside the bucket.

StepLease

An execution claim on one step that this process holds for a bounded time, identified by its fence.

StepSearchDocument

The searchable projection of one completed step.

StepSkipReasons

Well-known reason strings persisted on FlowSteps.ErrorMessage when a step is marked Skipped.

TimeseriesAggregator

In-memory bucket aggregator used by SQL store implementations to compute RunTimeseriesBucket series after streaming raw run rows back from the database. Doing percentiles in client code is significantly cheaper than asking SQL Server / PostgreSQL to evaluate PERCENTILE_CONT across a few thousand rows.

UnsentDispatch

A dispatch-ledger row whose hand-off to the runtime never completed, leased to the caller by LeaseUnsentDispatchesAsync(TimeSpan, int, CancellationToken) so it can be re-delivered.

WebhookRejectionPage

Paged result from QueryAsync(WebhookRejectionQuery, CancellationToken).

WebhookRejectionQuery

Filter + pagination shape for QueryAsync(WebhookRejectionQuery, CancellationToken). All fields are optional; defaults return the most recent 50 rows including accepted entries.

WebhookRejectionRecord

One row in the webhook delivery log. Persisted by IWebhookRejectionStore for both rejected and accepted deliveries; the IsAccepted flag distinguishes the two.

WebhookReplayNonceStorage

The one bound every built-in IWebhookReplayStore applies to a replay nonce before it is stored or looked up, so SQL Server, PostgreSQL and the in-memory store register the same key.

Structs

RunSearchCursor

Keyset position in the run list: the (StartedAt, Id) of the last row of a page. Passing it back as After reads the rows that follow it, newest first, with an index seek instead of an OFFSET that re-reads every skipped row.

RunSearchHit

One run matched by an IRunSearchIndex.

SignalDeliveryResult

Result of DeliverSignalAsync(Guid, string, string, CancellationToken).

Interfaces

IFlowRetentionStore

Data cleanup contract called periodically by FlowRetentionHostedService to remove runs, steps, outputs, and events older than the configured TTL.

IFlowRunControlStore

Persistence contract for run-level control signals: cancellation, timeout, and idempotency. Decoupled from IFlowRunStore so control records can be written before the run is committed.

IFlowRunRuntimeStore

Runtime step-tracking store used by the orchestrator during execution to prevent duplicate step enqueuing in parallel/fan-out scenarios.

IFlowRunStore

Persistence contract for flow run lifecycle: creating runs, recording step progress, completing runs, and querying run history.

IFlowScheduleStateStore

Persists per-job schedule overrides (pause state and cron expression overrides) so they survive process restarts when FlowSchedulerOptions.PersistOverrides is enabled.

IFlowServerStore

Registry of the FlowOrchestrator processes ("servers") sharing a store: each one upserts a heartbeat row on an interval, and the dashboard's Servers view lists them.

IFlowSignalStore

Persistence contract for WaitForSignal step waiters: parked steps that resume only when an external signal is delivered via the dashboard signal endpoint or programmatic call.

IFlowStore

Persistence contract for flow definitions. Implementations are provided by UseSqlServer, UsePostgreSql, and UseInMemory.

IOutputsRepository

Stores and retrieves per-run step outputs, step inputs and trigger data. Outputs are keyed by RunId + step key and resolved at expression-evaluation time to satisfy @outputs('stepKey') references in downstream steps.

IRunSearchIndex

Optional text-search index for the run list's deep (step payload) search. When one is active, a store resolves a deep Text term through the index — run ids only — and reads the matching rows by primary key, instead of scanning step payloads with LIKE.

IWebhookRejectionStore

Persistence contract for the webhook receive log + DLQ. Stores both rejected (IsAccepted false) and accepted entries so the dashboard can render a unified recent-deliveries table with precise reason chips.

IWebhookReplayStore

Persistence contract for webhook replay-attack protection. Maintains a set of (flowId, triggerKey, nonce) tuples with expiry; a successful registration means the nonce has not been seen before, a conflict means a replay attack is in progress.

Enums

RunSearchCapabilities

What a run-search index can answer, so callers can describe the search honestly.

RunSearchTokenSource

Where a search token came from; stored with the token so a search can be limited to some sources.

RunTimeseriesGranularity

Bucket size for a run timeseries query.

SignalDeliveryStatus

Outcome of a DeliverSignalAsync(Guid, string, string, CancellationToken) attempt.