I have a workflow file called Main.xaml in which I have a Terminal Session with IBM Personal Communications. In order to streamline my workflows and enable the usage of reusable .xaml files, I would like to be able to invoke a workflow file containing some Terminal Session activities.
However, I do not seem to able to do so.
I have tried the following:
Creating a Terminal Session within my Main.xaml and storing the OutputConnection in a variable. Passing the variable to the Invoked Workflow File via an argument. Then I insert the argument in the ExistingConnection property within my invoked workflow file.
The type of the argument and variable is TerminalConnection - HOWEVER the documentation found here, states that the type should be TerminalSession - but UiPath Studio does not accept that type.
Please see the screenshots below, for an example I made.
The output connection variable is not populated until the Terminal Session activity has completed. It won’t be available to activities inside Terminal Session. You should have a Terminal Session activity inside your separate XAML, and put the Invoke Code after the first Terminal Session.