How to use DMN for dynamic data input

how to implement for-each loop to iterate through each object in the array and invoke the decision table for each element in camunda 7

The typical way to do that would be by calling the DMN from a BPMN where you have Multi-Instance markers available.