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
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
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
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")