| ILOG JRules User Guide > Creating Rule Projects > Getting Started > Tutorial: Defining a Vocabulary > Step 3: Test the Vocabulary in a Business Rule |
Step 3: Test the Vocabulary in a Business Rule |
PREVIOUS NEXT |
It is recommended that you store your rule artifacts in rule packages, not directly in the rules folder.
To create a rule package:
rules folder and, on the File menu, click New > Rule Package.
Loyalty.
You are now going to create a business rule that uses the vocabulary related to customers and rental agreements.
To create a business rule:
Loyalty package and click New > Business Rule.
AwardLoyalty. Click Finish.
In the Intellirule Editor, type the contents of the rule in the Code section using the Content Assist mechanism, as follows.
To edit the business rule:
if and press ENTER.
the duration of <a rental agreement> and press ENTER.
the rental agreement and press ENTER.
is more than and press ENTER.
20 and press ENTER.
then and press ENTER.
In the next Step of the tutorial, you will see how to extend the vocabulary with business elements that do not exist in the XOM, but can be mapped to it.
Next: Step 4: Extend the Business Object Model
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |