I have followed the different docs for the high density bots setup, including https://www.youtube.com/watch?v=VMQtr0fK3Rw, however I am not able to run them together with the workitems queue.
I have some workflows on the username “rpa-payments” and a workitems queue associated with. I followed next steps:
Create the “hdrobots” role and add the “rpa-payments” user as a member.
Used the “rpa-payments” user to create the unnattended server object as described on the video.
Reauthenticate and start the windows OpenRPA service.
Create the user names “bot1” and “bot2” and add them to the “hdrobots” role.
On OpenRPA connected each user and set the credentials through the Run Plugins which add two new unattendedclient objects on OpenFlow.
Add the local bot Windows user to the Deskop Remote Users group.
On OpenRPA set the permissions for each workflow, includes the role “hdrobots”
etc.
At the end, I was able to test the configuration for each bot invoking some of the workflows from OpenFlow, also visited the HD Settings and turning on and off each of them, verifying they are taking control of the Windows’s session. However, when new Items arrive to the queue, the hd bots don’t execute them, all items are executed only when I open OpenRPA connected to the user “rpa-payments”, as originally worked. The hd bots are there, running, but without processing any items from the queue.
Notes:
The workitems queue is associated to the rpa-payments RPA user, however I also tested associating it to the hdrobots role (which is an RPA type) and didn’t work.
OpenFlow v1.5.0
OpenRPA v1.4.55
What I am missing on my setup?
How can I make bot1 and bot2 process the items from the workitems queue?
I have a hard time following it all, but this statement stands out to me.
Are you running more than one robot with the same openflow user? If so, that is not allowed, and is your problem. Every robot MUST run with an unique user … instead on the workitem queue use the ROLE you made that every user is a member of
Next is what I had before and after the hdb setup:
Before the setup
1 openflow user “rpa-payments” with the RPA enabled
1 workitem queue “Payments”
1 workflow “Main Process Queue” listening the “Payments” queue.
After the setup
Same as before, plus:
1 “hdrobot” role with the RPA enabled.
Added “rpa-payments” user as a member of “hdrobots” role.
Modified workitem queue “payments” to use “hdrobots” role instead.
2 new OpenFlow users for hd robots; “bot1” and “bot2”, included as members of “hdrobots”.
2 new Windows users, one for each new OpenFlow user (bot1 and bot2).
bot1 and bot2 are working correctly, I can run any workflow on each user and also I can select “hdrobots” and got the workitems randomly executed on one of the bots (rpa-payments, bot1, bot2).
Issue
When I add a new workitems to the queue, bot1 and bot2 are not processing them and stay forever on the queue, until I connect the “rpa-payments” bot which process all of them.
Notes
I turned off the hd bot1 at OpenFlow/hdrobots and when open OpenRPA using the bot1, I am getting next outputs:
[13:39:13.929][Output] Main Process Queue failed at 1.74 in 00:00.255
server error: {“error”:“Work item queue not found Payments (null) not found.”}
[13:39:13.672][Information] Main Process Queue started in 00:00.000
[13:39:13.641][Information] [ixvqy0qwx] Create instance of Main Process Queue
[13:39:03.878][Output] Main Process Queue failed at 1.74 in 00:00.167
server error: {“error”:“Work item queue not found Payments (null) not found.”}
[13:39:03.702][Information] Main Process Queue started in 00:00.000
[13:39:03.636][Information] [1v742gabb] Create instance of Main Process Queue
[13:38:55.216][Error] Cannot load instance 13e32598-6372-4a51-bd3b-7160c1861d46 it contains no state (non serializable)
[13:38:55.211][Information] Try running 1 pending workflows
[13:38:54.643][Output] Main Process Queue failed at 1.74 in 00:00.356
server error: {“error”:“Work item queue not found Payments (null) not found.”}
[13:38:54.269][Information] Main Process Queue started in 00:00.001
[13:38:53.693][Information] [pa8siomfa] Create instance of Main Process Queue
[13:38:52.929][Information] Connected to ws://cpay-rpa-qa.corcentric.com/
When login using bot1, all workflows in where I added the permission for “hdrobots” are displayed, except the “Payments” which is only displayed when I login using the “rpa-payments”. I think the issue is that the new hd bots cannot access to the Payments queue.
I got it. The issue was because of the roles and permissions at OpenFlow. The user “rpa-payments” is an admin user, so I added hdrobots role to the admins role, and the hd bots started to process the workitems from the queue. I think, I need to play with the roles and permissions to find the best way to organize them, but at least, I know what the issue was.