Hi!

I have a text driver. When a new user is created with this driver I set
some default (read attributes that I want everyone to have) attributes
in IDV that is not included the filter. This works great, but if I
submit an add event on a object that has an association, but does not
have the default attributes, I have trouble adding these attributes. I
have a rule like this


Code:
--------------------

<rule>
<description>Fix brfkCreateGroupWiseAccount </description>
<comment xml:space="preserve">Fixes brfkCreateGroupWiseAccount if not existing and assoced.</comment>
<conditions>
<and>
<if-association op="associated"/>
<if-dest-attr name="brfkCreateGroupWiseAccount" op="not-available"/>
</and>
</conditions>
<actions>
<do-set-dest-attr-value direct="true" name="brfkCreateGroupWiseAccount">
<arg-value>
<token-map dest="GroupWise" src="ArbeidsSted" table="..\..\rfkUtils\mtPlasseringAgresso">
<token-attr name="brfkAGArbeidssted"/>
</token-map>
</arg-value>
</do-set-dest-attr-value>
</actions>
</rule>
<rule>
<description>Fix sbasAktivStatus</description>
<comment xml:space="preserve">Fixes sbasAktivStatus if not existing and assoced.</comment>
<conditions>
<or>
<if-association op="associated"/>
</or>
<or>
<if-op-attr disabled="true" name="sbasAktivStatus" op="not-available"/>
<if-dest-attr name="sbasAktivStatus" op="not-available"/>
</or>
</conditions>
<actions>
<do-set-dest-attr-value direct="true" name="sbasAktivStatus">
<arg-value>
<token-text xml:space="preserve">0</token-text>
</arg-value>
</do-set-dest-attr-value>
</actions>
</rule>

--------------------

that I have tried in both Event and Command, but the attributes are
either filtered out or the rule is not applied (in Command). I do not
understand why these attributes are not added. How can I set these
default values in a merge?

My filter looks like this:

Code:
--------------------

<filter-class class-name="User" publisher="sync" subscriber="sync">
<filter-attr attr-name="Given Name" merge-authority="app" publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
<filter-attr attr-name="Surname" merge-authority="app" publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
<filter-attr attr-name="norEduPersonNIN" merge-authority="app" publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
<filter-attr attr-name="mobile" merge-authority="app" publisher="ignore" publisher-optimize-modify="true" subscriber="sync"/>
<filter-attr attr-name="Internet EMail Address" merge-authority="default" publisher="ignore" publisher-optimize-modify="true" subscriber="sync"/>
<filter-attr attr-name="brfkAGArbeidssted" merge-authority="default" publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
<filter-attr attr-name="brfkAGFromDate" merge-authority="default" publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
<filter-attr attr-name="brfkAGRessursnummer" merge-authority="default" publisher="sync" publisher-optimize-modify="true" subscriber="sync"/>
<filter-attr attr-name="brfkAGStilling" merge-authority="default" publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
<filter-attr attr-name="brfkAGStillingsKode" merge-authority="default" publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
<filter-attr attr-name="brfkAGToDate" merge-authority="default" publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
</filter-class>
</filter>

--------------------


This is an example of an input record:


Code:
--------------------
<delimited-text>
<record>
<field name="Event">ADD</field>
<field name="norEduPersonNIN">12345678912</field>
<field name="brfkAGRessursnummer">123456</field>
<field name="givenName">Frode</field>
<field name="surname">Sjovatsen</field>
<field name="brfkAGArbeidssted">32800</field>
<field name="brfkAGStillingskode">8530</field>
<field name="brfkAGStilling">328003</field>
<field name="brfkAGFromDate">20080501 00:00:00</field>
<field name="brfkAGToDate">20991231 00:00:00</field>
<field></field>
</record>
</delimited-text>
--------------------


--
Frode


--
fsjovatsen
------------------------------------------------------------------------
fsjovatsen's Profile: http://forums.novell.com/member.php?userid=9767
View this thread: http://forums.novell.com/showthread.php?t=370899