Re: Types in routeTemplates

2022-09-07 Thread Claus Ibsen
Hi Yes, it's intended to have string types that accept property placeholders. But sometimes you need to add them manually. A long term goal is to generate all DSLs from a canonical DSL meta-model, then we can ensure a consistent way for all programming languages, eg Java, Kotlin, Groovy etc. But

Re: Types in routeTemplates

2022-09-07 Thread ski n
That's nice. I already found out you can write for example the throttle as: .throttle(1).timePeriodMillis(1000) Thus with two longs as input, but it's also possible: .throttle(constant("{{maximumrequestcount}}")).timePeriodMillis("{{timeperiod}}") In the second case the first parameter is an e

Re: Types in routeTemplates

2022-09-06 Thread Claus Ibsen
Ah yeah we need a timeout that takes a string value .pollEnrich("myUrl).timeout("xxx") I just added that to 3.19 and 3.18.x On Tue, Sep 6, 2022 at 4:46 PM ski n wrote: > I like to create a route template with a parameter of a specific Java type. > > For example the following routetemplat

Types in routeTemplates

2022-09-06 Thread ski n
I like to create a route template with a parameter of a specific Java type. For example the following routetemplate: routeTemplate("mypollenrich") .templateParameter("timeout","5000") .from("direct:in") .pollEnrich("myuri", "{{timeout}}","CurrentEnrichStrategy")