You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/01/26 09:53:00 UTC

[jira] [Created] (CAMEL-17552) camel-core - Switch EIP that can optimize during bootstrap

Claus Ibsen created CAMEL-17552:
-----------------------------------

             Summary: camel-core - Switch EIP that can optimize during bootstrap
                 Key: CAMEL-17552
                 URL: https://issues.apache.org/jira/browse/CAMEL-17552
             Project: Camel
          Issue Type: New Feature
          Components: camel-core, eip
            Reporter: Claus Ibsen
             Fix For: 3.x


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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)