I am running a scheduled batch job daily on 25,000 records and growing. I Want to be able to leverage Salesforce Flow for processing the data because it gives more control to the Admin for manipulating outputs.
I checked the salesforce developer documentation and found the Flow.Interview class.
https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/flow_interview_class.htm
In the documentation, they pass a single record into the flow, which from my understanding is not bulkified and would result in me having to launch a loop for each record in the batch. Unfortunately, this is not scalable and will lead to governor limit issues.
So my question is how can we call the Flow.Interview class and ensure that the way we pass in inputs is bulkified?