On 11/16/2010 07:35 PM, Donald Whytock wrote:
I don't think choice() works that way. choice() is for selecting a
single destination based on conditions; it does indeed stop at the
first match. If you want multiple when() clauses to be hit, you'll
need to give each one its own choice() end() wrapper.
What do you mean by multiple filters occurring sequentially? Do you
mean filtering on one condition, then filtering further on another?
That should be filter().filter().to(), or even
filter().to().filter().to().
Choice() I was using as an example to illustrate the issues I was
running into. The multiple filters I was having problems getting them
to compile correctly in the pattern of
filter().simple().to().filter().simple().to(). Trying them now, to give
the exact error message - the day after - now works (what law of
programming is this?).
After diving into things a bit more yesterday I realised that the EIP
patterns probably already covered what I was trying to do and found my
solution in the routingSlip.