You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Created) (JIRA)" <ji...@apache.org> on 2011/12/02 10:55:49 UTC
[jira] [Created] (CAMEL-4733) Dumping route to XML created by Java
DSL using an expression with Transform EIP may not output the actual used
expression
Dumping route to XML created by Java DSL using an expression with Transform EIP may not output the actual used expression
-------------------------------------------------------------------------------------------------------------------------
Key: CAMEL-4733
URL: https://issues.apache.org/jira/browse/CAMEL-4733
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.8.2
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.8.4, 2.9.0
Given this route
{code}
from("direct:start").routeId("myRoute")
.transform(constant("Hello World"))
.to("mock:result");
{code}
Will be dumped as XML as:
{code:xml}
<route group="org.apache.camel.util.DumpModelAsXmlTransformRouteTest$1" id="myRoute" xmlns="http://camel.apache.org/schema/spring">
<from uri="direct:start"/>
<transform id="transform1">
<expressionDefinition/>
</transform>
<to uri="mock:result" id="to1"/>
</route>
{code}
The <transform> is wrong as it should contain the expression definition properly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-4733) Dumping route to XML created by Java
DSL using an expression with Transform EIP may not output the actual used
expression
Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-4733.
--------------------------------
Resolution: Fixed
> Dumping route to XML created by Java DSL using an expression with Transform EIP may not output the actual used expression
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-4733
> URL: https://issues.apache.org/jira/browse/CAMEL-4733
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.2
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.8.4, 2.9.0
>
>
> Given this route
> {code}
> from("direct:start").routeId("myRoute")
> .transform(constant("Hello World"))
> .to("mock:result");
> {code}
> Will be dumped as XML as:
> {code:xml}
> <route group="org.apache.camel.util.DumpModelAsXmlTransformRouteTest$1" id="myRoute" xmlns="http://camel.apache.org/schema/spring">
> <from uri="direct:start"/>
> <transform id="transform1">
> <expressionDefinition/>
> </transform>
> <to uri="mock:result" id="to1"/>
> </route>
> {code}
> The <transform> is wrong as it should contain the expression definition properly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4733) Dumping route to XML created by
Java DSL using an expression with Transform EIP may not output the actual
used expression
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161638#comment-13161638 ]
Claus Ibsen commented on CAMEL-4733:
------------------------------------
Frist part fixed when using expression clause builder such as:
{code}
from("direct:start").routeId("myRoute")
.transform().constant("Hello World")
.to("mock:result");
{code}
> Dumping route to XML created by Java DSL using an expression with Transform EIP may not output the actual used expression
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-4733
> URL: https://issues.apache.org/jira/browse/CAMEL-4733
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.2
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.8.4, 2.9.0
>
>
> Given this route
> {code}
> from("direct:start").routeId("myRoute")
> .transform(constant("Hello World"))
> .to("mock:result");
> {code}
> Will be dumped as XML as:
> {code:xml}
> <route group="org.apache.camel.util.DumpModelAsXmlTransformRouteTest$1" id="myRoute" xmlns="http://camel.apache.org/schema/spring">
> <from uri="direct:start"/>
> <transform id="transform1">
> <expressionDefinition/>
> </transform>
> <to uri="mock:result" id="to1"/>
> </route>
> {code}
> The <transform> is wrong as it should contain the expression definition properly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4733) Dumping route to XML created by
Java DSL using an expression with Transform EIP may not output the actual
used expression
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161518#comment-13161518 ]
Claus Ibsen commented on CAMEL-4733:
------------------------------------
Another example
{code}
from("direct:start").routeId("myRoute")
.filter(simple("${body} > 10"))
.to("mock:result");
{code}
> Dumping route to XML created by Java DSL using an expression with Transform EIP may not output the actual used expression
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-4733
> URL: https://issues.apache.org/jira/browse/CAMEL-4733
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.2
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.8.4, 2.9.0
>
>
> Given this route
> {code}
> from("direct:start").routeId("myRoute")
> .transform(constant("Hello World"))
> .to("mock:result");
> {code}
> Will be dumped as XML as:
> {code:xml}
> <route group="org.apache.camel.util.DumpModelAsXmlTransformRouteTest$1" id="myRoute" xmlns="http://camel.apache.org/schema/spring">
> <from uri="direct:start"/>
> <transform id="transform1">
> <expressionDefinition/>
> </transform>
> <to uri="mock:result" id="to1"/>
> </route>
> {code}
> The <transform> is wrong as it should contain the expression definition properly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira