I am trying to create a sequence where the browser should restart upon hitting a certain count of records and continue processing records from where it left off.
Right now I am using a while loop. I have a for loop where the records are read into a datatable and processed. There is flaw in this design as the for each will execute all records consecutively.
On the other hand If I were to place the while loop inside the for loop, on browser restart a record is skipped. I tried this with an If but this will not take care of the flaw.
I am incrementing my counter variable inside the for each and resetting it at the restart sequence.
My design looks like the above atm. How can i redeisgn the sequence to meet the requirements?