2.2.5.12 ConditionalPolicy Element

The ConditionalPolicy XML element is used to control the selection of RAP. It is the root element of XML documents that are used in WSRM method parameters.

 <xs:element name="ConditionalPolicy">
   <xs:complexType name="ConditionalPolicy">
     <xs:sequence>
       <xs:element name="ConditionsList"
         minOccurs="1"
         maxOccurs="unbounded"
       >
         <xs:complexType name="ConditionsList">
           <xs:sequence>
             <xs:element name="Condition"
               minOccurs="0"
               maxOccurs="unbounded"
             >
               <xs:complexType name="Condition">
                 <xs:choice
                   maxOccurs="unbounded"
                 >
                   <xs:element name="ConditionString">
                     <xs:complexType name="ConditionString">
                       <xs:attribute name="ConditionState"
                         type="xs:string"
                         use="required"
                        />
                       <xs:attribute name="Operator"
                         type="xs:string"
                         use="optional"
                        />
                       <xs:attribute name="Num"
                         type="xs:integer"
                         use="optional"
                        />
                       <xs:attribute name="Value"
                         type="xs:string"
                         use="optional"
                        />
                     </xs:complexType>
                   </xs:element>
                   <xs:element name="ConditionRelationship">
                     <xs:complexType name="ConditionRelationship">
                       <xs:attribute name="Operator"
                         type="xs:string"
                         use="required"
                        />
                       <xs:attribute name="NextNode"
                         type="xs:string"
                         use="required"
                        />
                     </xs:complexType>
                   </xs:element>
                   <xs:element name="ConditionEvaluation">
                     <xs:complexType name="ConditionEvaluation">
                       <xs:attribute name="Result"
                         type="xs:boolean"
                         use="required"
                        />
                     </xs:complexType>
                   </xs:element>
                   <xs:element name="Action">
                     <xs:complexType name="Action">
                       <xs:sequence>
                         <xs:element name="SwitchToPolicy"
                           type="xs:string"
                          />
                       </xs:sequence>
                     </xs:complexType>
                   </xs:element>
                 </xs:choice>
                 <xs:attribute name="Category"
                   type="xs:string"
                   use="required"
                  />
                 <xs:attribute name="Name"
                   type="xs:string"
                   use="required"
                  />
                 <xs:attribute name="Active"
                   type="xs:boolean"
                   use="required"
                  />
                 <xs:attribute name="ID"
                   type="xs:unsignedByte"
                   use="required"
                  />
               </xs:complexType>
             </xs:element>
           </xs:sequence>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
     <xs:attribute name="Name"
       type="xsd:string"
       use="required"
      />
   </xs:complexType>
 </xs:element>

Child Elements

Element

Type

Description

ConditionsList

ConditionsList

A specification of a set of conditions for filtering RAP.

Condition

Condition

A specification of a condition for filtering RAP.

ConditionString

ConditionString

A string that contains an argument that defines the condition.

ConditionRelationship

ConditionRelationship

A specification of a conditional relationship.

ConditionEvaluation

ConditionEvaluation

A specification of conditional evaluation.

Action

Action

A specification of an action based on the evaluation of the condition.

SwitchToPolicy

xs:string

The name of the policy to switch to, or "no action".

Attributes

Name

Type

Description

ConditionState

xs:string

A description of the condition state.

Operator

xs:string

An operator associated with the condition.

Num

xs:integer

A numerical argument to associate with the condition.

Value

xs:string

A value associated with the condition.

Operator

xs:string

The logical operator associated with the conditional relationship.

NextNode

xs:string

A link between conditions.

Result

xs:boolean

The result of evaluating the condition, in Boolean format (section 2.2.1.2).

Category

xs:string

The category of the condition defined in Condition Category (section 2.2.2.12).

Name

xs:string

The name of the condition. It can have one of the values from Condition Name (section 2.2.2.13).

Active

xs:boolean

An indication of whether the condition is active, in Boolean format.

ID

xs:unsignedByte

A numeric identifier of the conditional event.

Name

xsd:string

The name of the conditional policy.

Additional XML data formats are specified in section 2.2.5.