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
values?


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


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


</source>

<input>

<modify cached-time="20090608194332.044Z" class-name="User"
event-id="PK=900189981,table=IUDV20FU,schema=PIUD"
qualified-src-dn="\CoreIDs\MRETTON" src-entry-id="36845"
timestamp="1244490211#4">

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

<remove-value>

<value timestamp="1244474677#75"
type="string">RETTON</value>

</remove-value>

<add-value>

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

</add-value>

</modify-attr>

</modify>

</input>

Any help would be appreciated.


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