Table of Contents

Class StepMetadata

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

Defines a single step in a flow manifest, specifying its handler type, dependency declarations, and static input values.

[JsonConverter(typeof(StepMetadataJsonConverter))]
public class StepMetadata
Inheritance
StepMetadata
Derived
Inherited Members

Properties

Inputs

Static input values merged with runtime-resolved expressions before the handler receives them. Values may include @triggerBody() and @triggerHeaders() expressions resolved at execution time.

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

Property Value

IDictionary<string, object>

RunAfter

Declares which preceding steps must reach a terminal status before this step is eligible to run. An empty collection means the step is an entry point and is enqueued immediately when the flow is triggered.

public RunAfterCollection RunAfter { get; set; }

Property Value

RunAfterCollection

Type

Handler type name that maps to a registered step handler via AddStepHandler<T>("TypeName") in the DI container.

public string Type { get; set; }

Property Value

string

Methods

ShouldExecute(string, StepStatus)

Returns true when this step should execute given that precedingStepKey has reached status.

public virtual bool ShouldExecute(string precedingStepKey, StepStatus status)

Parameters

precedingStepKey string

The key of the step that just completed.

status StepStatus

The terminal status the preceding step reached.

Returns

bool