Apr 16th, 2008, 08:33 AM
Actually, i want to get the total number of records in the input file. Listener apporach would work, i think.
Originally Posted by Dave Syer
I have 4 records in the input file, with no skippable items. However, i get output of 5 on using "stepExecution.getItemCount()". Why is that?
Also, doc for getItemCount() is "Returns the current number of tasks for this execution". What do we mean by tasks here? Is it the total number of processed items or total number records going to the database?
Apr 16th, 2008, 09:28 AM
The off-by-one item count in step execution should be fixed in trunk. Item count is the number of items processed - I've tidied up the StepExecution javadoc a bit.
Last edited by robert.kasanicky; Apr 16th, 2008 at 09:29 AM.