Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
Attachments
Issue Links
- relates to
-
CAMEL-17553 simple language - Evaluate expression with null value guard against NPE
- Resolved