Skip to content

Reference Documentation Uses Deprecated Class StepExecutionListenerSupport #4538

Closed
@robertmcnees

Description

@robertmcnees

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions