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.
- In the Visual editor workspace, in the Palette menu under
the Streams and Windows category, select
Splitter.
- Select a location in the diagram and click to
add the shape.
- 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.
- (Optional) Click
to make it an output (instead of local) if you want the splitter
outputs to be visible via subscription in the runtime model.
- Connect the splitter to a single Input Stream or a Window.
- (Optional) Add or remove Column Expressions for the
splitter.
- Create the splitter logic using Add When
and
Add Else
. This will create the splitter output elements.
- (Optional) Connect the splitter output elements of the splitter to other Streams or
Windows.