Application Delivery Management
Application Modernization & Connectivity
IT Operations Management
CyberRes
<rule>
<description>setVariables</description>
<conditions>
<and/>
</conditions>
<actions>
<do-set-local-variable name="lv_counter" scope="driver">
<arg-string>
<token-xpath expression="number(0)"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="lv_inputDocCount" scope="driver">
<arg-string>
<token-xpath expression="count(//input/*) 1"/>
</arg-string>
</do-set-local-variable>
</actions>
</rule>
<rule>
<description>addOperationData</description>
<conditions>
<and/>
</conditions>
<actions>
<do-for-each>
<arg-node-set>
<token-text xml:space="preserve">//input/*</token-text>
</arg-node-set>
<arg-actions>
<do-set-local-variable name="lv_counter" scope="driver">
<arg-string>
<token-xpath expression="number($lv_counter) 1"/>
</arg-string>
</do-set-local-variable>
<do-set-op-property name="opCounter">
<arg-string>
<token-text xml:space="preserve">$lv_counter$</token-text>
</arg-string>
</do-set-op-property>
<do-set-op-property name="opCount">
<arg-string>
<token-text xml:space="preserve">$lv_inputDocCount$</token-text>
</arg-string>
</do-set-op-property>
</arg-actions>
</do-for-each>
</actions>
</rule>
<rule>
<description>add-doNotTouch</description>
<conditions>
<and/>
</conditions>
<actions>
<do-add-dest-attr-value class-name="doNotTouch" name="doNotTouch">
<arg-value type="string">
<token-text xml:space="preserve">BLAST</token-text>
</arg-value>
</do-add-dest-attr-value>
</actions>
</rule>
if attr doNotTouch = 'BLAST'
veto
<rule>
<description>stopIt</description>
<conditions>
<and>
<if-attr mode="nocase" name="doNotTouch" op="equal">BLAST</if-attr>
</and>
</conditions>
<actions>
<do-trace-message>
<arg-string>
<token-text xml:space="preserve">OBJECT is locked</token-text>
</arg-string>
</do-trace-message>
<do-veto/>
</actions>
</rule>
if attr 'Last Name' changing ....
<rule>
<description>CleanUp</description>
<conditions>
<and>
<if-operation mode="case" op="equal">status</if-operation>
</and>
</conditions>
<actions>
<do-set-local-variable name="lv_opCount" scope="policy">
<arg-string>
<token-op-property name="opCount"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="lv_opCounter" scope="policy">
<arg-string>
<token-op-property name="opCounter"/>
</arg-string>
</do-set-local-variable>
<do-if>
<arg-conditions>
<and>
<if-xpath op="true">$lv_opCount = $lv_opCounter</if-xpath>
</and>
</arg-conditions>
<arg-actions>
<do-set-local-variable name="lv_foundObjects" scope="policy">
<arg-node-set>
<token-query datastore="src">
<arg-match-attr name="doNotTouch">
<arg-value type="string">
<token-text xml:space="preserve">BLAST</token-text>
</arg-value>
</arg-match-attr>
</token-query>
</arg-node-set>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-local-variable name="lv_foundObjects"/>
</arg-node-set>
<arg-actions>
<do-set-local-variable name="lv_object" scope="policy">
<arg-string>
<token-xpath expression="$current-node/@src-dn"/>
</arg-string>
</do-set-local-variable>
<do-remove-src-attr-value name="doNotTouch">
<arg-dn>
<token-text xml:space="preserve">$lv_object$</token-text>
</arg-dn>
<arg-value type="string">
<token-text xml:space="preserve">BLAST</token-text>
</arg-value>
</do-remove-src-attr-value>
</arg-actions>
</do-for-each>
</arg-actions>
<arg-actions/>
</do-if>
</actions>
</rule>