-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
for: backport-to-5.0.xIssues that will be back-ported to the 5.0.x lineIssues that will be back-ported to the 5.0.x linefor: backport-to-5.1.xIssues that will be back-ported to the 5.1.x lineIssues that will be back-ported to the 5.1.x linein: documentationstatus: first-timers-onlyIssues that we would like first-timers only to work onIssues that we would like first-timers only to work ontype: bug
Milestone
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;
}
}
}
Metadata
Metadata
Assignees
Labels
for: backport-to-5.0.xIssues that will be back-ported to the 5.0.x lineIssues that will be back-ported to the 5.0.x linefor: backport-to-5.1.xIssues that will be back-ported to the 5.1.x lineIssues that will be back-ported to the 5.1.x linein: documentationstatus: first-timers-onlyIssues that we would like first-timers only to work onIssues that we would like first-timers only to work ontype: bug