General Complex Variables

The category of General Complex Variables includes all variables that are not included in the other categories of complex variables.

The general complex variable types are listed below. Some of them are described on this topic, others in the following sub-topics.

Application Login Info

Exception

File Information

Key-Value Pair

Regular Expression Match

Row

Screen Element Rectangle

Timer

For instructions on how to create a complex variable, see here.

Application Login Info

An Application Login Info variable is used to fetch and store encrypted application credentials from a Real-Time server.

Permissions and Credentials Required

No special permissions are required to access application credentials from the Real-Time Server, either for an automation developer working through Automation Studio or for a client running an automation solution.

However, to retrieve application credentials, the user must be assigned the required application credentials through the Automation Portal. This applies to automation developers working in Automation Studio, and clients running published automation solutions.

To use this feature as an automation developer in Automation Studio, you must be connected to the Real-Time Server where the credentials are stored.

When using the Fetch Application Credentials method, all applications for which credentials have been defined on the server will be listed.

However, when running the project through Automation Studio, the credentials will only be returned for applications for which the user was assigned credentials at the server.

Switching Between Real-Time Servers

When specifying which application to fetch credentials for, the applications are identified by ID, as shown below:

The mapping between applications and IDs is unique per Real-Time Server. In other words, your solution will only work as expected when connected to the same Real-Time Server that Automation Studio was connected to when populating the Fetch Application Credentials method.

So, for example, if you developed your solution to run on a development Real-Time Server, when moving over to a production Real-Time Server, you will have to modify your solution by re-selecting the application while connected to that production Real-Time Server.

Properties

Methods

Exception

(Available from version 7.1 onwards.)

Store the details of an exception that occurs in an Exception variable.

Properties

Property

Input Type

Description

Can Be Modified

Catching Item Display Name Text Display name of the component or the workflow step where the exception occurred. Yes
Catching Item Internal Name Text Internal name of the component or the workflow step where the exception occurred.

Yes

Description Text The actual exception that occurred, for example, Null Pointer Yes
Name Text General exception or Workflow exception Yes
Workflow Text

The name of the workflow in which the exception occurred. Available from 7.4.

Important: This property is populated by an exception event in a workflow, and not by a built-in exception event.

Yes

File information

(Available from version 7.0 onwards.)

Use and manage file information by creating a File information variable which can be used to handle the date and time the file was created, last accessed, or last modified, the file name, size and version, whether the file is read-only or not, and whether the file is hidden or visible.

Properties

Regular Expression Match

(Available from version 7.0 onwards.)

Use a Regular Expression Match complex variable to store the details of a single regular expression match found in a text variable.

The function Extract Text Segments by Pattern in the Regular Expressions built-in service returns a list of type Regular Expression Match. You can extract a single match from the list and store it in a Regular Expression Match variable.

A typical implementation would work as follows:

See Project: Extract Text Data Using Regular Expressions for a complete sample project that demonstrates how to extract data from text using regular expressions.

Properties

Row

(Available from version 7.0 onwards.)

A row is a list of text elements and can be used as an alternative to a list variable of type Text.

Use a Row variable (or a list variable of type Text) to store multiple distinct text elements, for example, the values of multiple cells from a single row of an Excel file. Each element of a row variable can be written to and read from individually.

All values in a row's elements are of type Text.

To store multiple rows of data (such as from an Excel table or a table on a web site), create a list variable of complex type Row. See Process Tables.

Properties

Methods

Screen Element Rectangle

(Available from version 7.2 onwards.)

Create a Screen Element Rectangle variable to represent the size and location of an area of the screen, a document, or image.

Properties

Property

Type

Description

Writable

Height Number The height of the rectangle Yes
Left Number The distance in pixels between the left edge of the page or image and the left edge of the rectangle Yes
Top Number The distance in pixels between the top edge of the page or image and the top edge of the rectangle Yes
Width Number The width of the rectangle Yes

Tip: Measuring Rectangle Dimensions

To measure the dimensions of a rectangle in an image:

  1. Open the image in Microsoft Paint.

  2. Activate the Select tool.

  3. Position your cursor at the top-left corner of the rectangle.

    The values to use for Left and Top are displayed at the lower-left corner of the Paint window.

  4. Drag the selection rectangle over the area you want to specify.

    The values to use for Widthand Height are displayed to the right of where the Left and Top values are displayed.

Timer

(Available from version 7.0 onwards.)

The Timer variable is used to generate an Elapsed event after a specified length of time. A Timer variable can be used to delay a workflow transition.

Properties

Events

Key-Value Pair

(Available from 7.5 onwards)

The key-value pair is used to store data in key-value format. One text parameter is provided for each of the key and value. This type is most commonly used as a list.

Properties