committed by
Mahmoud Ben Hassine
parent
89e0a0cd86
commit
29d574734f
@@ -20,9 +20,9 @@ value of 10 as it would be defined in Java:
|
||||
[source, java]
|
||||
----
|
||||
@Bean
|
||||
public Job sampleJob(JobRepository jobRepository) {
|
||||
public Job sampleJob(JobRepository jobRepository, Step step1) {
|
||||
return new JobBuilder("sampleJob", jobRepository)
|
||||
.start(step1())
|
||||
.start(step1)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
@@ -121,11 +121,11 @@ restarted:
|
||||
[source, java]
|
||||
----
|
||||
@Bean
|
||||
public Job footballJob(JobRepository jobRepository) {
|
||||
public Job footballJob(JobRepository jobRepository, Step playerLoad, Step gameLoad, Step playerSummarization) {
|
||||
return new JobBuilder("footballJob", jobRepository)
|
||||
.start(playerLoad())
|
||||
.next(gameLoad())
|
||||
.next(playerSummarization())
|
||||
.start(playerLoad)
|
||||
.next(gameLoad)
|
||||
.next(playerSummarization)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user