3. Content Rule
( arg-string | arg-node-set | arg-object )
The <do-set-local-variable> action causes a local variable with the given name to be set to the string value specified by <arg-string>, the XPATH 1.0 Node Set specified by <arg-node-set>, or the Java Object specified by <arg-object>.
<do-set-local-variable name="lastName" scope="policy">
<arg-string>
<token-attr name="Surname"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="lastName" scope="policy">
<arg-node-set>
<token-attr name="Surname"/>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="lastName">
<arg-object>
<token-xpath expression="jrandom:new()"/>
</arg-object>
</do-set-local-variable>
- arg-string
- string argument
- arg-node-set
- node set argument
- arg-object
- Java Object argument
Attribute Value(s) Default Value disabled true | false
true if this element is disabledfalse name CDATA
#REQUIRED notrace true | false
false scope policy | driver
scope of the variable
policy - variable is visible only within the current policy during the current invocation of the policy
driver - variable is visible to all policies within the current driver until the driver is stopped
supports variable expansion
policy
( arg-string | arg-node-set | arg-object )
- actions
- actions that are performed by a <rule>
- arg-actions
- actions argument
Top Elements || All Elements || Tree