The example below shows how to setup a listener (which sits on your web application server waiting for something to happen
One way to automatically set this up is be implementing a ServletContextListener
One thing I do admire about OIM is the GUI interfaces within em on the ranking order of each plugin. The example below will show you how to remove the unwanted process task