camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From justinblandford <justinblandf...@googlemail.com>
Subject How do you use a blueprint property to control a Simple expression
Date Thu, 07 Feb 2013 10:37:56 GMT
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-tp5727096.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message