Ok, just saw these:

http://grokbase.com/t/camel/users/1197q01xk7/unmarshal-csvdataformat-different-behavior-for-one-or-multiples-lines

https://issues.apache.org/jira/browse/CAMEL-4440

Fixed in 2.9.0... Unfortunately I can't upgrade right now. Is there any way
that I would be able to evaluate the result of the unmarshal().csv() to see
how many rows there are? I would like to do something like:

unmarshal().csv()
.choice(when csv_rowCount == 1)    // Need to know how to do this kind of
evaluation in 2.8.3?
.split(body().tokenize())
// will give me a string with the single row data, and I'll parse it here,
no prob
.otherwise
.split(body())       // Will give me the list type, which is fine

Thanks

--
View this message in context: 
http://camel.465427.n5.nabble.com/Bug-in-Splitter-Implementation-Camel-2-8-3-tp5713873p5713874.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to