Adding More Logic with the Email Task in Activiti