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
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Spring Batch architecture5m 28s
-
Configuring a job repository6m 13s
-
Job parameters6m 59s
-
Building jobs with multiple steps5m 26s
-
Restarting jobs5m 19s
-
Job flow5m 11s
-
Building conditional flows6m 48s
-
Controlling flow with custom statuses6m 59s
-
Challenge: Creating a conditional flow1m 20s
-
Solution: Creating a conditional flow6m 35s
-
-
-
-
-
-
-
-