How to reuse Terminal Connection

@balu
Can you please help me how did you pass existing session to invoked workflow.
I am having similar issue and i am not able to resolve it.