Creating mapping rules in mapping projects

In model-to-model transformation mapping projects, you can create mapping rules between the features of the input and output objects in the mapping declaration; you can also create mapping rules between the input and output objects themselves. If the mapping declaration inherits mapping rules from another mapping declaration, you can create rules that override the inherited mapping rules.

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 at least one mapping declaration that specifies an input object and an output object.

About this task

If you create mapping rules in an inheriting mapping declaration, the Properties view displays an additional tab called Overrides. When you click a mapping rule in the editor area, this tab displays the mapping rule that you are overriding in the inherited mapping declaration. On the Overrides tab, the Map field is empty if no mapping rule exists between the same features in the inherited mapping declaration.

When you create a mapping rule between two features, and a mapping rule already exists between the same features in the inherited mapping declaration, the new mapping rule overrides the existing one.

To create a mapping rule:

Procedure

  1. In the editor area, in the input object, click the source element of the mapping rule.
    Note: To specify that the input object is the source element of the mapping rule, in the editor area, click the name of the input object.
  2. Drag the handle of the feature to the appropriate feature in the output object.
    Note: To specify that the output object is the target element of the mapping rule, in the editor area, drag the handle of the input object to the name of the output object.
    A mapping rule is created between the two elements. The type of mapping rule that is created depends on the types of the input and output elements that you specify in step 1 and step 2.
  3. On the shape that is displayed on the line that connects the elements, click the down arrow and click the appropriate mapping rule type.
  4. Click File > Save.

Results

The mapping rule that you create overrides the mapping rule between the same elements in the inherited mapping declaration.
Note: To delete a mapping rule from a map, in the editor area, right-click the mapping rule; then click Delete.

Feedback