Announcement Announcement Module
Collapse
No announcement yet.
Is NoWorkFoundStepExecutionListener working? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    This is a bug and I have logged an issue: http://jira.springframework.org/browse/BATCH-1125.

    Thanks for the report.

    Comment

    Working...
    X