I'm not sure it there is an available example using that specific functionality and publicaly available. You can check the following example and just add a hook to the reject method in the task client:
https://github.com/esteban-aliverti/JBPM-Samples/tree/master/Simple-Human-Task-Sample
Cheers