class SimpleJobBuilder extends JobBuilderHelper<SimpleJobBuilder> {

	private final List<Step> steps = new ArrayList<>();

	private JobFlowBuilder builder;

	/**
	 * Create a new builder initialized with any properties in the parent. The parent is
	 * copied, so it can be re-used.
	 * @param parent the parent to use
	 */
	public SimpleJobBuilder(JobBuilderHelper<?> parent) {
		super(parent);
	}

	public Job build() {
		if (builder != null) {
			return builder.end().build();
		}
		SimpleJob job = new SimpleJob(getName());
		super.enhance(job);
		job.setSteps(steps);
		try {
			job.afterPropertiesSet();
		}
		catch (Exception e) {
			throw new JobBuilderException(e);
		}
		return job;
	}

	/**
	 * Start the job with this step.
	 * @param step a step to start with
	 * @return this for fluent chaining
	 */
	public SimpleJobBuilder start(Step step) {
		if (steps.isEmpty()) {
			steps.add(step);
		}
		else {
			steps.set(0, step);
		}
		return this;
	}

	/**
	 * Branch into a flow conditional on the outcome of the current step.
	 * @param pattern a pattern for the exit status of the current step
	 * @return a builder for fluent chaining
	 */
	public FlowBuilder.TransitionBuilder<FlowJobBuilder> on(String pattern) {<FILL_FUNCTION_BODY>}

	/**
	 * Start with this decider. Returns a flow builder and when the flow is ended a job
	 * builder will be returned to continue the job configuration if needed.
	 * @param decider a decider to execute first
	 * @return builder for fluent chaining
	 */
	public JobFlowBuilder start(JobExecutionDecider decider) {
		if (builder == null) {
			builder = new JobFlowBuilder(new FlowJobBuilder(this), decider);
		}
		else {
			builder.start(decider);
		}
		if (!steps.isEmpty()) {
			steps.remove(0);
		}
		for (Step step : steps) {
			builder.next(step);
		}
		return builder;
	}

	/**
	 * Continue with this decider if the previous step was successful. Returns a flow
	 * builder and when the flow is ended a job builder will be returned to continue the
	 * job configuration if needed.
	 * @param decider a decider to execute next
	 * @return builder for fluent chaining
	 */
	public JobFlowBuilder next(JobExecutionDecider decider) {
		for (Step step : steps) {
			if (builder == null) {
				builder = new JobFlowBuilder(new FlowJobBuilder(this), step);
			}
			else {
				builder.next(step);
			}
		}
		if (builder == null) {
			builder = new JobFlowBuilder(new FlowJobBuilder(this), decider);
		}
		else {
			builder.next(decider);
		}
		return builder;
	}

	/**
	 * Continue or end a job with this step if the previous step was successful.
	 * @param step a step to execute next
	 * @return this for fluent chaining
	 */
	public SimpleJobBuilder next(Step step) {
		steps.add(step);
		return this;
	}

	/**
	 * @param executor instance of {@link TaskExecutor} to be used.
	 * @return builder for fluent chaining
	 */
	public JobFlowBuilder.SplitBuilder<FlowJobBuilder> split(TaskExecutor executor) {
		for (Step step : steps) {
			if (builder == null) {
				builder = new JobFlowBuilder(new FlowJobBuilder(this), step);
			}
			else {
				builder.next(step);
			}
		}
		if (builder == null) {
			builder = new JobFlowBuilder(new FlowJobBuilder(this));
		}
		return builder.split(executor);
	}

}

		Assert.state(steps.size() > 0, "You have to start a job with a step");
		for (Step step : steps) {
			if (builder == null) {
				builder = new JobFlowBuilder(new FlowJobBuilder(this), step);
			}
			else {
				builder.next(step);
			}
		}
		return builder.on(pattern);
	
<methods>public void <init>(java.lang.String) ,public void <init>(java.lang.String, org.springframework.batch.core.repository.JobRepository) ,public org.springframework.batch.core.job.builder.SimpleJobBuilder incrementer(org.springframework.batch.core.JobParametersIncrementer) ,public org.springframework.batch.core.job.builder.SimpleJobBuilder listener(java.lang.Object) ,public org.springframework.batch.core.job.builder.SimpleJobBuilder listener(org.springframework.batch.core.JobExecutionListener) ,public org.springframework.batch.core.job.builder.SimpleJobBuilder meterRegistry(io.micrometer.core.instrument.MeterRegistry) ,public org.springframework.batch.core.job.builder.SimpleJobBuilder observationConvention(org.springframework.batch.core.observability.BatchJobObservationConvention) ,public org.springframework.batch.core.job.builder.SimpleJobBuilder observationRegistry(io.micrometer.observation.ObservationRegistry) ,public org.springframework.batch.core.job.builder.SimpleJobBuilder preventRestart() ,public org.springframework.batch.core.job.builder.SimpleJobBuilder repository(org.springframework.batch.core.repository.JobRepository) ,public org.springframework.batch.core.job.builder.SimpleJobBuilder validator(org.springframework.batch.core.JobParametersValidator) <variables>protected final org.apache.commons.logging.Log logger,private final non-sealed org.springframework.batch.core.job.builder.JobBuilderHelper.CommonJobProperties properties