Mar 6th, 2009, 04:40 PM
Is NoWorkFoundStepExecutionListener working?
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?
Mar 6th, 2009, 05:26 PM
This is a bug and I have logged an issue: http://jira.springframework.org/browse/BATCH-1125.
Thanks for the report.