Splitting Inputs into Multiple Outputs

The Splitter construct is a multi-way filter that sends data to different target streams depending on the filter condition. It works similar to the ANSI 'case' statement.

You can create a Splitter to provide an operator that can split an input into multiple outputs.

  1. In the Visual editor workspace, in the Palette menu under the Streams and Windows category, select Splitter.
  2. Select a location in the diagram and click to add the shape.
  3. To set the name of the Splitter, either:
    • Click to edit the shape name, or, press F2.
    • In verbose mode, click the Edit icon next to the name.
  4. (Optional) Click Splitter to make it an output (instead of local) if you want the splitter outputs to be visible via subscription in the runtime model.
  5. Connect the splitter to a single Input Stream or a Window.
  6. (Optional) Add or remove Column Expressions for the splitter.
  7. Create the splitter logic using Add WhenSplitter When and Add ElseSplitter Else. This will create the splitter output elements.
  8. (Optional) Connect the splitter output elements of the splitter to other Streams or Windows.