Raymond created CAMEL-18599:
-------------------------------
Summary: Clear syntax for the Choice EIP
Key: CAMEL-18599
URL: https://issues.apache.org/jira/browse/CAMEL-18599
Project: Camel
Issue Type: Wish
Components: came-core
Reporter: Raymond
Fix For: 4.0
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 to 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)