You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Raymond (Jira)" <ji...@apache.org> on 2022/10/10 18:56:00 UTC

[jira] [Updated] (CAMEL-18599) Clearer syntax for the Choice EIP

     [ https://issues.apache.org/jira/browse/CAMEL-18599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond updated CAMEL-18599:
----------------------------
    Summary: Clearer syntax for the Choice EIP  (was: Clear syntax for the Choice EIP)

> Clearer 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
>            Priority: Major
>             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)