Domain Models
Domain model resources enable you to control user input for decision tables and test data. This chapter describes how to add and import domain models and associate them with entity properties.
You can add domain models for concept, event, and scorecard properties. A domain model specifies the values that you may find useful for defining ontology item properties. For example, instead of typing text for a certain concept property, you can pick a value from a list, or enter a value within a predefined range.
A domain model can extend another domain model. When defining a domain model you can specify which domain model it inherits from.
Domain model entries are case sensitive. For example, m and M are recognized as different entries.
Domain models can be used in decision tables and in test data for Tester. Decision tables are available in the TIBCO BusinessEvents Decision Manager add-on. See TIBCO BusinessEvents Decision Manager documentation for details about working with decision tables.
- Set Up a Domain Model
Setting up domain models has two steps: - Domain Model Value Descriptions for User Friendly Presentation
All domain model values can have optional descriptions that appear in the domain model editor. A preference determines whether domain model values or their descriptions appear in decision table cells. For some applications, displaying descriptions can make the table easier for users to understand. For example, suppose the value is a code such as 23, and the description is North West. Users will find it is easier to work with the description than the code. As another example, for a Boolean data type, the description can provide words such as Accepted and Rejected for the values True or False. - Adding 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. - Importing and Exporting Domain Models
You can import domain model information from a database, from a Microsoft Excel spreadsheet, and from the source of a database concept property. (Database concepts are available in the TIBCO BusinessEvents Data Modeling add-on). - Importing Domain Model Entries from Excel
- Importing Domain Model Entries from a Database Table
When you import domain model information from a database, the result set from the SQL query is transformed for use as domain model entries. This feature is supported with Oracle Database. - Associating Domain Models with Properties
You can associate domain models with concept, event, and scorecard properties. - Validating Data in Domain Models
You can validate duplicate entries and a mismatch of upper and lower range values while defining domain models.