cancel
Showing results for 
Search instead for 
Did you mean: 

Add to Queue

SamLima
Level 7

in template 1-basic

why is it a best practice to lock the environment while adding to the queue? what is the problem if there are several bots adding to the same queue at the same time?

32799.png


------------------------------
Sam Lima
------------------------------
1 BEST ANSWER

Helpful Answers

Hi @SamLima

Environment Locking is a concept that is used for Multi-Bot Architecture framework. The way it works is to essentially lock a part of the workflow in such a way that only one Runtime Resource can access that part of the workflow at any particular point of time during execution.


Scenarios:

It is generally used in scenarios where let say there is one source data which needs to be read and you don't want two machines to read the data as duplication might occur or the file might get locked by one resource while the other tries to access it. In your case, if multiple robot try to access the same data source and populate the queue items then there are chances of duplication or can be issues if the data source does not supports parallel working of users at the same time.

Also, if in you automation process, let say you deal with an application where the User ID is same for all the bots and only one session can be created at a time. Then ideally you won't want multiple robots to work on that session.

For more details on how it works, you can refer to my detailed answer at the following thread: Environment Locking

------------------------------
----------------------------------
Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future

Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
Wonderbotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com

----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

View answer in original post

1 REPLY 1

Hi @SamLima

Environment Locking is a concept that is used for Multi-Bot Architecture framework. The way it works is to essentially lock a part of the workflow in such a way that only one Runtime Resource can access that part of the workflow at any particular point of time during execution.


Scenarios:

It is generally used in scenarios where let say there is one source data which needs to be read and you don't want two machines to read the data as duplication might occur or the file might get locked by one resource while the other tries to access it. In your case, if multiple robot try to access the same data source and populate the queue items then there are chances of duplication or can be issues if the data source does not supports parallel working of users at the same time.

Also, if in you automation process, let say you deal with an application where the User ID is same for all the bots and only one session can be created at a time. Then ideally you won't want multiple robots to work on that session.

For more details on how it works, you can refer to my detailed answer at the following thread: Environment Locking

------------------------------
----------------------------------
Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future

Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
Wonderbotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com

----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.