Re: RouteBuilder Predicate Syntax

2011-07-18 Thread enalposi
Yes, I suppose that's another option, or wrap things with a DelegateProcessor. Our route builder (on top of the Camel RouteBuilder) is part of a larger framework and makes all sorts of dynamic and configured decisions how to assemble various scenarios. Cheers! -- View this message in context: h

Re: RouteBuilder Predicate Syntax

2011-07-18 Thread boday
choice and predicate are used to do conditional routing based on attributes of an exchange/message, not static attibutes resolved on route startup... I'm not following what you are trying to do...why would a Processor be NULL exactly? If a code change is required to add/remove/implement a process

Re: RouteBuilder Predicate Syntax

2011-07-18 Thread enalposi
Ok, so I initially used #1 but it failed to build the route. The issue seems to be different than what I originally assumed... Basically I am building a route and want to insert a processor based upon a condition (which is: does the processor exist?). Initially I did this with an if-then-else stat

Re: RouteBuilder Predicate Syntax

2011-07-15 Thread boday
#1 is correct, you should explicitly call end() after each choice() block... enalposi wrote: > > [Camel 2.7.2] > > Sorry, but I am not quite clear about the syntax of inserting Predicates, > esp to dynamically wire in processors... I am also not sure about the > significance of end() and the ne