Table of Contents

Class TriggerMetadata

Namespace
FlowOrchestrator.Core.Abstractions
Assembly
FlowOrchestrator.Core.dll

Defines how a flow can be started — its trigger type and associated configuration inputs.

public sealed class TriggerMetadata
Inheritance
TriggerMetadata
Inherited Members

Properties

Inputs

Type-specific configuration values (e.g. cronExpression for Cron, secret for Webhook).

public IDictionary<string, object?> Inputs { get; set; }

Property Value

IDictionary<string, object>

Type

The mechanism that fires this trigger.

[JsonConverter(typeof(JsonStringEnumConverter))]
public TriggerType Type { get; set; }

Property Value

TriggerType

Methods

TryGetCronExpression(out string)

Extracts the cronExpression input when this trigger is of type Cron.

public bool TryGetCronExpression(out string cronExpression)

Parameters

cronExpression string

The raw cron expression (e.g. "0 * * * *") if found; otherwise Empty.

Returns

bool

true if the trigger is a cron trigger and a non-empty expression exists; false otherwise.