camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-8098) Route model using body expression should be representable in the xml model
Date Mon, 01 Dec 2014 10:01:12 GMT
Claus Ibsen created CAMEL-8098:
----------------------------------

             Summary: Route model using body expression should be representable in the xml
model
                 Key: CAMEL-8098
                 URL: https://issues.apache.org/jira/browse/CAMEL-8098
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.14.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.14.1, 2.15.0


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.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message