Table of Contents

Interface ITriggerContext

Namespace
FlowOrchestrator.Core.Execution
Assembly
FlowOrchestrator.Core.dll

Combines IExecutionContext with the flow definition and the trigger event that started the run. Passed to CreateEntrySteps(ITriggerContext) to bootstrap execution.

public interface ITriggerContext : IExecutionContext
Inherited Members
Extension Methods

Remarks

The runtime-specific job or message ID for the trigger is carried by JobId, which is set by the runtime adapter (e.g. the Hangfire shim) before invoking the engine.

Properties

EntryStepsStarted

Set by the engine once TriggerAsync(ITriggerContext, CancellationToken) has dispatched or skipped at least one entry step — from then on the run is alive (recovery re-dispatches it) even if the trigger call later throws.

bool EntryStepsStarted { get; set; }

Property Value

bool

Remarks

A caller that sees TriggerAsync throw while this is still false knows no work was started for the delivery, so letting the sender retry it cannot duplicate a run. The webhook endpoint uses it to decide whether to release the delivery's replay-protection key. The default implementation does not store the value (it always reads false); TriggerContext does.

Flow

The flow definition being triggered.

IFlowDefinition Flow { get; set; }

Property Value

IFlowDefinition

SourceRunId

Optional lineage pointer — when set, persisted on the new run as SourceRunId so the dashboard can render a link back to the original. Used by "Re-run all".

Guid? SourceRunId { get; set; }

Property Value

Guid?

Trigger

The trigger event that fired (key, type, payload, headers).

ITrigger Trigger { get; set; }

Property Value

ITrigger