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?
There are probably other ways but this should give you the name of the project currently running.
process.GetProcessesByName(“UiRobot”).First(Function(p) String.IsNullOrEmpty(p.MainWindowTitle) = false).MainWindowTitle
I might want to improve by checking if process.GetProcessesByName(“UiRobot”) has any elements first.