Hi Could you please use the @user mailing list for questions on help and how to use Camel. http://camel.apache.org/mailing-lists.html
On Tue, Mar 12, 2013 at 3:39 PM, irshad <[email protected]> wrote: > Hello, > > I am pretty new in using camel and trying to incorporate it in our > architecture, so everyone here is pretty new to Camel. > > Question: After the choice() method we are using a boolean expression in > when() where it is complaining to use predicate. So could you give an idea > how to use predicate for the same. > > from("direct:saveFile").convertBodyTo(List.class).split(body()) > .choice() > > .when("R".equalsIgnoreCase(simple("${body.filing.frstatus}").toString())) > .to("sql:insertQuery") > > .when("R".equalsIgnoreCase(simple("${body.filing.frstatus}").toString())) > .to("sql:updateQuery") > .otherwise() > .to("errorHandler") > .end(); > > > thanks > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-use-predicate-in-when-for-Body-in-choice-tp5728999.html > Sent from the Camel Development mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
