-
Feb 1st, 2010, 04:30 PM
#1
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?
Thanks,
Martin
-
Feb 2nd, 2010, 03:13 AM
#2
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules