Package pl.net.bluesoft.rnd.pt.ext.bpmnotifications.model

Examples of pl.net.bluesoft.rnd.pt.ext.bpmnotifications.model.BpmNotificationTemplate


    return item.getTemplateName();
  }

  @Override
  protected BpmNotificationTemplate createItem() {
    return new BpmNotificationTemplate();
  }
View Full Code Here


                    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);
            }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.pt.ext.bpmnotifications.model.BpmNotificationTemplate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.