Duplicate Information

Return to Introduction  Previous page  Next page

In many transformations there is a substantial amount of information to be copied.  It would be tedious to type all of the common information into a template so that it is copied to the transformed class.  The alternative is to use the TRANSFORM_CURRENT function macro to do exactly this.

TRANSFORM_CURRENT(<listOfExcludedItems>)

Generates an exact copy  of all the properties of the current item, except for the items named in <listOfExcludedItems>.

Another form of this is available when transforming connectors that enables either end of the connector to be copied.

TRANSFORM_CURRENT(<connectorEnd>,<listOfExcludedItems>)

Generates an exact copy of the connector end specified by <connectorEnd> except for the items named in <listOfExcludedItems>, where <connectorEnd> is either Source or Target.