You can get that information from the history logs instead of getting it from runtime. The main idea of the history logs is to decouple the runtime environment to the query information capabilities that you will use in your application to show the process status.
Cheers