camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: using filter inside when?
Date Tue, 08 Oct 2013 23:09:19 GMT
Why can't you just concatenate? You define the expression in a string...
and if CamelConstant.IsCredit is a string just concatenate it. Obviously,
this would have to truly be a constant (doesn't change) otherwise it won't
be updated.

.filter(simple("${body[" + Camleconstant.IsCredit +"]} == 'true'"))


On Tue, Oct 8, 2013 at 2:01 PM, prabumca06@gmail.com
<prabumca06@gmail.com>wrote:

> I am using camel 2.8 which language fit for my case...pls give some sample
> for that.i only.used simple dont know grovvy..etc
> On Oct 8, 2013 10:03 PM, "Claus Ibsen-2 [via Camel]" <
> ml-node+s465427n5741147h59@n5.nabble.com> wrote:
>
> > The simple language uses a string to lookup in a map, you cannot
> > reference a java class field etc. I suggest to read the docs some
> > more.
> >
> > Camel supports many other languages, so you can just use another and
> > more powerful language such as groovy, mvel, ognl, javascript etc that
> > can compile the script into byte code or whatnot.
> >
> > Or write a java bean with a method that does the check and use that.
> >
> >
> >
> >
> >
> > On Tue, Oct 8, 2013 at 5:24 PM, [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5741147&i=0>
> > <[hidden email] <http://user/SendEmail.jtp?type=node&node=5741147&i=1>>
> > wrote:
> >
> > > Please kindly help...
> > >
> > > *Regards*
> > > Prabu.N
> > >
> > >
> > >
> > > On Tue, Oct 8, 2013 at 7:38 PM, Prabu <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5741147&i=2>>
> > wrote:
> > >
> > >> Camel  2.8
> > >>
> > >> *Regards*
> > >> Prabu.N
> > >>
> > >>
> > >> On Tue, Oct 8, 2013 at 7:36 PM, Claus Ibsen-2 [via Camel] <
> > >> [hidden email] <http://user/SendEmail.jtp?type=node&node=5741147&i=3
> >>
> > wrote:
> > >>
> > >>> What Camel version do you use?
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Claus Ibsen
> > >>> -----------------
> > >>> Red Hat, Inc.
> > >>> Email: [hidden email]<
> > http://user/SendEmail.jtp?type=node&node=5741137&i=0>
> > >>> Twitter: davsclaus
> > >>> Blog: http://davsclaus.com
> > >>> Author of Camel in Action: http://www.manning.com/ibsen
> > >>>
> > >>>
> > >>> ------------------------------
> > >>>  If you reply to this email, your message will be added to the
> > >>> discussion below:
> > >>>
> > >>>
> > >>> .
> > >>> 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
> >
> >
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> Thanks & Regards
> > >>  Prabu.N
> > >>
> > >
> > >
> > >
> > > --
> > > Thanks & Regards
> > >  Prabu.N
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> >
> http://camel.465427.n5.nabble.com/using-filter-inside-when-tp5652300p5741143.html
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > Red Hat, Inc.
> > Email: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5741147&i=4>
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://camel.465427.n5.nabble.com/using-filter-inside-when-tp5652300p5741147.html
> >  To unsubscribe from using filter inside when?, click here<
> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5652300&code=cHJhYnVtY2EwNkBnbWFpbC5jb218NTY1MjMwMHw4OTY0MTU3ODg=
> >
> > .
> > 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/using-filter-inside-when-tp5652300p5741164.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message