Results 1 to 2 of 2

Thread: rerunning a tasklet on exception

  1. #1
    Join Date
    May 2008
    Posts
    4

    Default 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

  2. #2
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    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
  •