Table of Contents

Class RecurringTriggerJobId

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

Builds and parses the stable recurring-job identifier shared by every runtime's cron scheduler, the schedule-state store and the dashboard: flow-{flowId:D}-{triggerKey}.

public static class RecurringTriggerJobId
Inheritance
RecurringTriggerJobId
Inherited Members

Remarks

The format is persisted — it keys Hangfire recurring jobs, rows in the schedule-state tables and Service Bus cron messages — so it must never change shape.

Fields

Prefix

The literal prefix every recurring-trigger job id starts with.

public const string Prefix = "flow-"

Field Value

string

Methods

Create(Guid, string)

Builds the job id for the cron trigger triggerKey of flow flowId.

public static string Create(Guid flowId, string triggerKey)

Parameters

flowId Guid

The flow that owns the trigger.

triggerKey string

The trigger's key in the flow manifest.

Returns

string

The identifier, e.g. flow-0b1c…-schedule.

TryParse(string?, out Guid, out string)

Parses a job id produced by Create(Guid, string) back into its flow id and trigger key.

public static bool TryParse(string? jobId, out Guid flowId, out string triggerKey)

Parameters

jobId string

The candidate job id.

flowId Guid

The parsed flow id, or Empty on failure.

triggerKey string

The parsed trigger key, or an empty string on failure.

Returns

bool

true when jobId has the expected shape and a non-empty trigger key.