2014-04-14 14:21 GMT+02:00 Deividas haspo <[email protected]>:

> I have trouble with javascript/groovy. I want to filter users from one
> group like this:
> in group1 should be users whose employeeNumber is null(not defined) or
> begins with letter AM (for example: AM11212211)
> in group2 should be users whose employeeNumber is only numbers (for
> example: 1234 or 123 or 12 or 1)
>
> I think this should be in <MainIdentifier>
>
> When i try I get this error:
>
> Apr 14 14:49:49 - ERROR - javax.script.ScriptException:
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
> failed:
> Script5.groovy: 3: unexpected token: ) @ line 3, column 36.
>                                 if (kategorijaStudentas == AM* ) {
>                                       ^
>
> Apr 14 14:49:50 - ERROR - javax.script.ScriptException:
> javax.script.ScriptException: groovy.lang.MissingMethodException: No
> signature of method:
> org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.var() is applicable for
> argument types: (java.lang.String) values: [1011]
>
>

If you want to use groovy, do groovy. "var" is not  groovy, see
http://groovy.codehaus.org/Tutorial+1+-+Getting+started

You can do javascript if you prefer, just use js: instead of gr:


Clément.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to