Update deprecated code that uses StepExecutionListenerSupport

Closes #4538
This commit is contained in:
Mario Petrovski
2024-02-28 13:58:38 +01:00
committed by Mahmoud Ben Hassine
parent 4b8e504972
commit 376d84888f

View File

@@ -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;
}
}