ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Tutorial: Editing rules in Word 2007 > Step 2: Update an existing business rule

In this step, you modify the eligibility conditions for the Experienced Driver special offer.

You start by modifying the minimum age requirement, then you add a new condition so that the offer applies only to customers with "Platinum" status.

Modify the minimum age requirement
  1. In the RuleDoc Outline section of the RuleDoc pane, click the "Experienced Driver Special Offer: Eligibility" rule to jump to and select this rule in your document.
  2. images/ruledocoutlinedriver_eligibility.png
    This rule contains one condition statement (following the If keyword), and two Action statements (following the Then keyword.):
    If
        The age of the customer of the rental agreement is at least 40
    Then
        The rental agreement qualifies for the "Experienced Driver" offer ;
        Display the message: "The rental agreement is eligible for the Experienced Driver special offer." ;
  3. Select the value 40 (shown in blue) at the end of the condition statement, and change the value from 40 to 50 by typing over the existing value.
  4. The rule should now read as follows:
    If
        The age of the customer of the rental agreement is at least 50
    Then
        The rental agreement qualifies for the "Experienced Driver" offer ;
        Display the message: "The rental agreement is eligible for the Experienced Driver special offer." ;
  5. Make sure the insertion point is positioned at the end of the condition statement you just modified (just after the value 50), then press SPACE.
  6. The completion menu appears and lists all the phrases that can be inserted at the current position.
    images/completion_menu.png
  7. Use the ARROW DOWN key to select the phrase "and <condition>" in the completion menu, then press ENTER.
  8. The selected phrase is added to the rule and the <condition> placeholder is selected.
    The completion menu now displays a list of possible phrases to replace the <condition> placeholder.
  9. Type the word the, then press SPACE.
  10. As you type, the completion menu is updated so that only those options that start with the word "the" are listed.
  11. Continue typing the word frequent.
  12. The option "frequent customer status of <a customer>" should now be selected in the completion menu, as it is the only valid phrase available.
  13. Press ENTER to insert the rest of the phrase into the rule.
  14. The next placeholder "<a customer>" is automatically selected and the completion menu appears.
  15. Press ARROW DOWN to select the phrase "the customer of <a rental agreement>" in the completion menu, then press ENTER to insert the phrase.
  16. The next placeholder "<a rental agreement>" is automatically selected and the completion menu appears.
  17. Press ENTER again to replace the placeholder <a rental agreement> with "the rental agreement".
  18. Press SPACE, then press ARROW DOWN to select the phrase "is <an object>", then press ENTER to insert the selected phrase.
  19. In the completion menu, select and insert the value "Platinum".
  20. The "Experienced Driver Special Offer: Eligibility" rule should now read:
    If
        The age of the customer of the rental agreement is at least 50 and the frequent customer status of the customer of the rental agreement is Platinum
    Then
        The rental agreement qualifies for the "Experienced Driver" offer ;
        Display the message: "The rental agreement is eligible for the Experienced Driver special offer." ;
  21. Click Save (or press CTRL+S) to save your changes before continuing.

Next: Step 3: Create a new rule