ConditionalEdge

class ConditionalEdge<I>(val from: String, val router: (I) -> String)(source)

A conditional edge that routes data based on runtime conditions.

The router function examines the input data and returns the name of the target node to route to.

Parameters

I

Input type that the router examines

Constructors

Link copied to clipboard
constructor(from: String, router: (I) -> String)

Properties

Link copied to clipboard

Name of the source node.

Link copied to clipboard
val router: (I) -> String

Function that determines the target node based on input data.