Defining a Session Rule

About this task

Pre-session rules define variables that have global scope (can be accessed from any other extended rule in the map). Pre-session extended rules are processed before the translation object is processed, and apply to every extended rule defined in the map.

Post-session rules are run after the translation object is processed and thus have no permanent scope.

To define a session rule:

Procedure

  1. From the Edit menu, select Session Rules.
  2. In the Session Level Extended Rules dialog box, select either Pre-session or Post-session.
  3. In the Editor area, type the extended rule.
    Note: Click Full Screen to enlarge the area available for typing the extended rule. Additionally, the extended rule windows are all re-sizable so you can increase or decrease their size as needed.
  4. Click Compile to compile the extended rule. Any warnings or errors are displayed in the Errors list.
    Note: Double-click an error to instantly navigate to the line containing the error.

    The Compile function gives you immediate feedback about the accuracy of your rule. The rule is compiled when you compile the entire map.

  5. Correct any errors that were flagged and click Compile again. Repeat this process until no errors are generated.
  6. Click OK to add the extended rule.