Hi everyone,

This is kind of an emergency :s

I don't understand why but the fact is:
In a policy, i have some value that i store in a local variable to
compare it with an operation attribute in a if-condition:

Code:
--------------------
<if-op-attr mode="nocase" name="gfLibelleSociete" op="not-equal">$currentLibelle$</if-op-attr>
--------------------


currentLibelle is my localvariable name, i put it in the field via the
variable browser of designer but when i make one of my user passes
through the driver the test doesn't work:


Code:
--------------------
01:00:00 9C550BA0 Drvrs: SAP Driver PT:Applying policy: Gestion de la structure organisationnelle.
04:38:08 9C550BA0 Drvrs: SAP Driver PT: Applying to add #1.
08:29:36 9C550BA0 Drvrs: SAP Driver PT: Evaluating selection criteria for rule 'Gestion de la societ?'.
01:00:00 9C550BA0 Drvrs: SAP Driver PT: (if-op-attr 'gfCodeSociete' available) = TRUE.
16:56:15 9C550BA0 Drvrs: SAP Driver PT: Rule selected.
03:31:11 9C550BA0 Drvrs: SAP Driver PT: Applying rule 'Gestion de la societ?'.
07:30:04 9C550BA0 Drvrs: SAP Driver PT: Action: do-set-local-variable("currentOU",scope="policy",token-dest-attr("OU",class-name="Organizational Unit",arg-dn(token-global-variable("OrganizationsDN")+"\"+token-op-attr("gfCodeSociete")))).
13:35:44 9C550BA0 Drvrs: SAP Driver PT: arg-string(token-dest-attr("OU",class-name="Organizational Unit",arg-dn(token-global-variable("OrganizationsDN")+"\"+token-op-attr("gfCodeSociete"))))
05:50:58 9C550BA0 Drvrs: SAP Driver PT: token-dest-attr("OU",class-name="Organizational Unit",arg-dn(token-global-variable("OrganizationsDN")+"\"+token-op-attr("gfCodeSociete")))
FF000001 9C550BA0 Drvrs: SAP Driver PT: arg-dn(token-global-variable("OrganizationsDN")+"\"+token-op-attr("gfCodeSociete"))
12:06:32 9C550BA0 Drvrs: SAP Driver PT: token-global-variable("OrganizationsDN")
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Token Value: "Interns-Partners\Organizations".
01:00:01 9C550BA0 Drvrs: SAP Driver PT: token-text("\")
01:00:00 9C550BA0 Drvrs: SAP Driver PT: token-op-attr("gfCodeSociete")
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Token Value: "50065868".
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Arg Value: "Interns-Partners\Organizations\50065868".
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Query from policy
---
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Query from policy result
---
16:30:11 9C550BA0 Drvrs: SAP Driver PT: Token Value: "50065868".
03:31:11 9C550BA0 Drvrs: SAP Driver PT: Arg Value: "50065868".
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Action: do-set-local-variable("currentLibelle",scope="policy",token-dest-attr("displayName",class-name="Organizational Unit",arg-dn(token-global-variable("OrganizationsDN")+"\"+token-op-attr("gfCodeSociete")))).
01:00:00 9C550BA0 Drvrs: SAP Driver PT: arg-string(token-dest-attr("displayName",class-name="Organizational Unit",arg-dn(token-global-variable("OrganizationsDN")+"\"+token-op-attr("gfCodeSociete"))))
01:00:00 9C550BA0 Drvrs: SAP Driver PT: token-dest-attr("displayName",class-name="Organizational Unit",arg-dn(token-global-variable("OrganizationsDN")+"\"+token-op-attr("gfCodeSociete")))
01:00:01 9C550BA0 Drvrs: SAP Driver PT: arg-dn(token-global-variable("OrganizationsDN")+"\"+token-op-attr("gfCodeSociete"))
01:00:00 9C550BA0 Drvrs: SAP Driver PT: token-global-variable("OrganizationsDN")
14:06:45 9C550BA0 Drvrs: SAP Driver PT: Token Value: "Interns-Partners\Organizations".
05:33:06 9C550BA0 Drvrs: SAP Driver PT: token-text("\")
01:00:00 9C550BA0 Drvrs: SAP Driver PT: token-op-attr("gfCodeSociete")
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Token Value: "50065868".
04:11:20 9C550BA0 Drvrs: SAP Driver PT: Arg Value: "Interns-Partners\Organizations\50065868".
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Query from policy
---
04:10:31 9C550BA0 Drvrs: SAP Driver PT: Pumping XDS to eDirectory.
13:37:12 9C550BA0 Drvrs: SAP Driver PT: Performing operation query for Interns-Partners\Organizations\50065868.
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Query from policy result
---
*01:00:00 9C550BA0 Drvrs: SAP Driver PT: Token Value: "".
05:26:27 9C550BA0 Drvrs: SAP Driver PT: Arg Value: "".*
23:59:49 9C550BA0 Drvrs: SAP Driver PT: Action: do-if().
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Evaluating conditions.
01:00:00 9C550BA0 Drvrs: SAP Driver PT: (if-local-variable 'currentOU' not-equal "") = TRUE.
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Performing if actions.
01:06:09 9C550BA0 Drvrs: SAP Driver PT: Action: do-if().
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Evaluating conditions.
*10:07:33 9C550BA0 Drvrs: SAP Driver PT: (if-op-attr 'gfLibelleSociete' not-equal "$currentLibelle$") = TRUE.*
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Performing if actions.
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Action: do-trace-message("TEST : "+token-local-variable("currentLibelle")).
01:00:00 9C550BA0 Drvrs: SAP Driver PT: arg-string("TEST : "+token-local-variable("currentLibelle"))
01:00:00 9C550BA0 Drvrs: SAP Driver PT: token-text("TEST : ")
*01:00:00 9C550BA0 Drvrs: SAP Driver PT: token-local-variable("currentLibelle")
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Token Value: "".*
01:00:00 9C550BA0 Drvrs: SAP Driver PT: Arg Value: "TEST : ".
BFA3886E 9C550BA0 Drvrs: SAP Driver PT:TEST :
--------------------


As you can see, the operation attribute gfLibelleSociete is equal to ''
and local varriable currentLibelle too, but the test doesn't work so i
guess it doesn't change the name into the value of the variable but how
should i do to make it works?

Thanks for support,
SJ.


--
sjahan
------------------------------------------------------------------------
sjahan's Profile: http://forums.novell.com/member.php?userid=16002
View this thread: http://forums.novell.com/showthread.php?t=351426