PipelineBuilder

class PipelineBuilder<I, O>(name: String)(source)

Builder for constructing pipelines using a DSL.

Constructors

Link copied to clipboard
constructor(name: String)

Functions

Link copied to clipboard
fun build(): Pipeline<I, O>

Build the pipeline.

Link copied to clipboard
fun <T> conditionalEdge(from: String, router: (T) -> String)

Define a conditional edge for dynamic routing.

Link copied to clipboard
fun edge(from: String, to: String)

Define an explicit edge between nodes.

Link copied to clipboard
fun <PI, PO> embed(name: String, pipeline: Pipeline<PI, PO>): NodeRef<PO>

Embed an existing pipeline as a node.

Link copied to clipboard
fun entry(nodeName: String)

Define entry point (overrides auto-detection).

Link copied to clipboard
fun exit(nodeName: String)

Define exit point (overrides auto-detection).

Link copied to clipboard
fun <NI, NO> node(name: String, block: (NI) -> NO): NodeRef<NO>

Define a processing node.