camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PJ Walstroem <walst...@hotmail.com>
Subject Re: Split: how to leave message untouched?
Date Wed, 20 Jun 2012 12:55:13 GMT
if the filter() Predicate returns false, I assume the processing stops there?
I would like to go beyond the split() and carry on with the .convertBodyTo()
etc. in case the filter() returns false.

I tried something like
from(incomingQueue)
.choice()
.when().xpath(UPDATE_XPATH)
.split().tokenizeXML("update", "dbStream")
.end()
.convertBodyTo()
....

and even
from(incomingQueue)
.split(xpath(UPDATE_XPATH).tokenizeXML("update", "dbStream"))
.end()
.convertBodyTo()

but they are not correct. Don't know how to solve this



--
View this message in context: http://camel.465427.n5.nabble.com/Split-how-to-leave-message-untouched-tp5714734p5714743.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message