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

camel-core - Switch EIP that can optimize during bootstrap

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.15.0
    • camel-core, eip
    • None
    • Unknown

    Description

      The use-case is that you can use route templates where you want to setup a choice with a number of whens, and then the template is parameterized so only 1 of the when is used.

      Then you want to optimize so the choice is collapsed into always using the same when, in face the choice EIP is optimized and removed all together.

      To support this we could consider a new EIP name - switch that is for such use-cases. Then when the reifier builds the runtime processor, it evaluates the when (case) and selects the first that is true, and optimizes and removes the switch eip all together.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: