I have good news about my driver. I did a couple of policies to control
query events. In event and command policies:

Code:
--------------------
<rule>
<description>Query Groups</description>
<conditions>
<and>
<if-operation mode="case" op="equal">query</if-operation>
<if-class-name mode="nocase" op="equal">Group</if-class-name>
</and>
</conditions>
<actions>
<do-set-op-property name="query">
<arg-string>
<token-text xml:space="preserve">groups</token-text>
</arg-string>
</do-set-op-property>
<do-set-local-variable name="queryGroups" scope="driver">
<arg-string>
<token-text xml:space="preserve">YES</token-text>
</arg-string>
</do-set-local-variable>
<do-break/>
</actions>
</rule>
--------------------

Then, in input transformation policies:
Code:
--------------------
<rule>
<description>Check vars</description>
<conditions>
<and>
<if-local-variable mode="nocase" name="queryGroups" op="equal">YES</if-local-variable>
</and>
</conditions>
<actions>
<do-set-local-variable disabled="true" name="result" scope="policy">
<arg-string>
<token-xpath expression="xxxxxxx.ucm.client.Subscriber:getRoles String(~url_bbdd~,~credentials_bbdd~)"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="result" scope="policy">
<arg-string>
<token-text xml:space="preserve">Auditor</token-text>
</arg-string>
</do-set-local-variable>
<do-trace-message>
<arg-string>
<token-text xml:space="preserve">roles: </token-text>
<token-local-variable name="result"/>
</arg-string>
</do-trace-message>
<do-for-each>
<arg-node-set>
<token-split delimiter="#">
<token-local-variable name="result"/>
</token-split>
</arg-node-set>
<arg-actions>
<do-append-xml-element expression=".." name="instance"/>
<do-set-xml-attr expression="../instance" name="class-name">
<arg-string>
<token-text xml:space="preserve">nrfRole</token-text>
</arg-string>
</do-set-xml-attr>
<do-set-xml-attr expression="../instance" name="event-id">
<arg-string>
<token-text xml:space="preserve">0</token-text>
</arg-string>
</do-set-xml-attr>
<do-set-xml-attr expression="../instance" name="src-dn">
<arg-string>
<token-text xml:space="preserve">Roles-</token-text>
<token-local-variable name="current-node"/>
</arg-string>
</do-set-xml-attr>
<do-append-xml-text expression="../instance">
<arg-string>
<token-text xml:space="preserve">
&lt;attr attr-name="FLD_02">
&lt;value></token-text>
<token-local-variable name="current-node"/>
<token-text xml:space="preserve">&lt;/value>
&lt;/attr>
&lt;association>R#</token-text>
<token-local-variable name="current-node"/>
<token-text xml:space="preserve">&lt;/association>
</token-text>
</arg-string>
</do-append-xml-text>
</arg-actions>
</do-for-each>
<do-append-xml-element disabled="true" expression=".." name="status"/>
<do-set-xml-attr disabled="true" expression="../status" name="level">
<arg-string>
<token-text xml:space="preserve">success</token-text>
</arg-string>
</do-set-xml-attr>
<do-append-xml-text expression="../status">
<arg-string>
<token-text xml:space="preserve">Query succeeded</token-text>
</arg-string>
</do-append-xml-text>
<do-veto disabled="true" notrace="true"/>
</actions>
</rule>
--------------------
But, when i are defining an Entitlement Policy for assigning a Role and
do the query... it stop waiting "12:26:19 DC23DBA0 Drvrs: UCM--->
ST:Resolving association references."

