Take a look at: Pattern Review: DMN Looping for Array Input
You need to be using a sub-process if you want to process the batches with multiple tasks being performed for each item
Edit: can also take a look at: Idiomatic solution for the 1-n problem