In the Mapping Designer, create a mapping that uses the Custom transformation.
In this mapping, two sources with the same ports and datatypes connect to the two input groups in the Custom transformation. The Custom transformation takes the rows from both sources and outputs them all through its one output group. The output group has the same ports and datatypes as the input groups.
In the Union example, create a mapping similar to the one in the following figure: