ExitStatus « Batch « Spring Q&A





1. Tasklet ExitStatus.exitDescription not promoted?    forum.springsource.org

Tasklet ExitStatus.exitDescription not promoted? I'm having trouble getting failure description from a step into the final job ExitStatus that comes out of the SimpleJobLauncher. Is it possible? The first issue I ...

2. How to Test ExitStatus? By "==" or by equals()?    forum.springsource.org

Should we test ExitStatus by "==" or by equals()? If a job completes successfully, in afterJob() of JobExecutionListener, "jobExecution.getExitStatus().getExitCode().equals (ExitStatus.COMPLETED.getExitCode())" returns true. However, "jobExecution.getExitStatus() == ExitStatus.COMPLETED" returns false, even if the ...

3. Exception on closing ItemStream doesn't change StepExecution.ExitStatus    forum.springsource.org

Exception on closing ItemStream doesn't change StepExecution.ExitStatus Hi, I'm using ItemStream.close() to write out the summarised results of a Step, but it seems that if an Exception occurs it is logged ...

4. Incorrect implementation of equals()/hashCode() in ExitStatus?    forum.springsource.org

Hello, I was wondering whether there is a reason for the equals()/hashCode() methods in the ExitStatus class to be implemented the way they are now (release 2.1.6): Code: public boolean equals(Object ...

5. ExitStatus and how should a Tasklet cause a Job to fail?    forum.springsource.org

Newbie question: I want a Job to fail if certain criteria are not met within a Tasklet (being invoked via TaskletStep). I assumed that returning ExitStatus.FAILED from the execute method would ...

6. Get ExitStatus in a Junit test when Batch fails    forum.springsource.org

Get ExitStatus in a Junit test when Batch fails Hi, Got a simple problem : In some java piece of code, how can I get ExitStatus after a job having thrown ...

7. ExitStatus problem    forum.springsource.org

Hi, I am trying to execute a job via autosys - the commandline runner is wrapped in a bat file and called as: java -cp %CLASSPATH% org.springframework.batch.core.launch.support.Comm andLineJobRunner fileCopyJob-context.xml fileCopyJob Now ...

8. ExitStatus problem    forum.springsource.org

Hi, I am trying to execute a job via autosys - the commandline runner is wrapped in a bat file and called as: java -cp %CLASSPATH% org.springframework.batch.core.launch.support.Comm andLineJobRunner fileCopyJob-context.xml fileCopyJob Now ...

9. Custom ExitStatus bypass by ItemOrientedStep    forum.springsource.org

Custom ExitStatus bypass by ItemOrientedStep Hello ! I'm using Spring onErrorInStep method to exit a custom status : Code: /** * mthode excute en cas d'erreur dans le step (Reader ou ...





10. Tasklet API Change - ExitStatus to RepeatStatus    forum.springsource.org

I was just wondering why the change in the Tasklet interface from returning ExitStatus to RepeatStatus in the latest milestone build? I'm also unclear what the RepeatStatus actually represents. Could someone ...

11. Promote Step ExitStatus to Job    forum.springsource.org

Hello ! What is the preferred Way to promote a custom ExitStatus in a Step to the Job ? Right now i use a JobExecutionListener to go through the StepExecutions and ...

12. ItemWriter throws exception but ExitStatus still shows Completed    forum.springsource.org

Hi All, Problem: When ItemWrtier throws exception, i want to end the batch process with Exit code as FAILED, but spring batch exits with exit code as COMPLETED instead of FAILED. ...

13. [ExitStatus] works only with COMPLETED WITH SKIPS    forum.springsource.org

Code: ERROR org.springframework.batch.core.step.AbstractStep - Encountered an error saving batch meta data.This job is now in an unknown state and should not be restarted. ERROR org.springframework.batch.core.step.AbstractStep - Encountered an error executing the ...

14. Aggregating exitStatus of flow elements within Spilt    forum.springsource.org

Aggregating exitStatus of flow elements within Spilt Is there a way to do that? I would basically like to be able to define a reuse the processApple and processOranges flows (which ...