Populating data pages through unattended robotic automations
Simplify the integration of your application with legacy systems by using data pages to request robots to extract, move, or update data.
For example, by taking advantage of this solution, you can efficiently process data from an outdated application which offers poor user experience or does not have an interface available.
To use unattended robotic automations, a data page invokes a REST request that is authenticated in Pega Robot Manager. Next, by using input from the data page, Robot Manager queues a request for an RPA automation. When a robot completes the automation, it returns the result to Robot Manager. Robot Manager audits the result, and then passes it to the data page as a REST response. The following diagram shows the run-time architecture of the process:
Creating a case type that supports queuing robotic assignments
Enable queuing automation requests in Pega Robot Manager by creating a dedicated case type that contains a single step for assigning automations to robots.
- In the navigation pane of App Studio, click Case types.
- Click New.
- In the Create case type modal dialog box, provide the case name.
- Click Next.
- On the Workflow tab, in the
Create stage, remove the default
Create step by clicking the
Delete icon, as shown in the following figure:
- Add a step for assigning automations to robots:
- Click the Add stage to case type icon.
- Enter the stage name.
- In the stage that you created, click the Add step to the process icon.
- Click and then click Select.
- Optional: To edit the default step name, click the step name and then enter some new text.
- Configure the automation routing details:
- Expand the contextual menu for the Assign to robot queue step.
- On the General tab, in the Route to queue field, select the robotic work group to which you want to assign the automation.
- In the Run automation field, enter the name of the process that you want to automate.
- Define the input and output properties for the robotic automation:
- Click the Data Model tab.
- Click Add field.
- In the Add field to modal dialog box, enter the field name.
- Select the field type.
- Optional: To modify the default property ID, expand the Advanced section, and then edit the existing ID field value.
- Optional: To provide additional information about the property, expand the Advanced section, and then fill in the Description field.
- Optional: To modify the default maximum number of characters allowed for this property, expand the Advanced section, and then edit the existing Max length property value.
- Optional: To add more fields, click Submit & add another.
- When you finish adding fields, click Submit.
- Confirm your configuration by clicking Save.
Configuring the Pega Robot Manager host server and authentication profile
Configure the location of the Pega Robot Manager host server and the authentication profile to use when requesting robotic automations through a data page from your application.
- In the navigation pane of Dev Studio, click .
- Search for the pegarobotics/RobotManagerHostDomain setting.
- In the row for pegarobotics/RobotManagerHostDomain, click the Value field, and then enter the domain details and the HTTP scheme of the Robot Manager host server, including prweb, if applicable.
- Confirm your settings by clicking Save.
- On the Dynamic System Settings tab, search for the pegarobotics/RoboticAutomationRequestorProfile setting.
- In the row for pegarobotics/RoboticAutomationRequestorProfile, click the Value field, and then enter the name of the authentication profile that the connector uses to invoke the Robot Manager REST service.
- Confirm your settings by clicking Save.
- Update the authentication profile to reference valid login credentials to the
Robot Manager application:
- In the navigation pane of Dev Studio, click .
- Search for and click the authentication profile that you entered in step 6.
- In the User name field, enter a valid operator ID in the Robot Manager application.
- Click Set password.
- Enter the current password for the corresponding operator ID and then click Submit.
- Confirm your settings by clicking Save.
Configuring the Robot Manager host server location:
Update the authentication profile:
Building a data page with robotic automation as the data source
Create a data page that uses robotic automation as the data source and points to the single-step case that you created in the Robot Manager application.
- In the header of Dev Studio, click .
- Specify the data page label and application context, and then click Create and open.
- Provide the robotic automation input property IDs:
- On the Parameters tab of the new data page record, in the Name field, enter an input property ID.
- Optional: To add more properties, click the Add item icon and repeat step 3.a.
- Select a robotic automation as the data source:
- On the Definition tab, in the Data Sources section, in the Source field, select Robotic automation.
- In the Robotic automation field, enter the full
class identifier of the single-step case for queuing robotic assignments
that you created in the Robot Manager
application.
- In the Timeout(s) field, define how many seconds the data page waits for the automation to return the data before timing out.
- Map request data:
- In the Request data transform field, click the Open icon to create a data transform for mapping the request data.
- Enter the data transform label and then click Create and open.
- On the Definition tab, click the Add row icon.
- In the new step, in the Action column, select Set.
- In the Target column, enter .Input_Property_ID
- In the Source column, enter param.Input_Property_ID
- Repeat steps 5.c through 5.f to add all input properties.
- Save the data transform.
- Map the response data:
- On the data page form, in the Response data transform field, click the Open icon to create a data transform for mapping the response data.
- Enter a data transform label and then click Create and open.
- Map the automation output to properties in your clipboard.
- Save the data transform.
- Save the data page.The following figure shows a data page configuration with a robotic automation as the data source:
Previous topic Handling data page errors by using a data transform Next topic Attended robotic automation as a data page source