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: Filtering batch data

Challenge: Filtering batch data

From the course: Spring: Spring Batch

Start my 1-month free trial

Challenge: Filtering batch data

(upbeat synthesizer music) - [Instructor] Having seen several ItemProcessors in action, this challenge will require you to implement your own ItemProcessor that identifies and filters orders which qualify for free shipping. Our business requirements indicate those orders over $80 qualify for free shipping, so we'll want to identify them and then filter out those lower than the price threshold. Additionally, H+ Sport provides free shipping only for government orders, so you'll want to keep the existing ItemProcessors in place. Here are a few hints to get you started. Divide the work between our existing ItemProcessors and a new ItemProcessor named Free Shipping ItemProcessor. You will need to set the free shipping Boolean on the tracked order object to indicate if the order qualifies for free shipping. Finally, filtering items in a processor is pretty simple. Take a peek at the documentation for how to proceed. Once you've…

Contents