Predefined application methods
Each time you add an application to a project in Pega Robot Studio, two application methods are created automatically: StartApp and StopApp. These predefined methods are useful to make sure the app is in the correct state, and can be called from other automations.
Application methods are single-purpose automations that you can create to use in solutions, just like any out-of-the-box method. The predefined application methods check to see if the application is running or not, and return a Boolean value that indicates the current state. These predefined methods also illustrate the correct way to build an automation workflow.
In the project, these application methods are children of the application, as shown in
the following figure:
Click on an application method to open it on the Automation Surface, where you can edit
or test the automation. The following figure shows the StartApp
method on the Automation Surface:
In the Application Designer, you can click on a predefined application method and open it
on the Automation Surface or record additional steps in the application, as shown in the
following figure:
Previous topic Creating Application methods Next topic Using Windows forms in automations