ok thanks, I tried a different approach it worked, using body null check.
But I have a problem to get the number of lines processed for each file ,
since
the BATCHSIZE returns only the no of files processed .
I tried the below approach to get the splitsize but I cant get it outside
the split tag, I tried setting in headers but still cant get it outside
<choice>
<when>
<simple>${body} != null</simple>
<split streaming="true">
<tokenize token="\n"></tokenize>
<unmarshal>
<csv/>
</unmarshal>
<log message="The message contains
${body} "/>
</split>
<to
uri="bean:monitorbean?method=updateSequence(${header.sourcename},${header.CamelFileName})"/>
</when>
<otherwise>
<process ref="stopProcessor"/>
</otherwise>
</choice>
I checked online I saw a post (
http://git.net/r/users-camel-apache/2015-08/msg00220.html) using
custom aggregation strategy , not sure why do i need to do that just to get
a count.
Is there any simple way I can do it. ?
--
View this message in context:
http://camel.465427.n5.nabble.com/Route-shudtdown-using-Route-Policy-not-working-tp5777220p5777268.html
Sent from the Camel - Users mailing list archive at Nabble.com.