lundi 13 avril 2015

How to create multiple flows with various data using Spring Batch?

I'm using Spring Batch to deal with whole records in one database. What I should do with these datas basically depends on each record. There can be three status with each record, for example A / B / C.


I want sort all records into these thress status. For example, A - record1, record2, record3 B - record4, record5, record 6 c - record7, record8, record9


then I'd like to create step flow(or job flow? i dont know exactly..) based on these three status. ( Step 'aStep' would deal with A kinds of records, 'bStep' would deal with B kinds of records... and so forth)


How can I do this with Spring Batch? I've already read a lot on spring flow, decisions which are based on ExitStatus or BatchStatus but cannot find any ways to do exactly what I wanna do.


Please help me if you knows about how to do this.


Aucun commentaire:

Enregistrer un commentaire