Class MailActivityBehavior

All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>, ActivityBehavior, SignallableActivityBehavior

public class MailActivityBehavior extends AbstractBpmnActivityBehavior
Author:
Joram Barrez, Frederik Heremans
  • Field Details

  • Constructor Details

    • MailActivityBehavior

      public MailActivityBehavior()
  • Method Details

    • execute

      public void execute(ActivityExecution execution)
      Description copied from class: FlowNodeActivityBehavior
      Default behaviour: just leave the activity with no extra functionality.
      Specified by:
      execute in interface ActivityBehavior
      Specified by:
      execute in interface CoreActivityBehavior<ActivityExecution>
      Overrides:
      execute in class FlowNodeActivityBehavior
    • createEmail

      protected org.apache.commons.mail.Email createEmail(String text, String html)
    • createHtmlEmail

      protected org.apache.commons.mail.HtmlEmail createHtmlEmail(String text, String html)
    • createTextOnlyEmail

      protected org.apache.commons.mail.SimpleEmail createTextOnlyEmail(String text)
    • addTo

      protected void addTo(org.apache.commons.mail.Email email, String to)
    • setFrom

      protected void setFrom(org.apache.commons.mail.Email email, String from)
    • addCc

      protected void addCc(org.apache.commons.mail.Email email, String cc)
    • addBcc

      protected void addBcc(org.apache.commons.mail.Email email, String bcc)
    • setSubject

      protected void setSubject(org.apache.commons.mail.Email email, String subject)
    • setMailServerProperties

      protected void setMailServerProperties(org.apache.commons.mail.Email email)
    • setCharset

      protected void setCharset(org.apache.commons.mail.Email email, String charSetStr)
    • splitAndTrim

      protected String[] splitAndTrim(String str)
    • getStringFromField

      protected String getStringFromField(Expression expression, DelegateExecution execution)