Configuring a Data Splitter JavaScript component

  1. Drag the Data Splitter JavaScript component onto the Design window.

  2. Link the Data Splitter IN-port to the OUT-port of the component that provides the inbound data.

  3. Link the Data Splitter OUT-ports to the IN-ports of the components to which you want to direct outbound data.

  4. Select Mutually Exclusive Rules if you want port conditions to behave as if they are mutually exclusive. If this option is selected, ports are evaluated based on a user-specified order, instead of the order in which they appear on the component. When conditions are defined as mutually exclusive, the splitter writes a given record to 0 or 1 OUT-port. The first OUT-port that has a matching condition receives the input record. No subsequent port conditions are evaluated. If a condition does not match, the record is not written to any OUT-port.

    NoteThe mutually exclusive port conditions are always evaluated in the order specified by the sequence number associated with each port condition.

  5. Double-click the Data Splitter JavaScript component.

  6. Add the conditions you want to use to direct the data flow:

    1. Double click the port you want to add the conditions to. Alternatively, click the Edit condition icon on the port, or right-click the port and select Edit condition.

    2. On the Condition window, define the conditions for each column that you want to apply.

    3. Click Save.