Skip to content

processors

Mahmoud Ben Hassine edited this page Jun 4, 2017 · 1 revision

Easy Batch lets you define processing logic through the RecordProcessor interface. This is where you implement what to do for each record. Records are submitted to a processing pipeline where each record is piped out from one processor to the next one. Record type can change from one processor to another.

You can define as much processors as you want in the pipeline:

Job job = new JobBuilder()
    .processor(myRecordProcessor1)
    .processor(myRecordProcessor2)
    .build();

Easy Batch will call these processors in the order in which they are registered.

If a processor returns null or throws an exception, then next processors in the pipeline will be skipped.

Clone this wiki locally