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

Claus Ibsen resolved CAMEL-6593.
--------------------------------

    Resolution: Fixed

We now dump the predicate in the model though its just a toString 
representation of the predicate that the ValuerBuilder has built. But at least 
you can see some information now.
                
> 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

Reply via email to