Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • predicates: A list of predicates
  • overlappingPredicates: If set to true, all predicates are evaluated and for each predicate evaluated to true, the element will be send. Default is false and will only send the element when the first element evaluates to true.
  • sendingHeartbeats: If an element is routed to an output, heartbeats will be send to all other outputs. Default is false.

Example

Code Block
themeEclipse
languagejavascript
titleRoute Operator
linenumberstrue
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