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, prabumc...@gmail.com <prabumc...@gmail.com> wrote: > Please kindly help... > > *Regards* > Prabu.N > > > > On Tue, Oct 8, 2013 at 7:38 PM, Prabu <prabumc...@gmail.com> wrote: > >> Camel 2.8 >> >> *Regards* >> Prabu.N >> >> >> On Tue, Oct 8, 2013 at 7:36 PM, Claus Ibsen-2 [via Camel] < >> ml-node+s465427n5741137...@n5.nabble.com> 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: >>> >>> http://camel.465427.n5.nabble.com/using-filter-inside-when-tp5652300p5741137.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> >>> >> >> >> >> -- >> 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: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen