Runtime Resources with multiple Run time resources
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-01-21 09:25 PM
Hi, I was reading the infrastructure reference guide version 6.3.
One of the section "Runtime Resources with multiple Runtime Resources" it was mentioned:
"Each process that runs simultaneously on a single Runtime Resource must be able to successfully identify the application
(s) that were launched for its use. (E.g. if there are 5 processes each using Internet Explorer, each process must be able to
successfully identify which is the appropriate one to use)."
I know we can identify the Process id or child index in Launch action but does it work if we use global send keys ?
------------------------------
Harish
RPA Developer
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-01-21 10:45 AM
------------------------------
John Carter
Professional Services
Blue Prism
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-01-21 02:38 PM
You can create simple code action which returns the process you start ID for later usage in attach action (there's an option to attach by process ID):
Input parameters:
Process Name (text)
Arguments (text)
Output:
Process Id (number)
Code (adjust if you need):
Dim myProcess As System.Diagnostics.Process
myProcess = new Process()
myProcess.StartInfo.FileName = Process_Name
If Arguments<>"" Then
myProcess.StartInfo.Arguments = Arguments
End If
myProcess.Start
myProcess.WaitForInputIdle()
Process_Id = myProcess.ID
It might require
System.Diagnostics
In the namespace imports in initialize page object properties
------------------------------
Mindaugas Breskus
Software engineer
Swedbank
Europe/Vilnius
------------------------------