I have spring batch job which perform following steps
- Read from Database
- Process record and fetch relative details from other system
- Identify target data to be updated
- Composite item writer for database for multiple targets ( currently I have two targeted tables, two jdbc Writers)
Now the issue is this composite item writer fail if any of jdbc item writer don’t update row due to condition is not matched or to be skipped.
Use case is
- Either all item Writers to be skipped- This is done by returning null object from processor
- All Item Writers updates - No issue
- Some Writers needs to update and some needs to be skipped- need help to resolve this.