Beruflich Dokumente
Kultur Dokumente
• The Command Line interface can be used to start a Process. Windows Command Line (cmd.exe) is used to
execute AutomateC.exe1 program with additional parameters that specify the Process and the Resource in
addition to other configurations. This approach allows 3rd party Schedulers to start a Blue Prism Process. It
also allows a Blue Prism Process to start another Blue Prism Process on a different Resource, branching the
flow of execution and executing in parallel2.
1
Usually located at C:\Program Files\Blue Prism Limited\Blue Prism Automate\AutomateC.exe
2
The Resource will accept a Process if there is an available license and the session can be accepted.
• Using a Web Service call to an exposed Blue Prism Process or Object3. Blue Prism Web Services are
exposed on a Resource level, which allows a 3rd party Scheduler to establish a session on a requested
Resource. Web Services can also be used by Web Services friendly applications to initiate Blue Prism
processing. However, significant design considerations have to be made in order to develop a reliable
solution because of processing times, work load, and Resource availability.
3
Please examine the Web Services Guide. There are Memory and Blue Prism License implications.
4
Imported from C:\Program Files\Blue Prism Limited\Blue Prism Automate\VBO\BPA Object - Utility - Environment.xml
5
C:\Program Files\Blue Prism Limited\Blue Prism Automate
• Start TestProcess on localhost using Default Connection and User credentials (password is entered in clear
text after the user name):
The Session ID will be returned by the AutomateC application if the Process was accepted by the Resource for
execution. Please note that it is a text string. The Master Process can check the status of execution using the
/status command and the Session ID:
C:\Program Files\Blue Prism Limited\Blue Prism Automate\AutomateC.exe /status Session
ID
Using Automate.exe
Automate.exe is the main Blue Prism executable and is used to launch the Client and Resource PC. Although it too
can be called from the Command Line, it cannot be used to run processes programmatically and is outside the
scope of this document.
Design Considerations
Licensing
A continuous polling Process will consume a License, so unless there is a business need, the Scheduler could be
used to run the Process periodically instead of continuously. Note that a Process that has been running for a long
time without termination may overload machine’s finite resources (memory), but that is subject to design and
adherence to best practices.
Resource Availability
A key point to using the Command Line to run a Process on another machine is that if the remote Resource PC is
offline or busy, the attempt would fail, just as it would if you tried to do the same in Control Room. Using a
Resource Pool could be a way around this problem but still, if all the Pool members were unavailable then again,
the command would fail. Holding unfulfilled requests in some sort of storage until a Resource becomes available is
an option, but ultimately if demand exceeds capacity then there is no easy solution.
Security and Risk Management
Native authentication requires a Blue Prism User Name and Password, and the Command Line functionality can
potentially be dangerous because it allows many actions to be conducted. It is therefore recommended to create a
dedicated Command Line user account and role with minimal permissions.
6
The Web Services Guide is available on the Blue Prism Portal
Object Exposure
To maximize resource utilization efficiency, Objects that are performing background tasks, such as polling or adding
Work Cases to Work Queues, could have their Run Mode set to Background to enable the Resource to run
processes or objects in parallel. See the documents Blue Prism – Solution Design Overview7 and Object Design
Guide8 for design best practices.
Utility – Environment
The Utility’ Start Process Action does not return any Command Line output. Consequently, it cannot inform the
calling Process or Object if the request to start a Process has been accepted by a Resource or not. Session ID is not
being captured either. There are few potential solutions to remediate that shortcoming:
• Extend the Utility – Environment Start Process Action to capture the standard utput stream. This will
require enhancements to the code stage
• Create an Object for the Command Line and execute AutomnateC from there, capturing the output
• Use the Utility – AutomateC example Object bundled with the <<Luca’s examples>> on the Portal.
7
Available on the Blue Prism Portal
8
Available on the Blue Prism Portal
Example Designs
The Start Process action calls an Object that uses the AutomateC.exe application to run a Process on another
machine, according to the email instruction. Note that this is a sample design and additional logic needs to be
implemented to check the email inbox, manage available resources and validate parameters.