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
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
flowIdGuidThe flow that owns the trigger.
triggerKeystringThe 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
jobIdstringThe candidate job id.
flowIdGuidThe parsed flow id, or Empty on failure.
triggerKeystringThe parsed trigger key, or an empty string on failure.