Example: Create Multiple Entity Instances Using a Rule Table

Assuming you have the data model below:

Data model diagram showing relationships between the global entity, the employee entity and the location entity

you could write the following rule to infer multiple entity instances:

Table 1. Rule table used to create multiple instances
the locations
"Main Office" the assessment date <= 2015-01-01
"Warehouse" the assessment date >= 2015-01-01
"Factory" the assessment date >= 2015-01-01

This rule will create instances of the entity "the location" (depending on the assessment date), which are members of the containment relationship "the locations".

These instances will have "Main Office", "Warehouse" and "Factory" as the value of their identifying attributes.

Debugger Data view showing multiple inferred entity instances

Tip: To see the rule in this example in action, open the Worked Example 2 project in Oracle Policy Modeling and enable Alternative 2 in the rule document.