-
Notifications
You must be signed in to change notification settings - Fork 2
rule MultiValuedAttributeValueRule
Ryan Newington edited this page Jun 6, 2016
·
1 revision
The MultiValuedAttributeValueRule type is used to determine if the value of a multivalued attribute meets a given criteria.
The <rule>
element must contain the following attributes;
XML Attribute Name | Description | Allowed Values |
---|---|---|
xsi:type | The type of rule | This value must be sshma:rule-MultiValuedAttributeValueRule
|
id | The unique ID for the rule. This is used to reference the rule in the [[command | commands]] object |
attribute | The attribute to evaluate | Any attribute defined in the schema that is present on the class of object being evaluated |
multivalue-condition | The criteria for evaluating the values in the multi-value array | See multivalued-condition for an explanation on the allowed condition operators |
operator | The evaluation operator | See [[allowed value operators |
value | The expected value | The string representation of the expected value |
<rule xsi:type="sshma:rule-MultiValuedAttributeValueRule" id="AnyMemberEqualsJohnSmith" attribute="member" multivalue-condition="Any" operator="Equals" value="JohnSmith"/>
The example shown above passes evaluation if the member
multi-value attribute contains any value that equals "JohnSmith".