spring-projects / spring-projects/spring-batch

SimpleJobBuilder does not accept List<Step>.

Open
#3,669 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage type: enhancement
Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Description

It would be convenient to overload SimpleJobBuilder#next(Step) with the new method: SimpleJobBuilder#next(List<Step>). This new overload will help increase readability for the Job creation.

For instance, code snipped described here will become:

@Bean
public Job job() {
    List<Step> steps = ...

    return jobs.get("job")
            .incrementer(new RunIdIncrementer())
            .start(startingStep())
            .next(steps)
            .build();
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading SimpleJobBuilder#next(Step) and the surrounding job-builder API to understand how steps are chained. Add the requested List overload and verify that the job creation example can use it while preserving existing next(Step) behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.