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
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
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
#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