Results 1 to 2 of 2

Thread: Is NoWorkFoundStepExecutionListener working?

  1. #1
    Join Date
    Jan 2009
    Location
    Cumberland, Maine
    Posts
    9

    Default Is NoWorkFoundStepExecutionListener working?

    Hi,

    In 2.0M4, I've added a NoWorkFoundStepExecutionListener to the configuration of a SimpleStepFactoryBean. My hope was to fail the step when the item count is zero in the callback. The JavaDoc appears to indicate this behavior for the listener: "Fails the step if no items have been processed ( item count is 0)."

    The listener throws the NoWorkFoundException, but it does not change the ExitStatus, and the step is recorded as completed rather than failed. Am I missing something?

    Thanks,

    David

  2. #2
    Join Date
    Feb 2008
    Posts
    488

    Default

    This is a bug and I have logged an issue: http://jira.springframework.org/browse/BATCH-1125.

    Thanks for the report.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •