Class FlowDataSource

Namespace
Kuestenlogik.Bowire.Flows
Assembly
Kuestenlogik.Bowire.Flows.dll

Data-driven parameterisation for a Flow step — #174. Exactly one of Inline / Csv / Generator is set; the runner expands the step into one execution per row, with the row's columns joining the {{var}} resolver scope (row wins over --env).

public sealed class FlowDataSource
Inheritance
FlowDataSource
Inherited Members

Remarks

Wire shape on the step:

{ "data": { "inline": [ { "userId": "1" }, { "userId": "2" } ] } }
{ "data": { "csv": "fixtures/users.csv" } }
{ "data": { "generator": { "kind": "range", "var": "i", "from": 1, "to": 10 } } }

Constructors

FlowDataSource()

public FlowDataSource()

Properties

Csv

CSV file path, resolved relative to the flow file. First row is the header.

[JsonPropertyName("csv")]
public string? Csv { get; set; }

Property Value

string

Generator

Synthetic rows from a deterministic generator.

[JsonPropertyName("generator")]
public FlowDataGenerator? Generator { get; set; }

Property Value

FlowDataGenerator

Inline

Inline rows — each object is one row, values stringified for substitution.

[JsonPropertyName("inline")]
public IReadOnlyList<JsonObject>? Inline { get; set; }

Property Value

IReadOnlyList<JsonObject>

LabelColumn

Optional column whose value labels the row in reports (defaults to the zero-based row index).

[JsonPropertyName("labelColumn")]
public string? LabelColumn { get; set; }

Property Value

string