Hi;
I know nothing about Syncope (besides skimming the nice doc) but I suspect
you can not add your own JEXL namespace easily. For JEXL to be able to call
a method, it 'only' needs to be a public method of an accessible public
class. In your case, derived attributes being expression on 'plain schema
type', I suspect the incoming_attribute is not an instance of your class.
One possibility is to instantiate your own 'functor' class with JEXLs 'new'
operator; assuming your public class fqcn is 'my.syncopex.functor' with a
public constructor accepting a string as argument (your incoming attribute)
and a 'derive' method (that will compute the derived value), you may be able
to use an expression like:
{code}
new('my.syncopex.functor', incoming_attribute).derive()
{code}
Let us know how it goes.
Cheers



--
Sent from: http://apache-commons.680414.n4.nabble.com/Commons-User-f735979.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to