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 13:40:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Luca Burgazzoli updated CAMEL-15572:
------------------------------------
    Description: 
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


  was:
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



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