/** * Overrides LeafParticipant dispatch method, by dispatching * then sending the email notification. */ public Object dispatch (final ApplicationContext context, final WorkItem wi) throws DispatchingException { final Object result = super.dispatch(context, wi); try { sendNotificationMail((InFlowWorkItem)wi); log.debug("apply() notification email sucessfully sent."); } catch (final Exception e) { log.warn("apply() failed to send notification mail", e); //throw new MinorDispatchingException // ("Failed to send notification email", e); } return result; }