Table of Contents

Interface IStepHandler<TInput>

Namespace
FlowOrchestrator.Core.Execution
Assembly
FlowOrchestrator.Core.dll

Typed step handler contract. Prefer this over IStepHandler when inputs are well-defined — the framework deserialises Inputs to TInput before invoking the handler.

public interface IStepHandler<TInput>

Type Parameters

TInput

POCO type that maps to the step's inputs dictionary.

Methods

ExecuteAsync(IExecutionContext, IFlowDefinition, IStepInstance<TInput>)

Executes the step with strongly-typed inputs and returns an optional result value.

ValueTask<object?> ExecuteAsync(IExecutionContext context, IFlowDefinition flow, IStepInstance<TInput> step)

Parameters

context IExecutionContext

The ambient execution context for this run.

flow IFlowDefinition

The flow definition currently executing.

step IStepInstance<TInput>

The step instance with inputs already deserialised to TInput.

Returns

ValueTask<object>

The step output, or a IStepResult to control execution behaviour.