Add a Domain Model

You can store domain models as desired, for example, in a folder called DomainModels. For each domain model, you create a set of domain entries, where each entry represents a valid value for the entity property that uses the domain model.

    Procedure
  1. Right-click the folder where you want to store the domain model, and select New > Domain Model. You see the New Domain Model Wizard.

    Alternatively, right-click a resource, and select New > Other. In the New dialog, select Domain Model under TIBCO BusinessEvents.

  2. In the Domain Model Name field, type a name for the domain model. In the Description field, type a description.
    Note: You cannot change the name in the editor. To change the name of any project element, right-click the element in BusinessEvents Studio Explorer and select Refactor > Rename. See Element Refactoring Operations for more details.
  3. Click Finish.
    The new Domain Model is opened in the Domain Model editor.
  4. In the Domain Type field, select the data type for this domain model. See Supported Data Types for supported types.
  5. As needed, complete the Inherits From field. If this domain model extends another domain model, browse to and select that domain model.
  6. In the Domain Entries section, click Add.

    An empty row appears in the table of entries.

    You can also select rows and click Duplicate to duplicate (and then modify) selected rows.

    You can select a row and click Remove to remove individual rows that are not needed.

  7. For each row you add, enter a description (optional) and in the Details section, define the domain model entry.

    The Details section presents appropriate fields for defining the type of domain model entry you selected in Step 4.

  8. When you have created the entries for the domain model, save the domain model resource.
What to do next

After you add a domain model, associate it with a property, see Associating Domain Models to Properties.