Add a new entity attribute in the model template

About this task

You can add a new entity attribute to the existing out-of-the-box model template XML file. The new entity attribute that is added to a domain is displayed in the tree hierarchy from which an enterprise user can select to create a condition for defining the validation rule or the override rule.

To add a new entity attribute to the existing out-of-the-box model template XML file:

Procedure

  1. Extract the out-of-the-box template XML file from the <install_dir>/resources/modelTemplates folder to your local system.
  2. Create an element Attribute, as a child element of the Attributes element. Ensure that you follow the structure of the sample XML file when creating elements.
  3. Define the values of the other XML attributes and update the template XML file with your customizations.
  4. Create a folder structure global/template/resource under the <install_dir>/extensions folder.
  5. Copy the modified template XML file to the <install_dir>/extensions/global/template/resource folder.
  6. Rebuild the resources jar file.
  7. Rebuild the enterprise EAR.