Hi, i created a new module to import batch records from csv file, i need to assign a batch number to every record from a file, so for example uploads from the first file would have 1 as batch number, then the records from file 2 would have 2 as batch number and so on.
If i try to use a workflow with trigger "Creating a record" every record in the file gets a different batch number.
I was also thinking on using a custom import handler, by default imports use CSVreader.php for csv files:

I can clone this and modify it to fit my needs, but what other changes would i need for my module to use this import handler instead of the default one?
Has anyone here implemented something similar?