I want to process all the attachments (PDF and Excel), collect the feedback for each document, collate all the feedback over multiple documents, then send it.
What is the problem & what have you tried?
The routes are not running in order. I want route 1 and 2 to run thru all the data first, then run route 3.
Currently route 1 runs, then route 3. Then route 1, then route 3, then route 2 then route 3.
I want it to be R1, R1, R2, R3 (example) or R2, R1, R3.
As mentioned earlier, if your input structure is different- for example, if you want to process all bundles before the router and only then send the data to Route 3- you will need to adjust the logic using filters.
It sounds like there is a module before the router that returns multiple PDFs. So you want to process all the pdfs on routes 1 and 2 before route 3 executing? And then on route 3 have access to all the processed PDFs?
Then add array aggregator modules before each set variable module, with a source module set to whichever module is producing the additional bundles that are in need of processing.
Then route 3 should run only after 1 and 2 are completely done processing everything and your get variables module will return the resulting arrays from each of the routes.
In Make scenarios, routes usually run in parallel unless something specifically controls the order. If route 3 depends on results from routes 1 and 2, Iβd normally handle that by restructuring the scenario so the dependent steps run after the required data is processed. Using aggregators or conditional logic can also help control the sequence.