Le 05/11/2018 à 07:32, Soisik Froger a écrit :
> On 02/11/2018 12:19, Martin Röh wrote:
>> <update><![CDATA[rjs:
>> var update = false;
>> if (
>> srcBean.getDatasetFirstValueById("uid") == "mar" ) {
>> update = true;
>> }
>> update;
>> ]]></update>
> Hi Martin,
>
> In java, using "==" on a string will compare the memory address of the object.
>
> To compare chars, your have to use equals method, eg
> srcBean.getDatasetFirstValueById("uid").equals("mar")
Check also that you really want an update condition and not a create
condition. The update condition will only be tested if LSC matches an
entry in source and destination.
--
Clément Oudot | Identity Solutions Manager
[email protected]
Worteks | https://www.worteks.com
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users