Making Robust Capture and Declaration
Declaration Principles
During the solution design phase, you defined the various application, page and item entities required by your project.
In the declaration phase, you declare the entities in the SAP Intelligent RPA project.
Once you have created your project (see Create a Project) you need to create the functional entities:
-
Declare application entities
-
For each application, declare page (and subpage) entities
-
For each page, declare item entities.
Set Entity Recognition Criteria
Once you have created an entity, your main task is to set its recognition criteria.
Desktop Studio and Desktop Agent use recognition criteria to link the entity with the targeted component of the real-world application to be controlled.
Recognition criteria are constraints defined on the properties of the targeted element. You set recognition criteria in Desktop Studio (see Criteria Management).
The way criteria are defined can depend on the technology of the targeted application. Generally, you can:
-
Select the constraint operator (such as equals, contains, starts, ends, or like)
-
Set several criteria on different properties combined by a logical AND
-
Set several criteria on the same property combined by a logical OR
The real challenge in this step is to set criteria that are:
-
Precise enough to target only the desired component of the controlled application
-
Robust enough to still work even if the controlled application changes.
Track Required Technical Events
Depending on the requirements identified in the solution design phase (see Control Sequences), it may be necessary to track technical events.
Set Entity Parameters
Usually, there is no need to set entity parameters, except in the following cases:
-
To set an item as MustExist or MustNotExist
-
To use advanced recognition methods (Ancestor, Labelled by)
-
To declare multiple items