Rename an entity, attribute or relationship

If you need to rename an entity, attribute or relationship you need to ensure that the change is made throughout the rule project.

Rename an attribute

To rename an attribute:

  1. In Oracle Policy Modeling, select View | Build Model.
  2. In the Build Model view, find the attribute whose text you want to change in the Attributes tab.
  3. Right-click the attribute and select Change Text Globally.
  4. Click Replace.

Rename an entity

To rename an entity:

  1. In the properties file for your project, double-click the entity to open the Edit Entity dialog box.
  2. Change the Entity Text, then click OK.
  3. You will be asked to confirm that you want to update the text of the attributes belonging to this entity. Select Yes.

NOTE: This only updates any attributes in your property files. All other entity-level attributes in your rulebase will need to be manually updated. To do this, open each rules file and do a "find and replace" to change the old entity text to the new entity text.

Rename a relationship

To rename a relationship:

  1. In the properties file for your project, select the source entity for the relationship and then click on the Relationships tab.
  2. Double click on the relationship to open the Edit Entity dialog box.
  3. Change the Text for the relationship, then click OK.

You now need to update the relationship text in your rules. The easiest way to identify where these changes need to be made is simply to re-compile each rules document and fix the errors that the compiler highlights.