Reuse existing rules for new attributes

To add a new attribute with identical behavior in terms of visibility and mandatory field conditions to an existing group of attributes, you can assign the behavesLike characteristic to the object type. The following example shows this mechanism with the risk owner being provided with a new mandatory attribute for the case that the risk assessment is to be assessed with the Qualitative type.

Location

XML file in the xml folder

Procedure

  1. Copy the definition of the relevant object type and add the new attribute.
  2. Under behavesLike at this attribute, enter the name of another defined attribute the behavior of which the new attribute is to adopt.
  3. Add the attribute to the form.

Documents

objectTypes.xml in the default

Example

ModifyRules_UseFreeriders

\WEB-INF\config\custom\xml\custom.xml: Add custom freerider attribute

ModifyRules_UseFreeriders

\WEB-INF\config\custom\xml\custom.xml: Add new attribute into risk assessment form