Setting preferences for the mapping editor

You can specify the color and the width of the mapping lines in the mapping editor, and you can set preferences that affect the expression builder and the discover function options.

About this task

You can change the mapping editor preferences at any time.

Procedure

To set preferences for the mapping editor:

  1. From the menu, select Window > Preferences.
  2. In the navigation tree in the Preferences window, select Data Management > Mapping Editor.
  3. On the Mapping Editor page, specify the following settings:
    • Specify line colors for each state or type of mapping, selected lines, and unselected lines.
    • Specify the width of the mapping line.
    • Select the Validate expressions check box to enable an inline validation while you are building expressions in the Expression Builder. Selecting this option affects the Expression Builder editor in the properties page as well as the Expression Builder editor in the Expression Builder window. If there is a syntactical error or a misspelled identifier, you see a red wavy line beneath the text. By default, no validation is performed on the text in the Expression Builder.
    • Select the Enable script generation for mapping models check box if you want to use the workbench to generate scripts for your mapping models.
      Note: You cannot enable script generation on a mapping model once you have created the mapping model.
  4. Expand the Mapping Editor tree and select Discover relationships and specify the settings:
    • On the General page, specify the following settings:
      Setting Description
      Show the scope window when you look for relationships Clear this check box to start the discover function with the scope that is reflected in the current mapping editor selections.
      Number of matches Specify the number of matches that you want to see for each source or target element that you selected. By default, the number of matches is for each selected target element. The default value for the number of matches to show is 5.
    • On the Algorithms page, select one or more algorithms for matching relationships. Depending on the algorithms that you select, you can specify parameters to refine the relationship matching.
    • On the Algorithms page, specify the Composition by sequence or Composition by weight. These selections are applicable if you select more than one algorithm to refine the discover function. You can combine multiple algorithms and then set the order of precedence or sequence, or you can specify a weighting value to each algorithm.
  5. Click OK to save your preferences and close the window.

Feedback