We need to return the result of the processing of a robot, in the RPA model, using the Robot Manager.
In the current model, the Pega platform receives the REST call from the client, places it in the Robot Manager queue and returns an "OK", terminating the connection. What we need is for the platform to keep the connection open until the end of the robot's processing and to return the result of that processing within the same call to the client.
NOTE: We are already setting the "completed" behavior at the end of execution, but with the same we can not get the processed data.
NOTE 2: We know how to use the REST component, however we need this data to be returned on the same call, and not sent to another REST API.
This would be better designed as an RDA process since you are effectively dedicating a bot to a particular user on-demand. I would suggest that you look into designing this as an RDA process where the application(s) you are automating reside on the user's desktop.
You could probably code into your case flow a means of waiting for the case to reach a specific status, but specific advice there should come from a Pega LSA or someone more experienced on the platform side of things as this wouldn't be handled on the Robotics side.