Developer Transformation Guide > Transformation Ports > Linking Ports
  

Linking Ports

After you add and configure input, output, transformation, and mapplet objects in a mapping, complete the mapping by linking ports between mapping objects.
The Developer tool creates the connection only when the connection meets link validation and concatenation requirements.
You can leave ports unconnected. The Data Integration Service ignores unconnected ports.
When you link ports between input objects, transformations, mapplets, and output objects, you can create the following types of link:
You can manually link ports or link ports automatically.

One to One Links

Link one port in an input object or transformation to one port in an output object or transformation.

One to Many Links

When you want to use the same data for different purposes, you can link the port providing that data to multiple ports in the mapping.
You can create a one to many link in the following ways:
For example, you want to use salary information to calculate the average salary in a bank branch through the Aggregator transformation. You can use the same information in an Expression transformation configured to calculate the monthly pay of each employee.

Manually Linking Ports

You can manually link one port or multiple ports.
Drag a port from an input object or transformation to the port of an output object or transformation.
Use the Ctrl or Shift key to select multiple ports to link to another transformation or output object. The Developer tool links the ports, beginning with the top pair. It links all ports that meet the validation requirements.
When you drag a port into an empty port, the Developer tool copies the port and creates a link.

Automatically Linking Ports

When you link ports automatically, you can link by position or by name.
When you link ports automatically by name, you can specify a prefix or suffix by which to link the ports. Use prefixes or suffixes to indicate where ports occur in a mapping.

Linking Ports by Name

When you link ports by name, the Developer tool adds links between input and output ports that have the same name. Link by name when you use the same port names across transformations.
You can link ports based on prefixes and suffixes that you define. Use prefixes or suffixes to indicate where ports occur in a mapping. Link by name and prefix or suffix when you use prefixes or suffixes in port names to distinguish where they occur in the mapping or mapplet.
Linking by name is not case sensitive.
    1. Click Mapping > Auto Link.
    The Auto Link dialog box appears.
    2. Select an object in the From window to link from.
    3. Select an object in the To window to link to.
    4. Select Name.
    5. Optionally, click Show Advanced to link ports based on prefixes or suffixes.
    6. Click OK.

Linking Ports by Position

When you link by position, the Developer tool links each output port to the corresponding input port. For example, the first output port is linked to the first input port, the second output port to the second input port. Link by position when you create transformations with related ports in the same order.
    1. Click Mapping > Auto Link.
    The Auto Link dialog box appears.
    2. Select an object in the From window to link from.
    3. Select an object in the To window to link to.
    4. Select Position and click OK.
    The Developer tool links each output port to the corresponding input port. For example, the first output port is linked to the first input port, the second output port to the second input port.

Rules and Guidelines for Linking Ports

Certain rules and guidelines apply when you link ports.
Consider the following rules and guidelines when you connect mapping objects: