Re: Functions in Camel

2024-01-09 Thread ski n
I believe that: - (Sub) routes are around 40% of the solution (Cause put logic in a separate route and call it from one or more other routes) - RouteTemplate are around 60% of the solution (Adding parameters and defaults that can be started multiple times) - Kameletes are around 80% of the

Re: Functions in Camel

2024-01-08 Thread ski n
I also seem to recall that routeTemplates haven't all functionality from Kamelets, and you can't call all routeTemplates exactly the same from the Kamelet component, but maybe this is not a limitation anymore. btw In my own runtime (Assimbly) I do load all Kamelets by default, so they are

Re: Functions in Camel

2024-01-08 Thread ski n
Yeah, calling a Kamelet has the advantage that the subroute is dynamically created. - Still need the to, not a separate EIP. - Beginners would not search for "Kamelet", but function would be more common - You still need a from statement within the Kamelet - Kamelet is not really part of the

Re: Functions in Camel

2024-01-08 Thread Andrea Cosentino
It really seems the Kamelets' mission Il lun 8 gen 2024, 15:59 Pasquale Congiusti ha scritto: > Hi Raymond, > Can't be a Kamelet considered for such a feature? I think it's one of its > purposes as well. > > Pasquale. > > On Mon, Jan 8, 2024 at 3:21 PM ski n wrote: > > > Question/Discussion: >

Re: Functions in Camel

2024-01-08 Thread Pasquale Congiusti
Hi Raymond, Can't be a Kamelet considered for such a feature? I think it's one of its purposes as well. Pasquale. On Mon, Jan 8, 2024 at 3:21 PM ski n wrote: > Question/Discussion: > > Do you think "functions" in the Camel DSL make sense? > > Explanation: > > Say you have to following route: >