LinkedIn
Copied!

Table of Contents

Comparing rules and rule versions with the Compare Rules tool

Version:

Only available versions of this content are shown in the dropdown

Apply the Compare Rules tool to two different rules or two versions of the same rule to identify and review changes between rules. The side-by-side comparison lets you quickly find the additions, deletions, or value changes that have been made between one version of a rule and another.

  1. In the header of Dev Studio, click Configure System Refactor Rules .

  2. Click Compare Rules.

  3. In the Instance #1 section, specify the first rule by providing the following information:

    1. In the Rule Name field, enter the name of the rule that you want to compare.

    2. In the Rule Type field, click the displayed rule type and select a value from the list.

    3. In the Applies To field, select the class that contains the rule.

    4. In the RuleSet field, select the ruleset that contains the rule.

    5. In the Version field, select the ruleset version that contains the rule.

    6. Click Find.

  4. In the list of rules that appears, mark the Select field of the first rule that you want to compare.

  5. In the Instance #2 section of the new panel, select the second rule to compare by performing one of the following actions:

    • If the second rule instance that you want to compare is in the list, click the button beside the rule name to select it.
    • If the second rule instance that you want to compare is not in the list, in the new panel, repeat actions from step 3, and then, in the list of rules that appears, mark the Select field of the second rule that you want to compare.
  6. Click Compare >> to generate the Differences Found report.

  7. In a selected column of the report, click a row entry with a change to display the Comparison of rules form.

    The form displays the first selected rule in the left column, and the second rule in the right column.

    The differences are color coded:

    Yellow
    The values have changed in the two selected instances.
    Green
    One or more property values in the second rule are not present in the first rule. The first selected rule is presumed to be the source instance, and consequently the changes highlighted in green are considered additions.
    Red
    One or more properties with values in the first rule are not present in the second rule. The first selected rule is presumed to be the source instance, and consequently these changes are considered deletions.

    If the screen displays a long selection of code that includes more than one change, you can move from change to change by clicking the left and right arrow keys at the top of the screen. You can also use the search field to locate a specific text string in the display.

    Browse the displayed changes by using the scroll bars at the right of each column. Each scroll bar controls both columns, which move together to maintain the relationship between the material displayed from each rule instance.

  8. Optional:

    To save the comparison results to an Excel spreadsheet, click Export to Excel.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.