Integrating an unattended RPA project with a Pega application
5 Tasks
15 mins
Scenario
U+ Bank has developed a Customer Support application to process customer operations. The company division uses the BankerInsight application to keep a record of credit card transactions. As a part of the development team, your goal is to develop robotic automation that streamlines the CSR (Customer Service Representative) work by automating communication with the BankerInsight application.
During the CSR call, the Pega application retrieves the customer data, allows the operator to select a transaction to dispute, and provide the dispute subject amount, as shown in the following figure:
After submitting the transaction, the case is routed to the robotic queue according to the Case life cycle.
Your task is to retrieve the customer ID, transaction ID, and amount to dispute, and pass the data to the robotic automation. After updating the record in the BankerInsight application, you should return the confirmation to the Pega application.
Complete the following tasks:
- Establish a connection to the Pega Platform instance.
- Add the robot activity to the project.
- Verify the correctness of ProcessDisputedTxn automation.
- Update the ProcessDisputedTxn automation to use the Robot Activity component properties.
- Update the ProcessDisputedTxn automation to set the activity completion status.
The following table provides the credentials you need to complete the challenge:
| User name | Password |
|---|---|
| architect@ubank | rules |
Challenge Walkthrough
Detailed Tasks
1 Establish a connection to the Pega Platform instance
- Initialize and launch the Pega instance for this challenge, and then save the instance url.
- Download the UBank project:
UBank-start.zip (251.28 KB)
- Save the file to your desktop and unzip the file to extract the project folder to C:\Users\<username>\Documents\Pega Robot Studio\Projects\
- On the Home screen in Pega Robot Studio, click , and then navigate to the projects folder and open UBank.pegaProject.
Note: The starter project includes a configured BankerInsight application. The value of the Path field must match the location of BankerInsight on your local computer for the project to function properly. In the BankerInsight application, change the value of the Path to the location of your BankerInsight application.
- On the Pega Robot Studio toolbar click Tools > Options to open the Options dialog box.
- In the Options dialog box, click Server connectivity.
- On the Server connectivity tab, in the ServerUrl field, enter your Pega instance url: https://<instanceId>.pegacea.net/prweb
Note:
The instanceId is an eight-characters alphanumeric value identifying your Pega training instance. - On the Authentication details section, in the Username field, enter architect@ubank.
- In the Password field, enter rules, and then click .
Note: Depending on your system settings, you may be unable to save connection data in the CommonConfig.xml file. In that case, the connection establishment will only persist within the current session.
- Verify that the connection was successfully established.
- In the Options dialog box, click .
2 Add the robot activity to the project
- In the Project Explorer, click and open Globals.
- In the Toolbox search field, enter Activity and then drag the RobotActivity component to the Globals designer.
- On the property grid of the RobotActivity, in the (Name) field, enter ProcessDisputedTxn.
- On the property grid of the RobotActivity, in the ActivityName field, enter ProcessDisputedTxn.
- On the property grid, in the ClassName enter Ubank-CustSupport-Work-DisputeTransaction.
- On the property grid, in the Fields property, click the more icon to open the Connect to Pega server dialog box.
- On the Connect to Pega server dialog box, enter the Pega instance Url and credentials provided in Task 1.
- On the dialog box, click to open the Select fields dialog box.
- On the Select fields dialog box, select Customer No, Transaction Amount, and Transaction ID to dispute, and then click .
- On the Toolbar, click .
3 Verify the correctness of ProcessDisputedTxn automation
- In the Project Explorer, click and open ProcessDisputedTxn automation.
- In the upper-right corner of Pega Robot Studio, click to verify the starting project interface.
- In the testing automation dialog box, enter the following values:
- customerNo: 1234500078963456
- transactionId: 2535
- txnAmount: 10
- In the Testing automation dialog box, click to start the automation test.
- Verify the dispute status for the transaction in BankerInsigh application is Success, and then close the BankerInsight application.
- Verify that the dispute has been added to the BankerInsight application with correct data, and that the confirmation dialog box is displayed.
- In the Test complete dialog box, click to finish the automation testing.
4 Update the ProcessDisputedTxn automation to use the Robot Activity component properties
- In the Project Explorer, click and open ProcessDisputedTxn automation.
- On the automation surface, click and select the automation Entry Point, right-click, and then select Delete.
- In the dialog box, click to confirm an entry point removal.
- On the Palette, in the Globals section, drag the ProcessDisputedTxn component to the automation surface to open a Select Action dialog box.
- In the Select Action dialog box, select the Activity Started event, and then click .
- On the Palette, in the Globals section, drag the ProcessDisputedTxn to the automation surface again.
- In the Select action dialog box, click , and then open the Property tab.
- In the Property tab, select Customer_No property, and then click .
- Connect the design blocks on the automation surface as shown in the following figure, to source the input data for the CustomerSearch method from the robot activity:
- Drag the ProcessDisputedTxn component to the automation surface to open the Select action dialog box.
- In the Property tab, select transaction_Amount, and Transaction_ID_to_dispute properties, and then click .
- Connect the design blocks on the automation surface as shown in the following figure, to source the input data for the AddTransactionAsDispute automation from the robot activity:
- Drag the ProcessDisputedTxn component to the automation surface to open the Select action dialog box.
- In the Property tab, select Customer_No, and Transaction_ID_to_dispute properties, and then click .
- Connect the design blocks on the automation surface as shown in the following figure, to source the input data for the SendDisputeConfirmation automation from the robot activity:
- On the toolbar, click to save the automation.
5 Update the ProcessDisputedTxn automation to set the activity completion status
- Drag the ProcessDisputedTxn component to the automation surface to open the Select action dialog box.
- Click the Method tab, select the SetCompletionStatus method, and then click .
- In the SetCompletionStatus method, set the status field to CompletedWithErrors.
- On the automation surface, delete the ShowMessage method of MessageManifest and the JumpToExit design block connected to it.
- On the Toolbox tab, in the search field, enter GetMessage, and then drag the GetMessage method to the automation surface.
- On the automation surface, connect design blocks as shown in the following figure:
- Drag the ProcessDisputedTxn component to the automation surface to open the Select action dialog box.
- Click the Method tab, select the SetCompletionStatus method, and then click .
- In the SetCompletionStatus design block, select the status field to completed.
- On the automation surface, connect design blocks as shown in the following figure:
- On the toolbar, click to save the automation.
This Challenge is to practice what you learned in the following Module:
Available in the following mission:
Want to help us improve this content?