I want to put continue behaviour in route, my route is like following
from("file:D:\\?fileName=abc.csv&noop=true").split().unmarshal().csv()
.to("direct:insertToDb").end();
from("direct:insertToDb")
.to("direct:getDataId")
.to("direct:getDataParameters")
.to("direct:insertDataInDb");
from("direct:getDataId")
.to("sql:SELECT id FROM data WHERE name = :#name)
.choice()
.when(header("id").isGreaterThan(0) )
.setProperty("id", header("id"))
.otherwise()
.log("Error for")
.endChoice().end();
I want that if direct:getDataId dont find any record , my execution of route
for current record from CSV get skip and program process next request. it
would be equal to continue keyword.
How i can achieve this in Apache Camel route?
--
View this message in context:
http://camel.465427.n5.nabble.com/continue-behavior-in-camel-route-execution-tp5773004.html
Sent from the Camel - Users mailing list archive at Nabble.com.