Skip to main content
LinkedIn
Copied!

Table of Contents

Determining if Robot Runtime is running on a Citrix server

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 OK to 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

     

     

     

     

     

     

     

     

     

    Suggest Edit
    Did you find this content helpful?

    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.

    Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

    Close Deprecation Notice
    Contact us