Chapter 7. Processing data

 

This chapter covers

  • Writing business logic in a chunk-oriented step
  • Processing items in a chunk-oriented step
  • Transforming items
  • Filtering items
  • Validating items

Chapters 5 and 6 focused heavily on Spring Batch input and output: how to read and write data from various types of data stores. You learned that Spring Batch enforces best practices to optimize I/O and provides many ready-to-use components. This is important for batch applications because exchanging data between systems is common. Batch applications aren’t limited to I/O; they also have business logic to carry on: enforcing business rules before sending items to a database, transforming data from a source representation to one expected by a target data store, and so on.

7.1. Processing items

7.2. Transforming items

7.3. Filtering and validating items

7.4. Chaining item processors

7.5. Summary