Thanks alot Antoine.

Best Regards,


Ângelo Costa

On Mon, Mar 23, 2015 at 9:57 AM, Antoine DESSAIGNE [via Camel] <
[email protected]> wrote:

> Hi Angelo,
>
> First in groovy you don't need to explicitly call the 'get' method on
> Maps.
> Second, you'll have to use the exchange in order to access properties in
> groovy.
>
> Here what you need to do :
> <groovy>request.body[exchange.properties['currentCode']]</groovy>
>
> Have a nice day,
>
> Antoine.
>
> 2015-03-17 16:53 GMT+01:00 angelo.rlcosta <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5764632&i=0>>:
>
> > Hello again Antoine,
> >
> > The previous groovy expression worked well. Thanks.
> >
> > How can i pass camel property inside groovy context.
> >
> > For example if i define a property
> > <setProperty propertyName="currentCode">
> >                 <simple>100</simple>
> >             </setProperty>
> >
> > How can i use this property inside groovy something like
> > <setProperty propertyName="errorFound">
> >                 <groovy>request.body.get("100")</groovy>
> >             </setProperty>
> >
> > So instead of request.body.get("100") i want something like
> > request.body.get(${property.currentCode})
> >
> > Thanks in advance,
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.com/Possibility-of-jdbc-component-when-performing-a-select-to-return-a-map-tp5764228p5764287.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Possibility-of-jdbc-component-when-performing-a-select-to-return-a-map-tp5764228p5764632.html
>  To unsubscribe from Possibility of jdbc component when performing a
> select to return a map, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5764228&code=YW5nZWxvLnJsY29zdGFAZ21haWwuY29tfDU3NjQyMjh8OTY0MzQzODU=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Possibility-of-jdbc-component-when-performing-a-select-to-return-a-map-tp5764228p5764694.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to