Description
Currently, the Choice EIP has a somewhat confusing syntax. Example of a question on StackOverflow:
https://stackoverflow.com/questions/32382322/camel-end-vs-endchoice-not-the-usual-query
So basically:
- .endChoice() --> to close a "when" predicate
- .end() --> to close the entire "choice" block
Though it's a bit drastic to change the syntax, but maybe a major version like 4.0 is suitable. For example
- .endWhen() --> to close a "when" predicate
- .endChoice() --> to close the entire "choice" block
A little less drastic would be to change only the when.