Class StepCollection
- Namespace
- FlowOrchestrator.Core.Abstractions
- Assembly
- FlowOrchestrator.Core.dll
Dictionary of StepMetadata keyed by step name, with helpers for navigating nested step hierarchies using dot-notation paths.
public sealed class StepCollection : Dictionary<string, StepMetadata>, IDictionary<string, StepMetadata>, ICollection<KeyValuePair<string, StepMetadata>>, IReadOnlyDictionary<string, StepMetadata>, IReadOnlyCollection<KeyValuePair<string, StepMetadata>>, IEnumerable<KeyValuePair<string, StepMetadata>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable
- Inheritance
-
StepCollection
- Implements
- Inherited Members
Methods
FindStep(string)
Finds a step by its key, supporting nested and runtime-indexed paths.
public StepMetadata? FindStep(string key)
Parameters
keystringA dot-separated path such as
"processItems","processItems.validate", or the runtime loop path"processItems.0.validate". Numeric segments are treated as loop iteration indices and skipped when resolving against the template definition.
Returns
- StepMetadata
The matching StepMetadata, or null if not found.
Remarks
Hot path: called per status-map entry by LoopBarrier.RunningLoopKeys and per ready step by
the continuation, i.e. on every step completion. Nested and runtime keys are walked as
ReadOnlySpan<T> segments — no Split(char, StringSplitOptions)
array and no per-segment string (the lookup goes through
GetAlternateLookup<ReadOnlySpan<char>>). Segment semantics are unchanged from the
earlier Split(RemoveEmptyEntries | TrimEntries) form: segments are trimmed, empty ones are
ignored, and a key with fewer than two segments that is not an exact top-level key resolves to
null (#189).