4.2.9 ConditionalPolicy Example
The following is an example of the ConditionalPolicy (section 2.2.5.12) XML element.
-
<?xml version="1.0"?> <?WSRM version="1.0"?> <ConditionalPolicy Name=" GlobalCP "> <ConditionsList> <Condition Active="true" ID="0" Category="Processor" Name="ProcessorNew"> <ConditionString ConditionState="ProcessorNew" Operator="New"/> <ConditionRelationship Operator="AND" NextNode="ConditionString"/> <ConditionString ConditionState="ProcessorGT" Operator="GT" Num="4"/> <ConditionRelationship Operator="None" NextNode="None"/> <ConditionEvaluation Result="false"/> <Action> <SwitchToPolicy> No Action</SwitchToPolicy> </Action> </Condition> <Condition Active="true" ID="1" Category="Processor" Name="ProcessorNew"> <ConditionString ConditionState="ProcessorNew" Operator="New"/> <ConditionRelationship Operator="AND" NextNode="ConditionString"/> <ConditionString ConditionState="ANY"/> <ConditionRelationship Operator="None" NextNode="None"/> <ConditionEvaluation Result="false"/> <Action> <SwitchToPolicy> Equal_Per_Process</SwitchToPolicy> </Action> </Condition> </ConditionsList> </ConditionalPolicy>
Additional XML data examples are specified in section 4.2.