catch in event execution task??

How to catch in event the execution of a task?

for example when I open the task from inbox or open task from link…