You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (Jira)" <ji...@apache.org> on 2020/09/23 16:08:00 UTC
[jira] [Commented] (CAMEL-15572) route template: placeholder unsing
the #property: syntax does not get resolved
[ https://issues.apache.org/jira/browse/CAMEL-15572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17200914#comment-17200914 ]
Luca Burgazzoli commented on CAMEL-15572:
-----------------------------------------
It turns out that the #property: is only supported by PropertyBindingSupport
> route template: placeholder unsing the #property: syntax does not get resolved
> ------------------------------------------------------------------------------
>
> Key: CAMEL-15572
> URL: https://issues.apache.org/jira/browse/CAMEL-15572
> Project: Camel
> Issue Type: Bug
> Components: camel-core-engine
> Affects Versions: 3.5.0
> Reporter: Luca Burgazzoli
> Priority: Minor
> Fix For: 3.6.0
>
>
> Assuming we have a route template defined as follow:
> {code:java}
> routeTemplate("echo-fail")
> .templateParameter("prefix")
> .from("direct:#property:routeId")
> .setBody().simple("{{prefix}}-${body}");
> {code}
> That we instantiate with something like:
> {code:java}
> TemplatedRouteBuilder.builder(context, "echo-fail")
> .parameter("prefix", "terst")
> .parameter("routeId", "myROuteId")
> .add();
> {code}
> The generated route does not have the #property:routeId resolved.
> Originally reported here: https://github.com/apache/camel-k-runtime/issues/500#issuecomment-697303190
--
This message was sent by Atlassian Jira
(v8.3.4#803005)