Evaluation and ordering of rules

When a file or directory is evaluated, the mapping rules are evaluated in the order in which they are specified. This evaluation process is true for both the factory default settings and user-specified mapping rules file.

If a rule has a condition that is true, its action is performed. If several rules have conditions that are true, each of the actions is executed in the order in which the rules were specified.

For example:

WHEN %name =~ '.*\\.[Bb][Ii][Nn]$' SET TYPE TO 'binary''

WHEN %name =~ '.*\\.[Bb][Ii][Nn]$' SET TYPE TO 'executable

In this example, both rules use the same condition that matches the name of the object against the same regular expression. If an object matches, then both rules have their action performed. Since both are setting the Rational® Synergy type, the value of binary in the first rule is superseded by the later execution of the action of the second rule to set it to executable.


Feedback