vendredi 27 février 2015

Spring batch CompletionPolicy based on item fields

I am trying to implement CompletionPolicy in which I need to decide completion based on some filed for example let say my item is a order class and I need to add up order amount and once amount is more than 1000 I want chunk to complete. ordeer.amount


but in CompletionPolicy i never get item.Is there another way to achieve it? or i can get item in CompletionPolicy somehow


Aucun commentaire:

Enregistrer un commentaire