Defining domains

Use domains to extend the business object model (BOM).

About this task

You can create domains of different types to extend the business object model (BOM).

Note:

You can create dynamic domains only on a BOM class.

Procedure

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 Domains wizard displays the options that are available for the type of artifact that you are creating. The options can include items from the following list:

    • Bounded:

      To create a bounded domain, double-click Bounded, and then specify the bound values and whether they are included in the domain.

    • Collection:

      To create a collection, double-click Collection, and then 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.

    • Literals:

      To create an enumeration of literals, double-click Literals, and then click Add to add new values to the enumeration of literals.

    • Static References:

      To create an enumeration of static references, double-click Static References, and then click Add to add new static references to the list.

    • Other:

      To create any other type of domain, double-click Other, and then enter the domain definition in the field provided.

    • Excel:

      To create a dynamic domain from an Excel file, double-click Excel. For more information, see Creating dynamic domains from Excel.

  3. Click Finish.

    The domain is added to the business element. You can view its definition in the Domain section of the BOM Editor.

    You can now use the values of your domain when editing your rules.