I have a spring batch application which populates records into Table A. The next step of the requirement is to group the data in Table A and run a whole bunch of business validation and discrepancy rules on each group. based on the output of the validation rules, data may/may not be written to Table B. This process will be a nightly batch job.
3 approaches I can think of :
- Use spring batch and integrate a rule engine into the Itemprocessor.
- Use spring batch and implement the validation logic in multiple item
processors and chain them. - Write a regular spring application, with a rule engine and implement the functionality to manage the process.
Questions : 1. Will spring batch support rule engine ? 2. Which is a better approach ? Or is there another alternative approach ?
All suggestions will be greatly appreciated.