Process Global

I need to perform a process that runs throughout the application that does not depend on the view or the module …

What code have you written so far to achieve this goal? How does the result of that code differ from what you want it to do?