| ILOG JRules User Guide > Creating Rule Projects > Getting Started > Tutorial: Defining a Vocabulary > Step 6: Create a Domain |
Step 6: Create a Domain |
PREVIOUS NEXT |
A way to make the vocabulary more specific is to allow policy managers to select values in a domain. You can create an enumerated domain of literals in the BOM to allow policy managers to choose the car rental branch from a drop-down list.
To create an enumerated domain for branches:
Branch.state.
newValue with New York, then press ENTER.
Rhode Island, New Hampshire, and Massachusetts to the enumeration of literals.
You now need to write a rule to test this domain.
To write a business rule that uses the domain:
rules folder, create a business rule named BranchInfo.
if and press ENTER.
Congratulations! |
You have completed this tutorial and learned how to set up a vocabulary for rule editing. |
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |