We have a requirement where multiple IDocs are trigerred from Sender and within CPI we split them using IDoc splitter and route based on SalesORGs and again route based on attachments, if there is any attachments (Pdf files ) , we enroute to a local intergation sub process , where we extract the parameters from Idoc into the exchange property and set a file name ( with . xml ) and similarly extract the properties for pdf . If there is no attachment , then enroute to another sub process to extract the parameters and set a file name (with.xml).
Now moving to the main flow where we use Join and Gather

Problem Statment : When we execute the iflow in trace mode, the end step in either of the subprocesses are not getting executed eventually it never returns to the main flow for join and gather.

If you have encountered such a scenario , please share your experience.