You can indicate which ports you want to use as input to a dynamic expression. Select the ports in the
Base Port
area.
If you select the Decimal_Selector port selector as the base port, the dynamic expression returns decimal type ports. The dynamic expression does not generate a port for the NAME port because it is a string.
The following image shows the generated ports in the transformation:
Although the From_Read_Emp dynamic port is an input-output port, the transformation returns just the ports in the MyDynamicPort dynamic output port.
You can configure how you want to name the output ports. The default output port name is the input port name and the suffix
_OUT
.
You can change the base port to a port selector.
The following image shows the output port settings in the Expression Editor:
If you configure the base port as From_Read_EMP, you select the dynamic port that contains all the generated input ports. The Data Integration Service runs the dynamic expression against all the ports in From_Read_EMP.
The following image shows the generated output ports based on the From_Read_Emp input:
The generated output ports include an output port called NAME_OUT, which is a string type.
The Data Integration Service generates output ports for each dynamic expression. If you create a dynamic expression that generates 15 ports and you define another dynamic expression that generates 5 ports, the Data Integration Service generates 20 output ports. Each dynamic output port generates a different group of ports.