ILOG JRules User Guide > Creating Rule Projects > Tasks > Working With Business Elements > Defining Domains

You can extend the Business Object Model (BOM) with new domains.

To define a domain:

  1. In the Outline view, click the element to which you want to add the domain.
  2. In the BOM Editor, in the Domain section, click Create a domain. The Domain dialog opens.
    1. If you want to create a bounded domain, select Bounded in the drop-down list, then specify the bound values and whether they are included in the domain.
    2. If you want to create a collection, select Collection in the drop-down list, and click Browse to select the type of the collection. Note that a member of type java.util.Collection is not automatically treated as a collection in business rules until you set a collection domain on it.
    3. If you want to create an enumeration of literals, select Literals in the drop-down list, and click Add to add new values to the enumeration of literals.
    4. If you want to create an enumeration of static references, select Static References in the drop-down list, and click Add to add new static references to the list.
    5. If you want to create any other type of domain, select Other in the drop-down list, and enter the domain definition in the field provided.
  3. Click OK.
  4. The domain is added to the business element, and you can view its definition in the Domains section of the BOM Editor.

Related Concepts

Domains
Collections

Related Tasks

Creating New Business Elements
Notifying the Rule Engine of Object Updates
Adding Custom Properties to Business Elements
Correcting Errors Using Quick Fix

Related Reference

BOM Editor

Related Samples and Tutorials

Tutorial: Defining a Vocabulary