Here is the deal - I have job that will be running every night, and
based on conditions / data found, it will query a group to find people
to be sent an email.
The query runs, and I am trying to stuff the query results into a
nodeset, and there should be 5 - 25 DN's in the nodeset. The "for each"
that I am using seems to be finding the group (and reading the members
into one big string), instead of putting the members into a nodeset.
Can't figure out how to do this right. Could anyone have a look?

Code:
<do-if>
<arg-conditions>
<and>
<if-local-variable mode=\"nocase\"
name=\"lv_currentuseremployeetype\"
op=\"equal\">chiefwhiner</if-local-variable>
</and>
</arg-conditions>
<arg-actions>
<do-if>
<arg-conditions>
<and>
<if-local-variable mode=\"nocase\"
name=\"lv_currentuseremployeetype\"
op=\"not-equal\">chiefwhiner</if-local-variable>
<if-src-attr mode=\"regex\" name=\"internet email address\"
op=\"equal\">.*~email-domain~</if-src-attr>
</and>
</arg-conditions>
<arg-actions>
<do-set-local-variable name=\"lv_currentuseremailaddress\"
scope=\"policy\">
<arg-string>
<token-src-attr class-name=\"user\" name=\"internet email
address\"/>
</arg-string>
</do-set-local-variable>
<do-set-op-property name=\"account-type\">
<arg-string>
<token-text xml:space=\"preserve\">non-phys-email</token-text>
</arg-string>
</do-set-op-property>
</arg-actions>
<arg-actions>
<do-if>
<arg-conditions>
<and>
<if-src-attr name=\"bbspersonalternateemailaddress\"
op=\"available\"/>
</and>
</arg-conditions>
<arg-actions>
<do-set-local-variable name=\"lv_currentuseremailaddress\"
scope=\"policy\">
<arg-string>
<token-src-attr class-name=\"user\"
name=\"bbspersonalternateemailaddress\"/>
</arg-string>
</do-set-local-variable>
<do-set-op-property name=\"account-type\">
<arg-string>
<token-text xml:space=\"preserve\">non-phys-email</token-text>
</arg-string>
</do-set-op-property>
</arg-actions>
<arg-actions>
<do-set-local-variable disabled=\"true\" name=\"lv_apoc-dns\"
scope=\"policy\">
<arg-node-set>
<token-query class-name=\"group\" datastore=\"src\"
scope=\"entry\">
<arg-dn>
<token-text
xml:space=\"preserve\">bbsidv\applications\carrysy stem\$lv_currentuserphyfacilitycode$-carrysystem</token-text>
</arg-dn>
<arg-string>
<token-text xml:space=\"preserve\">member</token-text>
</arg-string>
</token-query>
</arg-node-set>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-query class-name=\"group\" datastore=\"src\"
scope=\"entry\">
<arg-dn>
<token-text
xml:space=\"preserve\">bbsidv\applications\carrysy stem\groups\$lv_currentuserphyfacilitycode$-carrysystem</token-text>
</arg-dn>
<arg-string>
<token-text xml:space=\"preserve\">member</token-text>
</arg-string>
</token-query>
</arg-node-set>
<arg-actions>
<do-set-local-variable name=\"lv_apoc-data\" scope=\"policy\">
<arg-node-set>
<token-query class-name=\"user\" datastore=\"src\"
scope=\"entry\">
<arg-dn>
<token-local-variable name=\"current-node\"/>
</arg-dn>
<arg-string>
<token-text xml:space=\"preserve\">internet email
address</token-text>
</arg-string>
<arg-string>
<token-text xml:space=\"preserve\">ou</token-text>
</arg-string>
<arg-string>
<token-text
xml:space=\"preserve\">bbspersonagkr</token-text>
</arg-string>
</token-query>
</arg-node-set>
</do-set-local-variable>
</arg-actions>
</do-for-each>
<do-set-local-variable disabled=\"true\"
name=\"lv_currentuserapoc-dns\" scope=\"policy\">
<arg-node-set>
<token-query class-name=\"group\" datastore=\"src\"
scope=\"entry\">
<arg-dn>
<token-text
xml:space=\"preserve\">bbsidv\applications\carrysy stem\groups\$lv_currentuserphyfacilitycode$-carrysystem</token-text>
</arg-dn>
<arg-string>
<token-text xml:space=\"preserve\">member</token-text>
</arg-string>
</token-query>
</arg-node-set>
</do-set-local-variable>
<do-trace-message level=\"2\">
<arg-string>
<token-text xml:space=\"preserve\">the members of the nodeset
group currentuserapoc-data includes:
</token-text>
<token-local-variable name=\"lv_apoc-data\"/>
</arg-string>
</do-trace-message>
<do-for-each disabled=\"true\">
<arg-node-set>
<token-local-variable name=\"lv_apoc-data\"/>
</arg-node-set>
<arg-actions>
<do-set-local-variable name=\"lv_apoc-dataresults\"
scope=\"policy\">
<arg-node-set>
<token-query datastore=\"src\" scope=\"entry\">
<arg-dn>
<token-local-variable name=\"current-node\"/>
</arg-dn>
<arg-string>
<token-text xml:space=\"preserve\">internet email address,
bbspersonagkr, ou</token-text>
</arg-string>
</token-query>
</arg-node-set>
</do-set-local-variable>
</arg-actions>
</do-for-each>
<do-trace-message disabled=\"true\" level=\"2\">
<arg-string>
<token-text xml:space=\"preserve\">

the data found in this for each is:

</token-text>
<token-local-variable name=\"lv_apoc-dataresults\"/>
</arg-string>
</do-trace-message>
</arg-actions>
</do-if>
</arg-actions>
</do-if>
</arg-actions>
</do-if>


--
chwjim
------------------------------------------------------------------------
chwjim's Profile: http://forums.novell.com/member.php?userid=25740
View this thread: http://forums.novell.com/showthread.php?t=412647