Skip to main content

Determining if Robot Runtime is running on a Citrix server

Suggest edit Updated on September 21, 2021

If a connection to a Citrix server times out due to session inactivity, the Robot Runtime client does not receive any notification. To address this issue, use the IsContextConnected static method.

The IsContextConnected method takes the context name as an argument and returns a Boolean value that indicate whether the context is connected. The context name is case insensitive. There is a 10-second timeout interval before the methods returns a False value, to indicate that there is no longer a connection.

Adding the IsContextConnected method to the Robot Studio toolbox

  1. In Robot Studio, open the Runtime tab in the Toolbox window.
  2. Right-click in the Runtime tab and select Choose Items.
  3. In the Add Toolbox Items dialog, click the Pega Robot Static Members tab.
  4. Click Browse and then select the OpenSpan.Runtime.Core.dll file in the Pega Robot Studio program folder.
  5. Expand the RuntimeHost tree view node and select the IsContextConnected check box.
  6. Click OKto save your changes.

    The following is an example:

    When using this static method within an automation, you must add the Citrix Context name in the connection block property.

    Adding the Citrix Context name in the connection block property










    Did you find this content helpful? YesNo

    100% found this useful

    Have a question? Get answers now.

    Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

    Ready to crush complexity?

    Experience the benefits of Pega Community when you log in.

    We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

    Close Deprecation Notice
    Contact us