Apr 27th, 2008, 11:45 PM
How to bypass NoWorkFoundException
My job has 3 steps:
step-1 : update table_A records with some data
step-2 : generate output file_X from table_A based on criteria_1
step-3: generate output file_Y from table_A based on criteria_2
step-2; step-3 are using IbatisDrivingQueryItemReader as the reader.
The problem is, if step-2 returns no result then the reader will throw NoWorkFoundException and stop the whole job.process. In our domain, it's ok to skip step-2 and shld still proceed to step-3 and vice versa.
I dont want to seperate step-2; step-3 as a seperate job. Can I achive this? pls advice, thx a lot!
Last edited by catsfelix; Apr 28th, 2008 at 12:10 AM.