It should be possible to use $simple{} in property placeholders, like:

> <cm:property-placeholder>
>               <cm:default-properties>
>                       <cm:property name="test.property" 
> value="$simple{__yourexpression_goes_here__}"/>

and then either:

<when>
  {{test.property}}
    do something
…
…

or
 
<when>
  <simple>{{test.property}}</simple>
…
...

Sorry, have not tried it & hope this helps, 
Thomas.

> " />

Am 07.02.2013 um 12:06 schrieb justinblandford <[email protected]>:

> Hi, 
> 
> I have a blueprint property such as :-
> 
> <cm:property-placeholder>
>               <cm:default-properties>
>                       <cm:property name="test.property" value="" />
> 
> and have a route like :-
> 
> <route id="test" >
>               <from uri="test.."/>
>               <choice>
>                       <when>
>                               <simple>{{test.property}} == ''</simple>
>                                 do something..
>                         otherwise do something else
> 
> 
> However when I run the route I get the error:-
> org.apache.camel.language.simple.types.SimpleIllegalSyntaxException:
> Unexpected token { at location 0
> 
> I've also tried ${test.property} but that doesn't work either.  Does anyone
> have any idea on how to use this blueprint property in the scenario above? 
> The test.property may potentially have a value as it can be overriden
> externally and I want some conditional processing based on that.  I'm using
> Camel 2.10.0.
> 
> Regards,
> 
> Justin 
> 
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-do-you-use-a-blueprint-property-to-control-a-Simple-expression-tp5727101.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to