Table of Contents

Interface IExecutionContext

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

Carries the ambient state for a single flow run, shared across all steps in that run. Populated once by TriggerAsync and propagated via IExecutionContextAccessor.

public interface IExecutionContext
Extension Methods

Properties

JobId

Runtime-specific job or message identifier for the current execution unit (Hangfire job ID, queue message ID, etc.). Set by the runtime adapter before invoking the engine. Stored on the run and step records for correlation with the runtime's own dashboard.

string? JobId { get; set; }

Property Value

string

PrincipalId

Identity of the caller that triggered the run, or null if anonymous. Sourced from the authentication principal at trigger time.

string? PrincipalId { get; set; }

Property Value

string

RunId

Unique identifier for this flow run, generated at trigger time.

Guid RunId { get; set; }

Property Value

Guid

TriggerData

Deserialized body of the trigger payload (e.g. the webhook request body or manual trigger data). Available to steps via @triggerBody() expressions.

object? TriggerData { get; set; }

Property Value

object

TriggerHeaders

HTTP headers from the inbound trigger request, or null for non-HTTP triggers. Available to steps via @triggerHeaders() expressions.

IReadOnlyDictionary<string, string>? TriggerHeaders { get; set; }

Property Value

IReadOnlyDictionary<string, string>