I am new to Spring Batch. My requirement is I have a reader which gets the records through a web service call/database call and currently I am writing those records to one table. Now I need same records (records read by reader) needs to be processed and write into another table. The point to note here is the second items those are getting stored in second write are of different type of first write.
I need like below
1st Step: - Read items of type A --> Write items of Type A
2nd Step:- Read items of type A --> Process to type B ---> Write 10 items of type B
For the same above job I need Transaction Management. Also, in Step-2 :- If possible, I should use the data which was already read in Step-1.