A sample module extending the jBPM publication process to notify users about completed processes.
This module is put together in the documentation as a step-by-step tutorial and provides a collection of ideas and best-practice approaches.
See http://documentation.magnolia-cms.com/display/DOCS/Creating+a+custom+workflow+process