Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18599

Clearer syntax for the Choice EIP

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • Future
    • came-core
    • None
    • Unknown

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            skin27 Raymond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: