Four Stars

To get iteration count for each iterations

I m using a tFileList to get all the files from a folder.Now it gets iterated based on the number of files. I want to get the Iteration number for each iteration at the end of each iteration. How can we do it?

1 ACCEPTED SOLUTION

Accepted Solutions
Eight Stars

Re: To get iteration count for each iterations

use "(Integer)globalMap.get(tFileList_x_NB_FILE)"
sorry I forget one B.
4 REPLIES
Eight Stars

Re: To get iteration count for each iterations

use "(Integer)globalMap.get(tFileList_x_N_FILE)"

Eight Stars

Re: To get iteration count for each iterations

x is the number of your FileList component use 1 by default
Seven Stars

Re: To get iteration count for each iterations

Use something like a tSetGlobalVar component before the tFileList, set that a value to 0. Then the first component  on the iterate flow is another tSetGlobalVar to increment this global variable by 1 every iteration.

 

Thanks

 

David

Regards

David

Don't forget to give Kudos when an answer is helpful or the solution.
Eight Stars

Re: To get iteration count for each iterations

use "(Integer)globalMap.get(tFileList_x_NB_FILE)"
sorry I forget one B.