This operator can be used to route the elements in the stream to different further processing operators, depending on the predicate. The elements for which no predicate evaluates to true are send to the last + 1 output port.

Parameter

Example

output = route({predicates=['price < 200', 'price < 300', 'price < 400']}, input)
/// elements with price < 200 are in 0:output
/// elements with price < 300 are in 1:output
/// elements with price < 400 are in 2:output
/// All other elements are in 3:output