Table of Contents

Class RunAfterCollection

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

Maps predecessor step names to a RunAfterCondition describing when the dependent step is allowed to proceed. An empty collection means the step has no prerequisites (entry step).

[JsonConverter(typeof(RunAfterCollectionJsonConverter))]
public sealed class RunAfterCollection : Dictionary<string, RunAfterCondition>, IDictionary<string, RunAfterCondition>, ICollection<KeyValuePair<string, RunAfterCondition>>, IReadOnlyDictionary<string, RunAfterCondition>, IReadOnlyCollection<KeyValuePair<string, RunAfterCondition>>, IEnumerable<KeyValuePair<string, RunAfterCondition>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable
Inheritance
RunAfterCollection
Implements
Inherited Members

Examples

new RunAfterCollection
{
    ["fetchData"] = [StepStatus.Succeeded],
    ["validate"]  = new RunAfterCondition
    {
        Statuses = [StepStatus.Succeeded],
        When     = "@steps('validate').output.score >= 0.8"
    }
}

Remarks

Backwards-compatible: the legacy syntax ["fetch"] = [StepStatus.Succeeded] continues to work via Create(ReadOnlySpan<StepStatus>). Authors may now also write ["fetch"] = new RunAfterCondition { Statuses = [Succeeded], When = "@steps('fetch').output.amount > 1000" }.