Claus Ibsen created CAMEL-23015:
-----------------------------------
Summary: 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
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)