[ 
https://issues.apache.org/jira/browse/CAMEL-23015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18058900#comment-18058900
 ] 

Claus Ibsen commented on CAMEL-23015:
-------------------------------------

Saga EIP is unfortunately a bit complex and also the options is not dumped 
correctly

> camel-jbang - YAML DSL dump of route with Saga EIP does not dump 
> completion/compensation correctly
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-23015
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23015
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> For example a route in XML
>     <route>
>         <from uri="direct:newOrder"/>
>         <saga propagation="MANDATORY">
>             <compensation uri="direct:cancelOrder"/>
>             <transform>
>                 <header>Long-Running-Action</header>
>             </transform>
>             <bean ref="orderManagerService" method="newOrder"/>
>             <log message="Order ${body} created"/>
>         </saga>
>     </route>
>  
> Is dumped as
> {code:java}
> - route:
>     from:
>       uri: direct:newOrder
>       steps:
>         - saga:
>             propagation: MANDATORY
>             uri: direct:cancelOrder
>             steps:
>               - transform:
>                   expression:
>                     header:
>                       expression: Long-Running-Action
>               - bean:
>                   ref: orderManagerService
>                   method: newOrder
>               - log:
>                   message: "Order ${body} created" {code}
>  
> The compensation is just written as uri, but it should be compensation: uri: 
> xxx



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to