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

Route model using body expression should be representable in the xml model

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.0
    • 2.14.1, 2.15.0
    • camel-core
    • None
    • Unknown

    Description

      When defining routes using Java DSL its common to use the body() as an expression with the splitter

      split().body()

      or

      split(body())

      But that is internally mapped using an anonymous expression type. This cannot be mapped nicely in XML

      <expressionDefinition>body</expressionDefinition>

      And if you want to do the same route in XML you would need to use simple language to refer to the body.

      <simple>body</simple>

      So we should do the same in Java DSL, so its identical.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: