Example: Use an Entity-Level Attribute Condition to Set All Attributes of the Inferred Entity

For a policy model where the condition is an entity-level attribute and the relationships proven in the rule table include reference relationships, entity instances and entity attributes can not be inferred in a single rule table as the entity-level attribute used as the condition may not be in scope for all entities and attributes proved in the rule. Instead the rule table should be split into a table to prove entity instances and a separate table to prove entity-level attributes.

For example, if you had the following data model:

A data model where the condition is an entity-level attribute and the relationships include reference relationships.

You could have the following three rule tables (on separate sheets) in Excel:

  1. A table that infers the entity instances for 'the person's possible holiday destinations' relationship

    Rule table in Excel showing the use of conditions to determine when inferred entities should be created

  2. A table that infers the entity instances for 'the tourist attractions in the country' relationship

    Rule table in Excel showing the use of conditions to determine when inferred entities should be created

  3. A table that infers the entity-level attributes for 'the country' entity

    Rule table in Excel showing the proving of entity-level attributes

Tip: To see these rules in action, open the Holiday Destinations 2 project in Oracle Policy Modeling.