I am trying to write a rule that will perform several actions on a GW
account when the eDirectory counterpart is deleted. I cannot
successfully rename the account and perform the other actions (I can
only do one or the other). The error and the rule are posted below. I
currently have the rule in the event transformation policies. Can
anyone help so that I can perform all of the actions in the rule?

Thank you,
Jordan

_RULE:_
<?xml version="1.0" encoding="UTF-8"?><policy
xmlns:date="http://www.novell.com/nxsl/java/java.util.Date"
xmlns:gw="http://www.novell.com/dirxml/gwdriver"
xmlns:int="http://www.novell.com/nxsl/java/java.lang.Long"
xmlns:jdate="http://www.novell.com/nxsl/java/java.util.Date"
xmlns:jdateform="http://www.novell.com/nxsl/java/java.text.SimpleDateFormat"
xmlns:jformat="http://www.novell.com/nxsl/java/java.text.format"
xmlns:jstring="java.lang.String">
<rule>
<description>Add identification to &lt;sync> command</description>
<conditions>
<and>
<if-operation op="equal">sync</if-operation>
</and>
</conditions>
<actions>
<do-append-xml-element expression="." name="operation-data"/>
<do-append-xml-element expression="operation-data"
name="from-sync"/>
<do-append-xml-text expression="operation-data/from-sync">
<arg-string>
<token-text xml:space="preserve">true</token-text>
</arg-string>
</do-append-xml-text>
</actions>
</rule>
<!--
GW Action -> delete expire disable expire&disable
unexpire enable unexpire&enable
eDirectory Event
Delete default yes yes yes
Disable no yes default yes
Enable yes
default yes
Expire no default yes yes
Unexpire
default yes yes
-->
<!-- User Delete -->
<!-- User Login Disable/Enable -->
<!-- User Login Expire/Unexpire -->
<rule>
<description>eDir User Delete...</description>
<conditions>
<and>
<if-global-variable name="GW.UserDelete"
op="equal">disable</if-global-variable>
<if-operation op="equal">delete</if-operation>
<if-class-name op="equal">User</if-class-name>
</and>
</conditions>
<actions>
<do-set-dest-attr-value name="Login Disabled">
<arg-value type="state">
<token-text>true</token-text>
</arg-value>
</do-set-dest-attr-value>
<do-set-dest-attr-value name="NGW: Visibility">
<arg-value type="string">
<token-text xml:space="preserve">4</token-text>
</arg-value>
</do-set-dest-attr-value>
<do-set-dest-attr-value name="NGW: Mailbox Expiration Time">
<arg-value type="time">
<token-xpath expression="round(jdate:getTime(jdate:new()) div
1000)+7776000"/>
</arg-value>
</do-set-dest-attr-value>
<do-send-email server="iRelay4u">
<arg-string name="to">
<token-text
xml:space="preserve">ISD_IDM-Notify@dot.state.tx.us</token-text>
</arg-string>
<arg-string name="subject">
<token-upper-case>
<token-src-dn start="1"/>
</token-upper-case>
<token-text xml:space="preserve"> [INFO: eDirectory Account
Deleted with GroupWise Association]</token-text>
</arg-string>
<arg-string name="message">
<token-text xml:space="preserve">The specified eDirectory account
has been deleted. The associated GW account will be login disabled and
set to expire in 90 days. </token-text>
<token-text xml:space="preserve">GroupWise User ID: </token-text>
<token-dest-attr name="NGW: Object ID"/>
<token-text xml:space="preserve">. Post Office Location:
</token-text>
<token-dest-attr name="NGW: Post Office"/>
<token-text xml:space="preserve">NOTE: This is a system generated
message to provide account management information. Do not respond/reply
to this email, as this account does not accept email. If you need
additional assistance please contact your local Information Resources
Administrator.</token-text>
</arg-string>
</do-send-email>
<do-rename-dest-object disabled="true">
<arg-string>
<token-text xml:space="preserve">OLD-</token-text>
<token-src-name/>
</arg-string>
</do-rename-dest-object>
<do-set-xml-attr expression="../modify" name="gwriginal-event">
<arg-string>
<token-text>delete</token-text>
</arg-string>
</do-set-xml-attr>
<do-veto/>
</actions>
</rule>
</policy>

_ERROR:_
10:07:56 49DE81A0 Drvrs: GroupWise ST:
DirXML Log Event -------------------
Driver: \TXDOT\SUPPORT\TXDOTDriverSet\GroupWise
Channel: Subscriber
Status: Error
Message: Code(-9145) Error in
vnd.nds.stream://TXDOT/SUPPORT/TXDOTDriverSet/GroupWise/Subscriber/Event2#XmlData:75
: Unable to determine target object for action
'do-rename-dest-object("OLD-"+token-dest-attr("NGW: Object ID"))'.
10:08:03 49DE81A0 Drvrs: GroupWise ST:
DirXML Log Event -------------------
Driver: \TXDOT\SUPPORT\TXDOTDriverSet\GroupWise
Channel: Subscriber
Status: Error
Message: Code(-9083) Error submitting event to subscriber: Code(-9145)
Error in
vnd.nds.stream://TXDOT/SUPPORT/TXDOTDriverSet/GroupWise/Subscriber/Event2#XmlData:75
: Unable to determine target object for action
'do-rename-dest-object("OLD-"+token-dest-attr("NGW: Object ID"))'.


--
jcocke1
------------------------------------------------------------------------
jcocke1's Profile: http://forums.novell.com/member.php?userid=1649
View this thread: http://forums.novell.com/showthread.php?t=311495