Closed
Description
In the reference documentation for controlling flow, the deprecated class StepExectuionListenerSupport is used in the Java code sample.
The doc can be found here. Specifically this code:
public class SkipCheckingListener extends StepExecutionListenerSupport {
public ExitStatus afterStep(StepExecution stepExecution) {
String exitCode = stepExecution.getExitStatus().getExitCode();
if (!exitCode.equals(ExitStatus.FAILED.getExitCode()) &&
stepExecution.getSkipCount() > 0) {
return new ExitStatus("COMPLETED WITH SKIPS");
}
else {
return null;
}
}
}
Activity
petrovskimario commentedon Feb 20, 2024
Hello @robertmcnees
I can take this one if it is still available.
Closes spring-projects#4538 Updating deprecated code that used StepEx…
petrovskimario commentedon Feb 28, 2024
@fmbenhassine @robertmcnees
I have submitted a pull request. Please review and if you have any suggestions let me know.
Thanks!
Update deprecated code that uses StepExecutionListenerSupport
6 remaining items