Example: Create Multiple Entity Instances Using a Rule Table
Assuming you have the data model below:
you could write the following rule to infer multiple entity 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.
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.