From the course: Spring: Spring Batch

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Job flow

Job flow

From the course: Spring: Spring Batch

Start my 1-month free trial

Job flow

- [Instructor] The majority of the work required to create a spring batch job, is defining how jobs move from one step to another step. This concept is known as flow, and it is important to understand in order to address batch processing requirements. In simple jobs, execution flows sequentially from one step to another, as we have seen so far in our delivery job. We simply execute one step then the next step, repeating this pattern until the job completes. Sequential execution is achieved using the next transition within our job configuration. This transition allows us to specify the next step to execute upon the successful completion of a step. More complex jobs may require a conditional flow where the flow of the job may execute a different step, depending upon the result of a previous step. Here we see a segment of a job that is configured to execute Step3 ,if Step1 is successful. If Step1 is not successful, we'll…

Contents