You can change the order
in which a transformation processes mapping rules. This functionality
is useful if custom code or the order of submap invocations have dependencies
on the output that other mappings generate. The Outline view
lists the mapping rules in the order that they are processed when
you run the generated transformation code.
Before you begin
You
must have a mapping model open. A mapping
model has .mapping as a file name extension. The mapping
model must contain a mapping declaration that specifies at least two
mapping rules.
About this task
To change the order in which the generated transformation
processes the mapping rules in a mapping declaration:
Procedure
- If the Outline view is not available,
click .
- In the Outline view, expand a mapping
declaration, and then expand Transformations.
- Right-click the mapping rule to move; then click Execution
Order and click Move up or Move
down.
- Click .
Example
For example, you might change the order of the mapping rules
if the custom code in a mapping rule writes a value to an output object
that another piece of custom code reads as input.