On Mon, Aug 22, 2011 at 8:44 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> On Sat, Aug 20, 2011 at 11:39 PM, garrydias <garryd...@gmail.com> wrote:
>> In my code, setters n getterns are ommited... I already have getProperty
>> method =/
>>
>>
>> i havn´t tried this:
>> ${in.body.property.get[key]}
>>
>> can it works??
>>
>

Hi

I just added an unit test to verify that it works in Camel
http://svn.apache.org/viewvc?rev=1160262&view=rev

Mind that I also added support for using quotes in the map access.
This is a new from Camel 2.9 onwards.
In your Camel version you cannot use the quotes, so the simple
expression should be without the quotes around the key as shown:

     .when().simple("${body.property[foo]} == 'King Kong'")




> Yeah did you try that. What version of Camel are you using?
>
>>
>>
>> --
>> View this message in context: 
>> http://camel.465427.n5.nabble.com/Choice-always-return-true-in-first-test-tp4717029p4719256.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cib...@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to