Can I Simplify this setting which pass a lot valute to testCall function
?



<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
"policy-builder-dtd"
"C:\Novell\IdentityManager\Designer\plugins\com.no vell.idm.policybuilder_4.0.0.201401071232\DTD\dirx mlscript4.0.2.dtd"><policy
xmlns:es="http://www.novell.com/nxsl/ecmascript">
<rule>
<description>PersonRule</description>
<comment xml:space="preserve">Define AccountInfo Syc Rule</comment>
<conditions>
<and>
<if-class-name mode="case" op="equal">Person</if-class-name>
</and>
</conditions>
<actions>
<do-set-local-variable name="af_PerDev" scope="policy">
<arg-string>
<token-attr name="PerDev"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="be_PerDev" scope="policy">
<arg-string>
<token-removed-attr name="PerDev"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="af_PerSno" scope="policy">
<arg-string>
<token-attr name="PerSno"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="be_PerSno" scope="policy">
<arg-string>
<token-removed-attr name="PerSno"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="af_PerCrcCode" scope="policy">
<arg-string>
<token-attr name="PerCrcCode"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="be_PerCrcCode" scope="policy">
<arg-string>
<token-removed-attr name="PerCrcCode"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="af_PerLevel" scope="policy">
<arg-string>
<token-attr name="PerLevel"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="be_PerLevel" scope="policy">
<arg-string>
<token-removed-attr name="PerLevel"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="af_PerGroup" scope="policy">
<arg-string>
<token-attr name="PerGroup"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="be_PerGroup" scope="policy">
<arg-string>
<token-removed-attr name="PerGroup"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="QueryDeviceInstanceDN" scope="policy">
<arg-string>
<token-global-variable name="idv.dit.data.devices"/>
<token-text xml:space="preserve">\DeviceInstance</token-text>
<token-attr name="PerDev"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="O-OBJECT" scope="policy">
<arg-node-set>
<token-query class-name="Organizational Unit" datastore="src"
scope="entry">
<arg-dn>
<token-local-variable name="QueryDeviceInstanceDN"/>
</arg-dn>
<arg-string>
<token-text>DeviceIP</token-text>
</arg-string>
<arg-string>
<token-text>DeviceType</token-text>
</arg-string>
<arg-string>
<token-text>DeviceProtocal</token-text>
</arg-string>
<arg-string>
<token-text>DevicePort</token-text>
</arg-string>
<arg-string>
<token-text>DeviceRecon</token-text>
</arg-string>
<arg-string>
<token-text>DeviceCrcCode</token-text>
</arg-string>
</token-query>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="pDeviceIP" scope="policy">
<arg-string>
<token-xpath
expression="$O-OBJECT/attr[@attr-name='DeviceIP']/value"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="pDeviceType" scope="policy">
<arg-string>
<token-xpath
expression="$O-OBJECT/attr[@attr-name='DeviceType']/value"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="pDeviceProtocal" scope="policy">
<arg-string>
<token-xpath
expression="$O-OBJECT/attr[@attr-name='DeviceProtocal']/value"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="pDevicePort" scope="policy">
<arg-string>
<token-xpath
expression="$O-OBJECT/attr[@attr-name='DevicePort']/value"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="pDeviceRecon" scope="policy">
<arg-string>
<token-xpath
expression="$O-OBJECT/attr[@attr-name='DeviceRecon']/value"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="pDeviceCrcCode" scope="policy">
<arg-string>
<token-xpath
expression="$O-OBJECT/attr[@attr-name='DeviceCrcCode']/value"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="test3" scope="policy">
<arg-string>
<token-xpath expression="es:testCall($af_PerDev, $be_PerDev,
$af_PerSno, $be_PerSno, $af_PerCrcCode, $be_PerCrcCode, $af_PerLevel,
$be_PerLevel, $af_PerGroup, $be_PerGroup, $pDeviceIP, $pDeviceType,
$pDeviceProtocal, $pDevicePort, $pDeviceRecon, $pDeviceCrcCode)"/>
</arg-string>
</do-set-local-variable>
</actions>
</rule>
</policy>


--
rickInTw
------------------------------------------------------------------------
rickInTw's Profile: https://forums.netiq.com/member.php?userid=6885
View this thread: https://forums.netiq.com/showthread.php?t=50517