Update deprecated code that uses StepExecutionListenerSupport
Closes #4538
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
bfe7f38e4f
commit
0d06a7c46a
@@ -294,14 +294,14 @@ the condition of the execution having skipped records, as the following example
|
||||
|
||||
[source, java]
|
||||
----
|
||||
public class SkipCheckingListener extends StepExecutionListenerSupport {
|
||||
public class SkipCheckingListener implements StepExecutionListener {
|
||||
@Override
|
||||
public ExitStatus afterStep(StepExecution stepExecution) {
|
||||
String exitCode = stepExecution.getExitStatus().getExitCode();
|
||||
if (!exitCode.equals(ExitStatus.FAILED.getExitCode()) &&
|
||||
stepExecution.getSkipCount() > 0) {
|
||||
stepExecution.getSkipCount() > 0) {
|
||||
return new ExitStatus("COMPLETED WITH SKIPS");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user