In order to use terminal activities, the Nuget package “UiPath.Terminal.Activities” needs to be installed. Once installed, the activities can be found under “App Integration -> Terminals” as in the following picture:
UiPath Terminal wizard is designed to help you automate data extraction and/or task execution on various terminals (Mainframe/AS400/VT). It works with TN3270/TN5250/VT terminals.
There are several ways to automate the mentioned terminals:
One may choose between those three based on the accuracy and the level of the provided details (like colors, field information, etc).
2.1. Setting up a terminal sessionThe first step for creating a terminal session is by dragging the “Terminal Session” activity into the workflow. Then the connection configuration dialog is displayed.
The “Provider” combo box specifies which provider to use. Based on this selection, the “Connection type” section changes accordingly, depending on what connection types are available for the specific provider. A more detailed description on each provider can be found in section Supported providers.
“Show client application” flag specifies if the 3rd party provider window is displayed during recording/play.
2.1.1. Use an existing profileBrowse to a profile file containing the connection information, specific to selected provider. For example, for Attachmate Reflection, one may choose a rd5x/rd3x file, corresponding to a TN5250/TN3270 profile file. The same applies to other providers.
2.1.2. Manually specify addressEnter manually the connection parameters:
This method is available only when using IBM EHLL standard and it is described in EHLL section.
2.2. Recording wizardAfter specifying connection parameters the UiPath Terminal Wizard is automatically started.
The terminal screen is organized in fields, highlighted in orange color. The properties of the selected field are displayed the Field Properties pane.
There are two methods by which UiPath identifies a field on the screen: by coordinates or by visual elements.
Field identification by coordinates is straightforward, as it uses the row/column coordinates to located the field. The more reliable way is using LabeledBy/FollowedBy/Index properties. This is useful in case a screen changes a bit and the coordinates are not valid anymore, however, the text before/after a field is usually the same.
In the above picture, the selected field is “PUB1” and it is labeled by “System name:”. Index property is used when there are multiple fields with the same LabeledBy/FollowedBy property, like in a table.
2.2.2. Field Properties paneThe properties of the selected field are displayed the Field Properties pane. It includesthe coordinates (row/column), LabeledBy/FollowedBy/Index properties, the text value and a flag indicating if the field is editable or not.
2.2.3. Recorded Actions paneThis pane containsthe list of recorded actions (auto generated activities).
2.2.4. Available commands
It is the main terminal activity and represents a connection to a terminal server. It acts as a container for all other terminal activities. By default, after activity execution, the terminal connection is closed.
Properties:
When using many terminal sessions, it is recommended to reuse the terminal connection by saving it into a variable and use it in the next sessions. This is to avoid connecting and disconnecting multiple times, as this process is more time consuming.
3.3. Set Field activitySet the text value of the selected field to a given value. The field must be editable, otherwise the activity is disabled.
In the sample above, the selected field identified by label “Username/Benutzer” is set to the provided value “test”.
Properties:
Obtains the text value of the selected field.
In the sample above, the text from selected field identified by label “devicename:” is returned.
Properties:
Obtains the text value of the entire screen.
Properties:
Sends a special key to the terminal, like (Enter), F1-F24 functional keys, etc. Usually, following a control key like , the screen changes. In the sample below it changes to the information screen following the login screen.
Properties:
Waits the specified amount of time (TimeoutMS, in milliseconds) until the selected field contains the provided text.
In the sample above, the workflow execution waits until the field identified by label “Username/Benutzer:” contains the text “test”.
Properties:
Waits the specified amount of time (TimeoutMS, in milliseconds) until the screen contains the provided text. It is very similar to Wait Field Text activity, except it searches the entire screen instead of being limited to a specific field.
In the sample above, the workflow execution waits until the text “code400” is found on the screen.
Properties:
Advanced activities are terminal activities that work based on coordinates and cursor location. They should be used only when the field’s positions do not change, in order to ensure a successful workflow run.
3.9.1. Move Cursor activityMoves the cursor position to the specified location. In the sample below, the cursor will be moved at the beginning of the selected field.
Properties:
Sends the specified text to the terminal cursor position. One must ensure that the cursor position is inside an editable field by using Move Cursor activity.
Properties:
Similar to Set Field activity, uses coordinates to identify the field.
Properties:
Similar to Get Field activity, uses coordinates to identify the field.
Properties:
Obtains the text of length from the specified position. It is not limited to a single field.
Properties:
Similar to Wait Field Text activity, uses coordinates to identify the field.
Properties:
Attachmate reflection installed (https://www.attachmate.com/products/reflection/2014/)
4.1.2. UsageWhen using profile mode, the profile file must be located in the Attachmate Reflection profile folder. Default is ‘C:\Users\\Documents\Attachmate\Reflection’
4.2. Rocket BlueZoneRocket BlueZone (5.2+) Terminal Emulation installed (https://www.rocketsoftware.com/products/rocket-bluezone-terminal-emulation )
4.2.2. UsageNo custom requirements
4.3. IBM Personal Communications
4.3.1. Prerequisites
IBM Personal Communications (https://www-03.ibm.com/software/products/en/pcomm )
4.3.2. UsageOnly profile mode supported. The profile file must be located in the IBM Personal Communications profile folder. Default is ‘C:\Users\\AppData\Roaming\IBM\Personal Communications’
4.4. Using IBM EHLL standardOne may choose to connect to a terminal using IBM EHLL standard. This is an advanced type of connection and specific information regarding EHLL implementation need to be provided. Depending on the EHLL implementation, some features could not be available (like field color).
One can only attach to an existing terminal session using this method.
4.4.1. Prerequisites
An emulator that implements the EHLLAPI standard
4.4.2. UsageThe terminal emulator window should be opened before the connection (see the Application Specifics chapter below)
The EHLLAPI implementation dll is ‘pcshll32.dll’; default, it is located in ‘C:\Program Files (x86)\IBM\Personal Communications’.
4.4.3.2. Attachmate ExtraThe EHLLAPI implementation .dll is pcshll32.dll; default, it is located in C:\Program Files (x86)\Attachmate\EXTRA!.
Requirements/limitations:
The EHLLAPI implementation dll is ehlapi32.dll’; default, it is located in ‘C:\Program Files (x86)\Micro Focus\RUMBA\System’. The Ehll Enhanced checkbox should be unchecked.
Requirements/limitations:
This is a custom implementation and it requires the address of the server and the terminal type.