Adding a new entity attribute in the model template
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.
About this task
To add a new entity attribute to the existing out-of-the-box model template XML file:
Procedure
- Extract the out-of-the-box template XML file from the <runtime_sandbox>/resources/modelTemplates folder to your local system.
- 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.
- Define the values of the other XML attributes and update the template XML file with your customizations.
- Create a folder structure global/template/resource under the <runtime_sandbox>/extensions folder.
- Copy the modified template XML file to the <runtime_sandbox>/extensions/global/template/resource folder.
- Rebuild the resources JAR file.
- Rebuild the enterprise EAR.