Functionality to get current executing process from within a function
added to process manager.