From the course: Spring: Spring Batch
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Creating a conditional flow
From the course: Spring: Spring Batch
Challenge: Creating a conditional flow
(upbeat techno music) - [Instructor] Now it's time to put your new skills to the test. We're going to expand our package delivery job to include a new conditional flow that will be executed when the customer is present and receives their item. In this conditional flow, the job will be updated to either thank the customer or give them a refund if the item is the incorrect item. The correct item is delivered roughly 70% of the time, so this should be factored into the logic for any conditional decision. To build the flow, you will need to create new steps and a decider that produces a custom exit status that controls the conditional flow to these steps. Additionally, you'll need to modify the job flow to include the decider and its transitions to the appropriate steps. As a helpful resource, you can consult the deliver package job handout. Here I've highlighted the new steps in the decider that will be required for the…
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
-
(Locked)
Configuring a job repository6m 13s
-
(Locked)
Job parameters6m 59s
-
(Locked)
Building jobs with multiple steps5m 26s
-
(Locked)
Restarting jobs5m 19s
-
(Locked)
Job flow5m 11s
-
(Locked)
Building conditional flows6m 48s
-
(Locked)
Controlling flow with custom statuses6m 59s
-
(Locked)
Challenge: Creating a conditional flow1m 20s
-
(Locked)
Solution: Creating a conditional flow6m 35s
-
-
-
-
-
-
-
-