Announcement Announcement Module
Collapse
No announcement yet.
rerunning a tasklet on exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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?

    Comment

    Working...
    X