You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ricardo Martinez (Jira)" <ji...@apache.org> on 2024/11/29 10:44:00 UTC
[jira] [Commented] (CAMEL-21490) camel-jbang - Transform route to yaml with choice
[ https://issues.apache.org/jira/browse/CAMEL-21490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17901901#comment-17901901 ]
Ricardo Martinez commented on CAMEL-21490:
------------------------------------------
Perhaps is not just the choice, but any EIP that uses elements and gets transformed into properties for the YAML DSL, like expressions, dataformats, doTry, etc...
> camel-jbang - Transform route to yaml with choice
> -------------------------------------------------
>
> Key: CAMEL-21490
> URL: https://issues.apache.org/jira/browse/CAMEL-21490
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.10.0
>
>
> This XML route converts to a bad yaml
> {code:java}
> <camel>
> <route id="route-b785" nodePrefixId="route-14b">
> <from id="from-959e" uri="direct:start"/>
> <choice id="choice-52fe">
> <when id="when-b126">
> <simple>${header.foo} == 'bar'</simple>
> <to id="to-65f9" uri="jms:queue"/>
> </when>
> <otherwise id="otherwise-c07f">
> <to id="to-dc76" uri="log:default"/>
> </otherwise>
> </choice>
> </route>
> </camel> {code}
>
>
> camel transform route abc.camel.xml
--
This message was sent by Atlassian Jira
(v8.20.10#820010)