I am trying to create a workflow that determines it’s own process name as seen in the below picture
The use case is that we want to add re-useable code to all of our dispatchers. We have had issues where we accidentally run the dispatcher on multiple robots at the same time. We are going to build a function that will check the name of the currently running process, then get the count of actively running jobs with the current name is > 1 If count = 1, then continue. If count > 1 then it should stop.
Getting the list of currently running jobs is easy enough with the ‘Get Jobs’ activity, but I’m struggling to figure out how to get the process name of the job itself.