Current Process Object?


#1

Is there a system object which contains information about the currently running Workflow? I’m interested in a common logging component and wonder how to retrieve certain info about the bot that is presently running?


#2

Hi,

There are probably other ways but this should give you the name of the project currently running.

process.GetProcessesByName(“UiRobot”).First(Function§ String.IsNullOrEmpty(p.MainWindowTitle) = false).MainWindowTitle

I might want to improve by checking if process.GetProcessesByName(“UiRobot”) has any elements first.

Cheers


Terminate the workflow at specific time without message box