I am trying to figure out a solution that will help me decide which credentials need to be pulled from Orchestrator depending on which licenses are currently in use.
I know there are some activities in Studio that can get current jobs and processes, but I am not sure how to utilize these.
What I would like is to be able to get the current license name and which process it is running so I can make sure to pull a different credential.
Is this possible?
You can make use of the Get Processes activity to get the list of active processes but, I don’t think you can determine which robot is running (haven’t come across any such scenarios). However, here are a few links, which might help you:
Is there a way of finding out the current license key associated with your installation of Studio? Device ID is in the Help section. The license file in %programdata% only has the long configuration key…
I’ve found a roundabout solution to this question because it was also plaguing me. The thing is that it only works if you are running the project from Orchestrator
If you assign your variable to environment.currentdirectory when running off of the Orchestrator, the directory it creates "looks like this:
C: \ Users \ username \ .nuget \ packages \ projectname \ projectversion \ lib \ net45
If you want the process name just use split(environment.CurrentDirectory,"\ ")(5)
If you want the packag…