I am building a spring-batch solution that contains the following process:
step 1 : split a list into multiple lists step 2 : process each sub-list step 3 : merge sub-lists
The generated sub-lists can be processed in parallel, and according to the spring-batch documentation this is supported. Sadly I can only find spring-batch example jobs that start with parallel steps, not examples that start out sequentially.
The following job will not compile. Spring gives me an error: 'cannot resolve step2'
<batch:job id="webServiceJob2">
<batch:step id="step1" next="step2"></batch:step>
<batch:split id="step2" next="step3"></batch:split>
<batch:step id="step3"></batch:step>
</batch:job>
So how can I configure a job to first run a single step, than run a number of steps in parallel, and then run a last single step?
See Question&Answers more detail:os