camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Use Properties in a Predicate
Date Thu, 24 Jul 2014 13:46:59 GMT
Ah you are using groovy - you didnt tell. Or i didnt spot it.

groovy thinks ${ } is a gstring.

So use $simple{ xxx } to use the camel simple language syntax

On Thu, Jul 24, 2014 at 3:33 PM, arnoldmad <arnold@maderthaner.me> wrote:
> Thats the same thing I already tried with the following problem afterwards:
> route:
>
> .when(simple("${properties:pix.iti9.url} != 'DISABLED'"))
>
>
> Caused by: groovy.lang.MissingPropertyException: No such property: pix for
> class: com.test.ClientRoute
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Use-Properties-in-a-Predicate-tp5754392p5754394.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message