ILOG JRules User Guide > Writing Rules > Tasks > Correcting Errors Using Quick Fix

The Eclipse Quick Fix feature is available in the Intellirule Editor, the Decision Table Editor, and the Decision Tree Editor. Quick Fix messages offer suggestions to automatically correct detected errors. Quick Fix messages let you:

In the Decision Table Editor and the Decision Tree Editor, Quick Fix can also detect and let you add missing domain values.

To access the proposed quick fixes, click the light bulb icon images/quickfix_icon.png or place your cursor on the error and press CTRL-1. The messages provide a list of possible corrections from which you can select the appropriate fix.

Note
The following Quick Fixes are available in the English version of Intellirule Editor only:

To auto-correct an error from the quick fix message:

  1. Put your cursor on the error indicator to display the error messages.
  2. images/intellirule_errormsg.png
  3. Click the light bulb icon or move your cursor to the error in the rule, and press CTRL-1 to open the quick fix message.
  4. images/intellirule_errorfix.png
    In this example, the customer object does not have an age attribute, so it must be added to the BOM in order for it to be used in the rule.
    Note
    To access quick fixes, you must correct errors in the order in which they appear.
  5. From the list of suggestions, click the appropriate fix.
  6. In this example, selecting Add a new navigation phrase `age' on customer opens the Add New Phrase wizard. In the wizard, you can choose to create a navigation phrase or an action phrase for the new element when you add it to the BOM.
    images/intellirule_wizard.png
    Once you have finished with the wizard, the error should be resolved and you can continue building your rule.

Related Concepts

Business Rules

Related Tasks

Building Rules Using the Intellirule Editor
Navigating from a Business Rule to a Business Element

Related Reference

Intellirule Editor
Business Action Language

Related Samples and Tutorials

Tutorial: Creating Business Rules