Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15572

route template: placeholder unsing the #property: syntax does not get resolved

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 3.5.0
    • 3.6.0
    • camel-core-engine
    • None
    • Unknown

    Description

      Assuming we have a route template defined as follow:

      routeTemplate("echo-fail")
          .templateParameter("prefix")
          .from("direct:#property:routeId")
          .setBody().simple("{{prefix}}-${body}");
      

      That we instantiate with something like:

      TemplatedRouteBuilder.builder(context, "echo-fail")
          .parameter("prefix", "terst")
          .parameter("routeId", "myROuteId")
          .add();
      

      The generated route does not have the #property:routeId resolved.

      Originally reported here: https://github.com/apache/camel-k-runtime/issues/500#issuecomment-697303190

      Attachments

        Activity

          People

            Unassigned Unassigned
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: