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 (JIRA)" <ji...@apache.org> on 2013/08/23 09:10:53 UTC

[jira] [Updated] (CAMEL-6593) Predicates from java dsl are not dumped to xml correctly

     [ https://issues.apache.org/jira/browse/CAMEL-6593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-6593:
-------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 2.12.0
                   2.11.2

This is expected as these builders cannot be represented in plain text, such as simple etc can do.

Though in the future we may be able to map these to a simple text expression we can use to dump eg

<simple>${header.test} != null</simple>


                
> Predicates from java dsl are not dumped to xml correctly
> --------------------------------------------------------
>
>                 Key: CAMEL-6593
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6593
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.11.1
>            Reporter: David Keen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.2, 2.12.0
>
>
> Predicates defined in the java dsl are not dumped to xml when using jmx.
> Eg, this java dsl route:
> {code}
> from("seda:a").choice().when(header("test").isNotNull()).log("not null").end().to("mock:a");
> {code}
> Will be dumped as this:
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <route group="com.example.TestRoute" id="route1" xmlns="http://camel.apache.org/schema/spring">
>     <from uri="seda:a"/>
>     <choice id="choice23">
>         <when id="when24">
>             <expressionDefinition/>
>             <log message="not null" id="log20"/>
>         </when>
>     </choice>
>     <to uri="mock:a" id="to17"/>
> </route>
> {code}
> The <expressionDefinition> element should contain the expression.
> This seems similar to CAMEL-4733.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira