Learning Informatica PowerCenter 10.x(Second Edition)
上QQ阅读APP看书,第一时间看更新

Router transformation

Router transformation is a single input and multiple output group transformation. Router can be used in place of multiple filter transformations. Router transformation accepts the data once through the input group, and based on the output groups you define, it sends the data to multiple output ports. You need to define the filter condition in each output group.

A mapping using router transformation where we wish to load all the records from LOCATION as INDIA in one target records from UK in another target, and all other non-matching records in the third target is indicated in the following screenshot:

When you drag the columns to the router, the router transformation creates an input group with only input ports and no output port. To add the output groups, click on the Groups tab, and add two new groups. Mention the name of each group under the group name, and define the filter condition for each group. Click on OK to get the output groups created in router transformation:

When you add the group, a default group gets created automatically. All non-matching records from the other groups will pass through the default group if you connect the default group output ports to the target.

When you pass the records to router transformation through the input group, the router transformation checks the records based on the Filter condition you define in each output group. For each record matching, the condition passes further. For each record that fails, the condition is passed to the default group.

As you can understand now, router transformation is used in place of multiple Filter transformations.