Claus Ibsen created CAMEL-17555:
-----------------------------------

             Summary: camel-core - Flag to include/exclude routes in route 
templates
                 Key: CAMEL-17555
                 URL: https://issues.apache.org/jira/browse/CAMEL-17555
             Project: Camel
          Issue Type: New Feature
          Components: camel-core
            Reporter: Claus Ibsen
             Fix For: 3.16.0


To make route templates (aka kamelets) more flexible it can benefit that we 
allow to declare routes whether they should be included or excluded. This 
allows to parameterize these routes and therefore only include them if the 
template has a parameter included for this.

A bit like the new doSwitch which optimizes the when and only select the one 
that has a parameter from the template.

Now we need to come up with a good name for such an option, and should it be 
include/exclude, filter, or pattern or enabled/disabled or something else.


We can use simple language so you can say something like:

<route enabled="{{protocol}} == 'avro'">

</route>

<route enabled="{{protocol}} == 'json'">

</route>




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

Reply via email to