cancel
Showing results for 
Search instead for 
Did you mean: 

Login BP VM & run a process

JasmeetSingh
Level 3
I'm looking for a solution to login BP VM through BP core code and execute a BP process through a command or query.

In detail, this logic needs to implement on a BP code level
1. Login BP VM through windows cred (where are creds stored for BP login?).
2. once it login then execute a BP process through a command with specific parameters.
3. Once a process is done then needs to logout from the VM.

One more thing I need to adhere about is if a resource or machine is already occupied or busy with other process then a existing new process should wait until it's free up a machine.

Answers for this question will extremely appreciated :)



------------------------------
Jasmeet Singh
------------------------------
1 BEST ANSWER

Helpful Answers

PabloSarabia
Level 11
Hi @Jasmeet Singh

​Fortunately, Blue Prism has the Blue Prism Login Agent. This commponent give you the possibility to login into your Virtual Machine. Here you have the official documentation for this: https://bpdocs.blueprism.com/bp-6-10/en-us/Guides/login-agent/login-agent.htm

All of the password in Blue Prism are saved in the Credential Manager. This component encrypt the password and stores it securely. Here you have the article of this component: https://bpdocs.blueprism.com/bp-6-10/en-us/helpCredentials.htm

Then... when you talk about execute a process through a command, you mean to execute a command in the CMD or Powershell? If this is it, you can use the action "Start Process" from the VBO Utility - Environment (Here you have the DX Asset: https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---environment)

And finally, for logout, you can use again the "Start Process" action and call the "shutdown" command with the argument "/l".

So, finally, you need to create a full process that:

1.- Login in the VM by using the Login Agent
2.- Execute your process with the Start Process action
3.- And logout using the the command "shutdown /l"

This process should be executed from the Blue Prism scheduler this will allow you to launch automatically



Hope this helps you! And if this solves the problem, remember mark as the best answer!

See you in the Community, bye :)

------------------------------
Pablo Sarabia
Solution Manager & Architect
Altamira Assets Management
Madrid
------------------------------

View answer in original post

1 REPLY 1

PabloSarabia
Level 11
Hi @Jasmeet Singh

​Fortunately, Blue Prism has the Blue Prism Login Agent. This commponent give you the possibility to login into your Virtual Machine. Here you have the official documentation for this: https://bpdocs.blueprism.com/bp-6-10/en-us/Guides/login-agent/login-agent.htm

All of the password in Blue Prism are saved in the Credential Manager. This component encrypt the password and stores it securely. Here you have the article of this component: https://bpdocs.blueprism.com/bp-6-10/en-us/helpCredentials.htm

Then... when you talk about execute a process through a command, you mean to execute a command in the CMD or Powershell? If this is it, you can use the action "Start Process" from the VBO Utility - Environment (Here you have the DX Asset: https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---environment)

And finally, for logout, you can use again the "Start Process" action and call the "shutdown" command with the argument "/l".

So, finally, you need to create a full process that:

1.- Login in the VM by using the Login Agent
2.- Execute your process with the Start Process action
3.- And logout using the the command "shutdown /l"

This process should be executed from the Blue Prism scheduler this will allow you to launch automatically



Hope this helps you! And if this solves the problem, remember mark as the best answer!

See you in the Community, bye :)

------------------------------
Pablo Sarabia
Solution Manager & Architect
Altamira Assets Management
Madrid
------------------------------