From d41bdbee62f3cfc0009e905f852114d4707779ae Mon Sep 17 00:00:00 2001 From: dsyer Date: Thu, 16 Apr 2009 11:20:11 +0000 Subject: [PATCH] RESOLVED - issue BATCH-1210: AbstractStep overwrites custom exit status for STOPPED steps Need a less severe default status for stopping with an exception --- .../java/org/springframework/batch/core/step/AbstractStep.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java index 603db6866..64b1a8033 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java @@ -184,7 +184,8 @@ public abstract class AbstractStep implements Step, InitializingBean, BeanNameAw stepExecution.setStatus(BatchStatus.STARTED); getJobRepository().update(stepExecution); - ExitStatus exitStatus = ExitStatus.FAILED; + // Start with a default value that will be trumped by anything + ExitStatus exitStatus = ExitStatus.EXECUTING; Exception commitException = null; StepSynchronizationManager.register(stepExecution);