cancel
Showing results for 
Search instead for 
Did you mean: 

Threading

NiklasHilmer
Level 2
Hi,   is there a possibility to have a threaded Process in Blue Prism? If not, this would be a huge Advantage! E.g.: If you have a Program which, at some unknown Point in time opens a Popup, that needs to be handled you could have a waiting thread, that justs sits there waiting for the popup. Once the popup appears the waiting thread handles the popup while at the same time pausing the Main thread. Is this already possible? When will this Feature be available if not?   Best Regards, Niklas Hilmer
4 REPLIES 4

John__Carter
Staff
Staff
Hi Niklas - via a code stage maybe, but it depends on what you're trying to do. What we've had to do in the past is create a separate 'wait for an OK button and press it if it appears' and then have the main process start it via the command line so that it runs in parallel and not as a subprocess. It's quite awkward to do, but if the OK button is running on a separate thread to the main application, it's the only way. If you've got a good idea then we'll happily consider it https://portal.blueprism.com/products/enhancement-request

MarcinOlpinski
Level 2
You can write a separate application e.g in Visual Studio which is waiting for some pop up and pressing some buttons. Then you launch this app in BP in main process 🙂

SachinJagdale
Level 4
I'm just saying for your example. I think if you put proper exception handling for that, then definitely you can close it within a seconds.

AliaksandrSauch
Level 2
Hi, Niklas.
You can write the code that can track your popup and press the "ok" button with C# or VB.NET and run it in separate Thread in object.
17515.png
17516.png
Then you can call this action from your process and it will work in separate thread.
Important note: don't forget design it in such way that you cat stop this thread (for example call another action that kills this thread).


------------------------------
Aliaksandr Sauchanka
RPA
EY
Europe/Minsk
------------------------------