Table of Contents

Class ExecutionContext

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

Default mutable implementation of IExecutionContext. Constructed by HangfireFlowOrchestrator and passed through the step execution pipeline.

public sealed class ExecutionContext : IExecutionContext
Inheritance
ExecutionContext
Implements
Inherited Members
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.

public 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.

public string? PrincipalId { get; set; }

Property Value

string

RunId

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

public 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.

public 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.

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

Property Value

IReadOnlyDictionary<string, string>