How to write TASK data into queue?

Hi @miles.chen ,
Use Parallel For Each if you are waiting on multiple actions so that as and when any action is completed, workflow gets resumed and you could add the in/out or out from that task to the queue.
UiPath Action Center Workflow Templates - #2 can give you some ideas as well as snippets in studio (snippets> Orchestration)
Liji