continue;
}
String templateName = cfg.getTemplateName();
String profileName = cfg.getProfileName();
BpmNotificationTemplate template = templateProvider.getBpmNotificationTemplate(templateName);
Map<String, Object> data = templateDataProvider.prepareData(bpmSession, task, pi, userData, cfg, ctx);
String body = processTemplate(templateName, data);
String subject = processTemplate(templateName + SUBJECT_TEMPLATE_SUFFIX, data);
/* Add all notification to queue */
for (String rcpt : new HashSet<String>(emailsToNotify)) {
addNotificationToSend(profileName, template.getSender(), rcpt, subject, body, cfg.isSendHtml());
}
}
catch (Exception e) {
logger.log(Level.SEVERE, e.getMessage(), e);
}