This validation rule checks if the value of a given attribute is as expected (or as not expected). If the attribute value of the Document Object is not as expected, an inconsistency is displayed.
<AttributeValueRule AttributeName="Product Family" EvaluateAtCommit="true" CustomizedText="You must select at least one Product Family value!">
<NotExpectedValue>|</NotExpectedValue>
</AttributeValueRule>
AttributeName (Required)
The name of the attribute whose value should be validated.
ExpectedValue (Element, optional)
Any number of expected values (one value per element). If several values are listed, it is sufficient if one value matches. If none of the listed values match the current value, the rule yields an inconsistency.
NotExpectedValue (Element, optional)
Any number of not expected values (one value per element). If several values are listed, it is sufficient if one value matches. If any of the listed values match the current value, the rule yields an inconsistency.
In case of a not expecting an empty Multiselect attribute, use the pipe character as in the example above.
ExpectedApproved (Element, optional)
Only applicable to Approval Attributes. If the Approval Attribute value is not approved, the rule yields an inconsistency.
NotExpectedApproved (Element, optional)
Only applicable to Approval Attributes. If the Approval Attribute value is approved, the rule yields an inconsistency.