Feb 1st, 2010, 04:30 PM
rerunning a tasklet on exception
I'm trying to write a open office conversion step as part of my spring batch process. I wanted to add a system command tasklet to start and stop the service (soffice -headless ..&) but I find the service can crash in the middle of converting processor. Is there a way to rerun the tasklet from on a onErrorStep or before the next chunk?
Feb 2nd, 2010, 03:13 AM
You might be able to do that with a Batch flow definition, looking for the specific error condition in a decision and then looping back to the step with the tasklet. Or you could put the tasklet in an Item*Listener and use a retry limit > 0 for the chunked step?