Class TriggerContext
- Namespace
- FlowOrchestrator.Core.Execution
- Assembly
- FlowOrchestrator.Core.dll
Default mutable implementation of ITriggerContext.
Constructed by HangfireFlowOrchestrator.TriggerAsync before execution begins.
public sealed class TriggerContext : ITriggerContext, IExecutionContext
- Inheritance
-
TriggerContext
- Implements
- Inherited Members
- Extension Methods
Properties
Flow
The flow definition being triggered.
public IFlowDefinition Flow { get; set; }
Property Value
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
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
RunId
Unique identifier for this flow run, generated at trigger time.
public Guid RunId { get; set; }
Property Value
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".
public Guid? SourceRunId { get; set; }
Property Value
- Guid?
Trigger
The trigger event that fired (key, type, payload, headers).
public ITrigger Trigger { get; set; }
Property Value
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
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; }