All Known Implementing Classes:
ChineseEmailContextFactory, DefaultEmailContextFactory

public interface EmailContextFactory<T extends BusinessProcessModel>
Interface used to create the velocity context for rendering emails.
  • Method Details

    • create

      AbstractEmailContext<T> create(T businessProcessModel, EmailPageModel emailPageModel, RendererTemplateModel renderTemplate)
      Create the velocity context for rendering an email. A RendererTemplateModel is passed in that may contain the reference to one or more properties files for generating context data for the subject and body sections of the email.
      Parameters:
      businessProcessModel - the process model
      emailPageModel - the CMS email page
      renderTemplate - the renderer template
      Returns:
      the velocity context