Criteria Management

Criteria are rules set by the user and used by the Desktop Studio connectors to recognize defined elements (applications, pages or items) in the running entities (Web pages, Windows items, and so on).

A connector recognizes a running entity as an element if the entity properties match the element criteria.

A criterion applies to one property of the entity. It comprises:

  • The name of the property

  • The value that the entity property with this name must match

  • The operator used by the Desktop connector to test this match

Connector-Specific Features

Available Properties

The available property names depend on:

  • The technology of the entity (in other words, the URL property is available in a Web page but not a Windows page),

  • The connector (in other words, the Window connector only tests the EXE property of a Windows application).

When Desktop Studio captures a running entity, it captures only the properties available for use in criteria.

Available Operators

Text Properties

Any

The property can have any value

Empty

The property value must be empty

Full

The property value must be equal to the criterion value

Part

The property value must contain the criterion value

Starts

The property value must start with the criterion value

Ends

The property value must end with the criterion value

Like

The property value must match the criterion value considered as a regex

Numeric Properties

=

The property must be equal to the criterion value

<

The property must be less than the criterion value

>

The property must be greater than the criterion value

⇐

The property must be less than or equal to the criterion value

>=

The property must be greater than or equal to the criterion value

Desktop Studio displays only the available operators, depending on:

  • The type of the property (for example text, numeric, Boolean, or enumerated)

  • The connector (in other words, the Web connector manages the ‘starts-with’ operator for text properties but the Windows connector does not)

Available Combinations of Criteria: AND / OR

The general rule is that all of the element’s criteria must be satisfied before an entity is recognized (AND). However, some connectors accept two (or more) criteria for the same property. In these cases, only one of these criteria must match (OR).

When the OR combination is available for a property, the Criteria Editor shows the plus icon (+). This button adds a criterion to the edited property, even if a criterion already exists for this property.

The Criteria Editor

The Criteria Editor is available in the Criteria tool window (see Tool Windows in the Explorer Perspective).

The Criteria Editor can manage four types of properties:

  • Text properties:

  • Numeric properties:

  • Boolean properties:

  • Enumerated properties:

Adding a Criterion

The procedure for adding a criterion is the same for all element types (applications, pages, and items):

  • Select the captured property in the Captured Data tool window (see Tool Windows in the Explorer Perspective). The Criteria tool window is updated as follows:

  • Edit (optional) the criterion value and the operator in the Criteria Editor

  • Click the Refresh button to validate the criterion.

A captured property can be quickly added as a criterion by double-clicking it in the Captured Data tool window.

Updating a Criterion

To update a criterion:

  • Select it from the Criteria list

  • Update the criterion value or the operator in the Criteria Editor

  • Click the button to validate your change.

Deleting a Criterion

To delete a criterion:

  • Right-click it in the Criteria list

  • Select Remove criterion from the context menu, or click the minus (-) button.

Build Criterion Doc

The criteria technical document can be automatically generated using the Build criterion doc menu item in the File menu. This generates an additional HTML document for each PSC file. It is named PSCName.html:

The document is generated with the docGeneration_V1.xsl file located in the following (default) location: C:\Program files\SAP Intelligent RPA\Studio\configuration\xsd. The file used for this purpose can be modified by changing the XSLDocTechFile entry in the StudioExplorer.xml file.