Posted: 9 Feb 2019 5:57 EST Last activity: 21 Mar 2019 16:21 EDT
How to check if the we have cases left to process in the Robot Queue in openspan solution
I have a question regarding the Cases in my RobotQueue. I have created a Openspan Solution in My Robotics studio and have My RobotActivity in place.
After Processing a case i am setting the status of the Case using the out of the box method setCompletionstatus of RobotActivity ,Everything is going good till here.
After I set the status of Each case using the above flow i want to check if Robot has any next work to process or not. If yes then i would exit and it will pick the next case and if no work item to process then i would call my another automation which would signout the application, clean the global variables and terminate runtime. is it possible to check if robot has any work to do after each case completion in openspan
The bot automatically checks for more cases and pulls them if any exist. If you want to manually check, I believe you could make an API call to Pega Platform to check if there are any cases in the default workbasket for a specific bot user. I think you can use the RobotManagerRestClient Component to make a call to the platform.
Can you please share the Details where can i find the available Rest Endpoint Urls for Robot Manager Rest client so that i can get the manual stuff done by calling the platform.
I have many requirements coming on my way like fetching the Bot Status and all.. I am pretty sure Robot Manager Exposed its Rest Services to fetch these kind of details from outside for a Authenticated User. Please help me with the EndPoints Available for the same i Went to the Designer Studio Resources section on the top right but it is related to Pega not with Robot Manager
There is an "api/v1/data" where you can call Data pages to retrieve information. You can pass in the D_pzRoboticWorkBasketAssignments and Workbasket name as a parameter to return the number of assignment in the work queue of that basket.
For Example of our sample bankerpro app, you can use following call to return the count of assignment in address change workqueue.