I am using the null connector to set full name from given name and
surname. Works fine for adds or modifies. I would like to set another
attribute previousfullname with the values that existed before the given
name or surname changed. A small history.

I created a separate rule for adds and modifies on the subscriber event
transformation channel. The add and modify works no problem for setting
the fullname.

This is the rule for the modifies that updates previousfullname and
fullname. I know that the reference for attributes that I am trying to
get for previousfullname is not correct. I have tried every combination
that I can think of but cannot get the existing values for
previousfullname. I also imagine that I am going to have to test for
which values are available if one or the other changes but not both
since I only see the changed attribute in the trace.

Is this a situation where the null connector would not be a good choice
because a query needs to be made to the edirectory to get the existing

<description>Construct Full Name from Given Name and
<comment xml:space="preserve">The Given Name and Surname are used to
set the
full name whenever the attributes are set or modified.</comment>
<if-class-name op="equal">User</if-class-name>
<if-operation mode="case" op="equal">modify</if-operation>
<if-op-attr name="Given Name" op="changing"/>
<if-op-attr name="Surname" op="changing"/>
<do-set-src-attr-value name="PreviousFullName">
<token-src-attr name="Given Name"/>
<token-text xml:space="preserve"> </token-text>
<token-src-attr name="Surname"/>
<do-set-src-attr-value name="Full Name">
<arg-value type="string">
<token-src-attr name="Given Name"/>
<token-text xml:space="preserve"> </token-text>
<token-src-attr name="Surname"/>

I can see the existing value for the attribute that changed in the
trace. I have tried different attribute types (source, destination,
attribute) but none of them come up with the existing value.

Here is a bit of the trace. I can clearly see the old value for surname
that was changed. what do I need to do to reference to it? I imagine
that I will have to test for which attribute changed as well but I do
not think that should be a problem



<modify cached-time="20090608194332.044Z" class-name="User"
qualified-src-dn="\CoreIDs\MRETTON" src-entry-id="36845"

<modify-attr attr-name="Surname">


<value timestamp="1244474677#75"



<value timestamp="1244490211#4" type="string">SMITH</value>





Any help would be appreciated.

martinduffy's Profile: http://forums.novell.com/member.php?userid=31716
View this thread: http://forums.novell.com/showthread.php?t=375525