I want to remove users dirxml-association when he is terminated in
PeopleSoft HR database. There is attribute in META which indicate
employees status active or teminated. It changes based on his status in
PeopleSoft DB. I want to add a condition to dirver to remove persons
dirxml association when status is temrinated.
Following condition added to command transformation policy on subscriber
channel is not working. Rule is acceptaed and everything works
sucessfully in trace but dirxml-association is not removed. Please
suggest what is missing to make it work.

Remove Peoplesoft Association when status=T

Conditions
if association associated
And if source attribute 'Status' available
And if source attribute 'Status' equal "T"

Actions
remove association (when="after", association
("cn=PeopleSoftxx,cn=Driverset,dc=com#1#" + Association () ) )

TRACE details:
[30/12/12 07:41:46.293]:PeopleSoftxx ST: Evaluating selection
criteria for rule 'Remove Peoplesoft Association when status=T'.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: (if-association
associated) = TRUE.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: (if-src-attr 'Status'
available) = TRUE.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: (if-src-attr 'Status'
equal "Terminated") = TRUE.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: Rule selected.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: Applying rule 'Remove
Peoplesoft Association when status=T'.
[30/12/12 07:41:46.294]:PeopleSoftxx ST: Action:
do-remove-association(when="after",arg-association("cn=PeopleSoftxx,cn=Driverset,dc=com#1 #"+token-association())).
[30/12/12 07:41:46.295]:PeopleSoftxx ST:
arg-association("cn=PeopleSoftxx,cn=Driverset,dc=com#1 #"+token-association())
[30/12/12 07:41:46.295]:PeopleSoftxx ST:
token-text("cn=PeopleSoftxx,cn=Driverset,dc=com#1#")
[30/12/12 07:41:46.295]:PeopleSoftxx ST: token-association()
[30/12/12 07:41:46.295]:PeopleSoftxx ST: Token Value:
"employeeid".
[30/12/12 07:41:46.295]:PeopleSoftxx ST: Arg Value:
"cn=PeopleSoftxx,cn=Driverset,dc=com#1#employeeid" .
[30/12/12 07:41:46.296]:PeopleSoftxx ST:Policy returned:
[30/12/12 07:41:46.296]:PeopleSoftxx ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Standard" version="4.0.2.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify class-name="User" dest-dn="DN" dest-entry-id="dest-entry-id"
event-id="<snip>" from-merge="true" src-dn="employeeid">
<association>employeeid</association>
</modify>
<remove-association
event-id="<snip>">cn=PeopleSoftxx,cn=Driverset,dc=com#1# employeeid</remove-association>
</input>
</nds>
[30/12/12 07:41:46.297]:PeopleSoftxx ST:Filtering out notification-only
attributes.
[30/12/12 07:41:46.297]:PeopleSoftxx ST: Filtered out <modify
class-name='User'>.
[30/12/12 07:41:46.297]:PeopleSoftxx ST:Pumping XDS to eDirectory.
[30/12/12 07:41:46.297]:PeopleSoftxx ST:Performing operation
remove-association for .
[30/12/12 07:41:46.298]:PeopleSoftxx ST:
DirXML Log Event -------------------
Driver: PeopleSoftxx
Channel: Subscriber
Object: DN
Status: Success


--
sureshwshinde
------------------------------------------------------------------------
sureshwshinde's Profile: https://forums.netiq.com/member.php?userid=4352
View this thread: https://forums.netiq.com/showthread.php?t=46819