How to pass tJavaRow output (i.e.sql queries) as a batch to tHiveInput or tHiveRow

I am preparing the SQL queries dynamically from a file using the above flow and the till here the flow is working fine. Now, I want to pass the output from tJavaRow as batch(i.e. all the list of queries) to tHiveInput or tHiveRow.

Re: How to pass tJavaRow output (i.e.sql queries) as a batch to tHiveInput or tHiveRow

ok so remove tforeach.remove OnSubjobOk link from connectionadd tPreJob link with onSubjobOk to connectionand a row link(orange) from tJavaRow to thiveInputpropagate output data of tJavaRow to OutputLinkand try