spring-projects / spring-projects/spring-batch
SimpleJobBuilder does not accept List<Step>.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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