[
https://issues.apache.org/jira/browse/CAMEL-9323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thiago Martins updated CAMEL-9323:
----------------------------------
Description:
Writting the route bellow will not work once splitter creates new exchanges and
sets only the body
.split(xpath("//items/item"), groupedExchanges())
.setProperty("valid", constant(true))
.end()
// In some future steps...
.split(body())
.choice()
.when(exchangeProperty("valid"))
.log("Works as expected") //Wanted result
.otherwise()
.log(ERROR, "Ooops") //Actual result
Actual Splitter code could verify if body is a GroupedExchangeList then it
should propagate the entire exchange instead of body only
was:
Writting the route bellow will not work once splitter creates new exchanges and
sets only the body
code example -------------------------------------------
.split(xpath("//items/item"), groupedExchanges())
.setProperty("valid", constant(true))
.end()
// In some future steps...
.split(body())
.choice()
.when(exchangeProperty("valid"))
.log("Works as expected") //Wanted result
.otherwise()
.log(ERROR, "Ooops") //Actual result
end code example---------------------------------------
Actual Splitter code could verify if body is a GroupedExchangeList then it
should propagate the entire exchange instead of body only
> Splitting list of exchanges
> ---------------------------
>
> Key: CAMEL-9323
> URL: https://issues.apache.org/jira/browse/CAMEL-9323
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Thiago Martins
> Priority: Minor
>
> Writting the route bellow will not work once splitter creates new exchanges
> and sets only the body
> .split(xpath("//items/item"), groupedExchanges())
> .setProperty("valid", constant(true))
> .end()
> // In some future steps...
> .split(body())
> .choice()
> .when(exchangeProperty("valid"))
> .log("Works as expected") //Wanted result
> .otherwise()
> .log(ERROR, "Ooops") //Actual result
> Actual Splitter code could verify if body is a GroupedExchangeList then it
> should propagate the entire exchange instead of body only
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)