cancel
Showing results for 
Search instead for 
Did you mean: 

Restart the process programatically.

GyanendraBehera
Level 2

           

If a process failed, I would like to run the process  automatically on  the same BOT programmatically. Is it possible to do this using RPA or Python? My program need to extract the  recourse information where the resource state is idle and  connection as "Yes Connected" . But when I checked the Resource table, I am getting the resource state but not the  connection information. How can I extract the BOT connected to the application server or not?



------------------------------
Gyanendra Behera
------------------------------
6 REPLIES 6

ManishRaw
Level 7

Hi Gyanendra,

Not sure if you have tried or not, but you can use Scheduler to do the same for the mentioned requirement.

Suppose your process name is P1 and machine name is VDI1, create the schedule in the below mentioned way:

Schedule Tasks On Complete On Abort
Task 1 Stop Task 2
Task 2 Stop Abort

Both Task 1 and Task 2 can be configured to run P1 on VDI1.



------------------------------
Manish Rawat
Project Manager
Mercer
New Delhi
------------------------------

PvD_SE
Level 12

Hi G,

You can build a 'Driver' process that runs the process you want to run and checks the results of it. If it failed, the Driver process will run your process again. If it did not fail, the Driver process ends. 



------------------------------
Happy coding!
---------------
Paul
Sweden

By all means, do not mark this as the 'Best answer'!
------------------------------

Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)

Oooh I'm stealing that one for my projects @PvD_SE !



------------------------------
💙 Michael
(I'm part of the SS&C Blue Prism Community Team)
------------------------------

Patent pending...  🙂



------------------------------
Happy coding!
---------------
Paul
Sweden

By all means, do not mark this as the 'Best answer'!

------------------------------

Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)

This is the approach we have taken:

29795.png

Remember to (always) untick "Fail fast on any errors"



------------------------------
Ian Meldrum
------------------------------
Ian Meldrum Senior RPA Developer Royal Surrey NHS FT UK

  Multiple processes are running in the BOT like for 10 min in a sequence. If a process scheduled now and failed, I can't restart it immediately as it may overlap the schedule time of the other process. Hence, I am getting the failed process and corresponding BOT from BP database. then checking if the bot is idle, connected and no process are in queue, then only, I have to restart the failed process in the same BOT.  But not finding which table contains the scheduled time and connected information. 



------------------------------
Gyanendra Behera
------------------------------