Hi,
<condition>#{seamComponentService1.test1() &&
seamComponentService1.test2('test')}
This synthax is not supported.
Just write add a method to your bean that wraps the 2 others.
Tiry
Bogdan Tatar a écrit :
> Hi,
>
> I try to use the action service from nuxeo,and I think that I
> encountered a problem when trying to define a condition for a rule of
> a filter.This is how the filter definition looks like:
>
> <filter id="test_filter">
> <rule grant="true">
> <condition>#{seamComponentService1.test()}</condition>
> <condition>#{seamComponentService1.test1() &&
> seamComponentService1.test2('test')}
> </condition>
> </rule>
> </filter>
>
> The problem appears when evaluating the second condition,which is
> translated like this
>
> SeamContext.get("seamComponentService1").test() &&
> seamComponentService1.test2('test')
>
> I don't know if the actions service from nuxeo is supposed to support
> condition syntax like the one from the second condition,but if yes
> please let me know how am I suppose to write the condition in order to
> have two method calls bounded with an && in the same condition.
>
> Thanks a lot !
> ------------------------------------------------------------------------
>
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm