Five 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
Ten Stars

Re: To get iteration count for each iterations

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

Francois Denis

Don't forget to tag when it's "solved"!

4 REPLIES
Ten Stars

Re: To get iteration count for each iterations

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

Francois Denis

Don't forget to tag when it's "solved"!

Ten Stars

Re: To get iteration count for each iterations

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

Francois Denis

Don't forget to tag when it's "solved"!

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.
Ten Stars

Re: To get iteration count for each iterations

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

Francois Denis

Don't forget to tag when it's "solved"!