class FlowJobBuilder extends JobBuilderHelper<FlowJobBuilder> {

	private Flow flow;

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

	/**
	 * Start a job with this flow, but expect to transition from there to other flows or
	 * steps.
	 * @param flow the flow to start with
	 * @return a builder to enable fluent chaining
	 */
	public JobFlowBuilder start(Flow flow) {
		return new JobFlowBuilder(this, flow);
	}

	/**
	 * Start a job with this step, but expect to transition from there to other flows or
	 * steps.
	 * @param step the step to start with
	 * @return a builder to enable fluent chaining
	 */
	public JobFlowBuilder start(Step step) {
		return new JobFlowBuilder(this, step);
	}

	/**
	 * Start a job with this decider, but expect to transition from there to other flows
	 * or steps.
	 * @param decider the decider to start with
	 * @return a builder to enable fluent chaining
	 * @since 5.1
	 */
	public JobFlowBuilder start(JobExecutionDecider decider) {
		return new JobFlowBuilder(this, decider);
	}

	/**
	 * Provide a single flow to execute as the job.
	 * @param flow the flow to execute
	 * @return this for fluent chaining
	 */
	protected FlowJobBuilder flow(Flow flow) {
		this.flow = flow;
		return this;
	}

	/**
	 * Build a job that executes the flow provided, normally composed of other steps.
	 * @return a flow job
	 */
	public Job build() {<FILL_FUNCTION_BODY>}

}

		FlowJob job = new FlowJob();
		job.setName(getName());
		job.setFlow(flow);
		super.enhance(job);
		try {
			job.afterPropertiesSet();
		}
		catch (Exception e) {
			throw new StepBuilderException(e);
		}
		return job;
	
<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.FlowJobBuilder incrementer(org.springframework.batch.core.JobParametersIncrementer) ,public org.springframework.batch.core.job.builder.FlowJobBuilder listener(java.lang.Object) ,public org.springframework.batch.core.job.builder.FlowJobBuilder listener(org.springframework.batch.core.JobExecutionListener) ,public org.springframework.batch.core.job.builder.FlowJobBuilder meterRegistry(io.micrometer.core.instrument.MeterRegistry) ,public org.springframework.batch.core.job.builder.FlowJobBuilder observationConvention(org.springframework.batch.core.observability.BatchJobObservationConvention) ,public org.springframework.batch.core.job.builder.FlowJobBuilder observationRegistry(io.micrometer.observation.ObservationRegistry) ,public org.springframework.batch.core.job.builder.FlowJobBuilder preventRestart() ,public org.springframework.batch.core.job.builder.FlowJobBuilder repository(org.springframework.batch.core.repository.JobRepository) ,public org.springframework.batch.core.job.builder.FlowJobBuilder 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