Related Attribute Value Rule

This validation rule checks if the value of an Attribute A is consistent with the value of an Attribute B.

Given a value for Attribute A, if the value for Attribute B is not defined as a valid value in the rule's 'Value Map', an inconsistency is displayed.

circle-info

Note! The validation rule only caters for one value of Attribute A. To check for several values of Attribute A, add additional 'Related Attribute Value' rules.

<RelatedAttributeValueRule AttributeNameA="Criticality" AttributeNameB="Priority">
  <ValueMap ValueA="Critical">
    <ValidValue ValueB="High"/>
  </ValueMap>
</RelatedAttributeValueRule>

AttributeNameA (Required)

The attribute name of Attribute A.

AttributeNameB (Required)

The attribute name of Attribute B.

The Value Map (Xml elements)

<ValueMap ValueA="Critical">
        <ValidValue ValueB="High" />
        <ValidValue ValueB="Middle" />
</ValueMap>

Use the value map to, for given values of Attribute A, check if the Value of Attribute A is consistent with the value of Attribute B.

Last updated

Was this helpful?