Announcement Announcement Module
Collapse
No announcement yet.
how to avoid item to be processed more than once? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to avoid item to be processed more than once?

    I have a scenario where the items to be processed will be selected from a database, but I still can't figure out how to stop an item to be processed more than once. flat files will be created from this table a few times a day so I guess each row will have to be flagged so it wont be processed again, but when and how in the spring batch process can this be done? Or if there is another way to avoid this ?

    Thanks,
    Angel

  • #2
    Either you have to be able to segregate the records so you can select them separately, or you have to put a 'process indicator' on the records when you write them out. Usually this just entails an update call on the original record from within your ItemWriter.

    Comment

    Working...
    X