Example: Create a Single Entity Instance

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 a single entity instance:

the locations ("Main Office") exists

This rule will create a single instance of the entity "the location" which is a member of the containment relationship "the locations". The instance will have "Main Office" as the value of the identifying attribute.

Debugger Data view showing single inferred entity instance

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