Here is the FULL trace of the event:
Code:
--------------------
:Injecting User Agent XDS command document into Subscriber channel.
:Applying command transformation policies.
:Applying policy: Sub_Cmt_001_Command.
: Applying to query #1.
: Evaluating selection criteria for rule 'Query Groups'.
: (if-operation equal "query") = TRUE.
: (if-class-name equal "Group") = TRUE.
: Rule selected.
: Applying rule 'Query Grupos'.
: Action: do-set-op-property("query","groups").
: arg-string("groups")
: token-text("groups")
: Arg Value: "groups".
: Action: do-set-local-variable("queryGroups",scope="driver","YES").
: arg-string("YES")
: token-text("YES")
: Arg Value: "YES".
: Action: do-break().
:Policy returned:
:
<nds dtdversion="2.0">
<input>
<query class-name="Group" scope="subordinates">
<search-class class-name="Group"/>
<read-attr attr-name="Description"/>
<read-attr attr-name="CN"/>
<operation-data query="groups"/>
</query>
</input>
</nds>
:Filtering out notification-only attributes.
:Fixing up association references.
:Applying schema mapping policies to output.
:Applying policy: Sch_001_MapeoAtributes.
: Mapping attr-name 'CN' to 'FLD_02'.
: Mapping class-name 'Group' to 'nrfRole'.
: Mapping class-name 'Group' to 'nrfRole'.
:No output transformation policies.
:Submitting document to subscriber shim:
:
<nds dtdversion="2.0">
<input>
<query class-name="nrfRole" event-id="0" scope="subordinates">
<search-class class-name="nrfRole"/>
<read-attr attr-name="Description"/>
<read-attr attr-name="FLD_02"/>
<operation-data query="groups"/>
</query>
</input>
</nds>
:Stripping operation data from input document
:GAP_UCM: SubShim.execute
:SubscriptionShim.execute() returned:
:
<nds dtdversion="2.0">
<source>
<product build="20080710_082352" instance="GAP_UCM" version="3.5.4">Identity Manager Driver for Delimited Text</product>
</source>
<output>
<status level="success"/>
</output>
</nds>
:Applying input transformation policies.
:Applying XSLT policy: InputTransformSS.
:Policy returned:
:
<nds dtdversion="2.0">
<source>
<product build="20080710_082352" instance="GAP_UCM" version="3.5.4">Identity Manager Driver for Delimited Text</product>
</source>
<output>
<status level="success"/>
</output>
</nds>
:Applying policy: OtraInput.
: Applying to status #1.
: Evaluating selection criteria for rule 'Check vars'.
: (if-local-variable 'queryGroups' equal "YES") = TRUE.
: Rule selected.
: Applying rule 'Check vars'.
: Action: do-set-local-variable("resultado",scope="policy","Auditor").
: arg-string("Auditor")
: token-text("Auditor")
: Arg Value: "Auditor".
: Action: do-trace-message("roles: "+token-local-variable("result")).
: arg-string("roles: "+token-local-variable("result"))
: token-text("roles: ")
: token-local-variable("result")
: Token Value: "Auditor".
: Arg Value: "roles: Auditor".
:roles: Auditor
: Action: do-for-each(arg-node-set(token-split("#",token-local-variable("result")))).
: arg-node-set(token-split("#",token-local-variable("result")))
: token-split("#",token-local-variable("result"))
: token-split("#",token-local-variable("result"))
: token-local-variable("result")
: Token Value: "Auditor".
: Arg Value: "Auditor".
: Token Value: {"Auditor"}.
: Arg Value: {"Auditor"}.
: Performing actions for local-variable(current-node) = "Auditor".
: Action: do-trace-message("Objeto: "+token-local-variable("current-node")).
: arg-string("Objeto: "+token-local-variable("current-node"))
: token-text("Objeto: ")
: token-local-variable("current-node")
: Token Value: "Auditor".
: Arg Value: "Objeto: Auditor".
:Objeto: Auditor
: Action: do-append-xml-element("instance","..").
: Action: do-set-xml-attr("class-name","../instance","nrfRole").
: arg-string("nrfRole")
: token-text("nrfRole")
: Arg Value: "nrfRole".
: Action: do-set-xml-attr("event-id","../instance","0").
: arg-string("0")
: token-text("0")
: Arg Value: "0".
: Action: do-set-xml-attr("src-dn","../instance","Roles-"+token-local-variable("current-node")).
: arg-string("Roles-"+token-local-variable("current-node"))
: token-text("Roles-")
: token-local-variable("current-node")
: Token Value: "Auditor".
: Arg Value: "Roles-Auditor".
: Action: do-append-xml-text("../instance","
<attr attr-name="FLD_02">
<value>"+token-local-variable("current-node")+"</value>
</attr>
<association>R#"+token-local-variable("current-node")+"</association>
").
: arg-string("
<attr attr-name="FLD_02">
<value>"+token-local-variable("current-node")+"</value>
</attr>
<association>R#"+token-local-variable("current-node")+"</association>
")
: token-text("
<attr attr-name="FLD_02">
<value>")
: token-local-variable("current-node")
: Token Value: "Auditor".
: token-text("</value>
</attr>
<association>R#")
: token-local-variable("current-node")
: Token Value: "Auditor".
: token-text("</association>
")
: Arg Value: "
<attr attr-name="FLD_02">
<value>Auditor</value>
</attr>
<association>R#Auditor</association>
".
: Action: do-append-xml-text("../status","Query succeeded").
: arg-string("Query succeeded")
: token-text("Query succeeded")
: Arg Value: "Query succeeded".
:Policy returned:
:
<nds dtdversion="2.0">
<source>
<product build="20080710_082352" instance="GAP_UCM" version="3.5.4">Identity Manager Driver for Delimited Text</product>
</source>
<output>
<status level="success">Query succeeded</status>
<instance class-name="nrfRole" event-id="0" src-dn="Roles-Auditor">
<attr attr-name="FLD_02">
<value>Auditor</value>
</attr>
<association>R#Auditor</association>
</instance>
</output>
</nds>
:Applying schema mapping policies to input.
:Applying policy: Sch_001_MapAtributes.
: Mapping class-name 'nrfRole' to 'Group'.
:Resolving association references.

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


Can U help me, please?

Thanks.


--
pepegomez
------------------------------------------------------------------------
pepegomez's Profile: http://forums.novell.com/member.php?userid=43610
View this thread: http://forums.novell.com/showthread.php?t=398953