Example types of Override
Example 1: TargetOverride
Objective: change the target value to "14
", if the conditions of TargetItem
in <conditions> has a match.
<AgreementOverride>
<overrides>
<TargetOverride>
<conditions>
<TargetItem>
<name>hub:5_elementvalue01</name>
<path>/EventData/Document/ElementData/Value[1]</path>
<value>750</value>
<defaultNamespace></defaultNamespace>
<formattedXPath>/EventData/Document/ElementData/Value[1]</formattedXPath>
</TargetItem>
<TargetItem>
<name>hub:4_elementname01</name>
<path>/EventData/Document/ElementData/Name[1]</path>
<value>CONO</value>
<defaultNamespace></defaultNamespace>
<formattedXPath>/EventData/Document/ElementData/Name[1]</formattedXPath>
</TargetItem>
</conditions>
<name>hub:5_elementvalue01</name>
<value>14</value>
<mandatory>true</mandatory>
<default>VALUE</default>
</TargetOverride>
</overrides>
</AgreementOverride>
Example 2: AgreementGroupPropertyOverride
Objective: update the property value to "A_1
", if PropertyItem
named "nameA
" in the <condition> has a match.
<AgreementOverride>
<overrides>
<AgreementGroupPropertyOverride>
<conditions>
<PropertyItem>
<key>nameA</key>
<value>valueA</value>
</PropertyItem>
</conditions>
<name>nameA</name>
<value>valueA_1</value>
<mandatory>true</mandatory>
<operation>UPDATE</operation>
</AgreementGroupPropertyOverride>
</overrides>
</AgreementOverride>
Example 3: AgreementGroupPropertyOverride
Objective: insert a new group control property [nameB, valueB]
, if property does not exists.
<AgreementOverride>
<overrides>
<AgreementGroupPropertyOverride>
<conditions>
<PropertyItem>
<key></key>
<value></value>
</PropertyItem>
</conditions>
<name>nameB</name>
<value>valueB</value>
<mandatory>true</mandatory>
<operation>INSERT</operation>
</AgreementGroupPropertyOverride>
</overrides>
</AgreementOverride>
Example 4: Combined
Objective: put together all three previous examples in one xml file.
<AgreementOverride>
<overrides>
<TargetOverride>
<conditions>
<TargetItem>
<name>hub:5_elementvalue01</name>
<path>/EventData/Document/ElementData/Value[1]</path>
<value>330</value>
<defaultNamespace></defaultNamespace>
<formattedXPath>/EventData/Document/ElementData/Value[1]</formattedXPath>
</TargetItem>
<TargetItem>
<name>hub:4_elementname01</name>
<path>/EventData/Document/ElementData/Name[1]</path>
<value>CONO</value>
<defaultNamespace> </defaultNamespace>
<formattedXPath>/EventData/Document/ElementData/Name[1]</formattedXPath>
</TargetItem>
</conditions>
<name>hub:5_elementvalue01</name>
<value>14</value>
<mandatory>true</mandatory>
<default>VALUE</default>
</TargetOverride>
<AgreementGroupPropertyOverride>
<conditions>
<PropertyItem>
<key>asdf</key>
<value>asdf</value>
</PropertyItem>
</conditions>
<name>nameB</name>
<value>valueB</value>
<mandatory>true</mandatory>
<operation>INSERT</operation>
</AgreementGroupPropertyOverride>
<AgreementGroupPropertyOverride>
<conditions>
<PropertyItem>
<key>nameA</key>
<value>valueA</value>
</PropertyItem>
</conditions>
<name>nameA</name>
<value>valueA_1</value>
<mandatory>true</mandatory>
<operation>UPDATE</operation>
</AgreementGroupPropertyOverride>
</overrides>
</AgreementOverride>