ILOG JRules User Guide > Writing Rules > Tasks > Refactoring Rule Artifacts

When you change the verbalization of a business element used in a rule, Rule Studio prompts you to specify whether you want the rules that use the business element to be refactored to take your changes into account. If you decide not to perform the refactoring, the rule is not modified and syntax errors are reported in the Problems view.

Refactoring is also triggered after you modify ruleset parameters and variables that are used in rule artifacts.

Note
Rule refactoring relies on business rules being compiled by the Eclipse build after modification. If you disable the Eclipse automatic build option, refactoring may not be triggered when you modify the vocabulary.

Rules that have errors or that have not been saved may not have been refactored properly.

Rule refactoring is automatically activated when you save the BOM. You can also explicitly trigger it from the Package page of the BOM Editor.

To trigger rule refactoring:

  1. In the BOM Editor, modify the verbalization of a term or phrase that is used in a rule artifact.
  2. The BOM Editor displays the following warning:
    images/refactoring.png
  3. Save the BOM.
  4. The Refactor Vocabulary dialog opens.
    images/refactor_dialog.png
  5. In the Refactor Vocabulary dialog, select the rule artifacts you want to be refactored, and click Yes.

If you want to see refactoring history, in the Project menu click Properties > Refactoring History.

Related Concepts

Overview: Ways of Expressing a Business Policy

Related Tasks

Managing XOM Changes in the BOM

Related Reference

Refactor Variable Dialog
Refactoring Dialog
Refactor Parameters