Add a new entity attribute to a domain

You can add a new entity attribute to a domain that is displayed in the tree hierarchy from which an enterprise user can select the newly added entity attribute to create a condition. However, you cannot add a new dynamic entity attribute like the Item attribute to a domain.

About this task

This is because the dynamic entity attributes are read dynamically from the database, and depending on the entity attribute the XML attributes such as query types, xpaths and so on are displayed. You can add new entity attributes to the Order and OrderLine domains.

To add a new entity attribute to a domain:

Procedure

  1. Create the ApprovalRuleConfig.xml file if it does not already exist in the <install_dir>/extensions/sbc/webpages/sbc/metadata/approval folder.
  2. Create an element, Attribute, as a child element of the Attributes element. Ensure that you follow the structure of the following sample XML file when creating elements.
  3. Set the value of the Action XML attribute to ADD.
  4. Define the values of the other XML attributes.
    Note: Ensure that you rebuild the enterprise archive (EAR) after adding an entity attribute.
    Note: You cannot use custom Greex functions to define the customized conditions for an Approval Rule.