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 13:35:00 UTC

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

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

Claus Ibsen resolved CAMEL-17552.
---------------------------------
    Resolution: Fixed

> 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
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.15.0
>
>
> 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)