Adding a new query type to an entity attribute
If you add a query type to the corresponding entity attribute that is used by a condition in the out-of-the-box template XML file, then the condition with the newly created query type can be used to define the validation rule or the override rule.
About this task
To add a new query type to an entity attribute:
Procedure
- Extract the out-of-the-box template XML file from the <install_dir>/ resources/modelTemplates folder to your local system.
- Create an element, QueryType, as a child element of the QueryTypes element.
- 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 <install_dir>/extensions folder.
- Copy the modified template XML file to the <install_dir>/extensions/global/template/resource folder.
- Rebuild the resources jar file.
- Rebuild the enterprise EAR.