
Originally Posted by
danieln
Hello,
I implemented a chunk tasklet with a flat file reader.
I would like to implement a stop mechanism that will exit this chunk read-write step according to a business stop condition. I want the step to exit with a specific exit status according to the stop condition met (there are few).
However, I don't want the Job to terminate, I want to examine the exit status and invoke other steps accordingly.
So far, I did not find any way to accomplish that.
* setTerminateOnly() terminates the job
* throwing an exception terminates the job
* i cannot return null in the reader, since i user the provided flat file reader.
Only option i see is extend FlatFileItemReader and override read() to return null if should stop. Ugly...
any ideas?
Thanks
Daniel