public class MailActivityBehavior extends CoreCmmnActivityBehavior
| Modifier and Type | Class and Description |
|---|---|
static class |
MailActivityBehavior.ContentItemDataSourceWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
attachments |
protected Expression |
bcc |
protected Expression |
cc |
protected Expression |
charset |
protected Expression |
exceptionVariableName |
protected Expression |
from |
protected Expression |
headers |
protected Expression |
html |
protected Expression |
htmlVar |
protected Expression |
ignoreException |
protected Expression |
subject |
protected Expression |
text |
protected Expression |
textVar |
protected Expression |
to |
| Constructor and Description |
|---|
MailActivityBehavior() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBcc(CommandContext commandContext,
org.apache.commons.mail.Email email,
String bcc,
String tenantId) |
protected void |
addCc(CommandContext commandContext,
org.apache.commons.mail.Email email,
String cc,
String tenantId) |
protected void |
addExpressionValueToAttachments(Object value,
List<File> files,
List<DataSource> dataSources) |
protected void |
addHeader(org.apache.commons.mail.Email email,
String headersStr) |
protected void |
addTo(CommandContext commandContext,
org.apache.commons.mail.Email email,
String to,
String tenantId) |
protected void |
attach(org.apache.commons.mail.Email email,
List<File> files,
List<DataSource> dataSources) |
protected org.apache.commons.mail.Email |
createEmail(String text,
String html,
boolean attachmentsExist) |
protected org.apache.commons.mail.HtmlEmail |
createHtmlEmail(String text,
String html) |
protected org.apache.commons.mail.MultiPartEmail |
createMultiPartEmail(String text) |
protected org.apache.commons.mail.SimpleEmail |
createTextOnlyEmail(String text) |
void |
execute(CommandContext commandContext,
PlanItemInstanceEntity planItemInstanceEntity) |
protected boolean |
fileExists(File file) |
protected Charset |
getDefaultCharset(String tenantId) |
protected Expression |
getExpression(CommandContext commandContext,
PlanItemInstanceEntity planItemInstanceEntity,
Expression var) |
protected void |
getFilesFromFields(Expression expression,
PlanItemInstanceEntity planItemInstanceEntity,
List<File> files,
List<DataSource> dataSources) |
protected String |
getForceTo(CommandContext commandContext,
String tenantId) |
protected String |
getStringFromField(Expression expression,
PlanItemInstanceEntity planItemInstanceEntity) |
protected void |
handleException(PlanItemInstanceEntity planItemInstanceEntity,
String msg,
Exception e,
boolean doIgnoreException,
String exceptionVariable) |
protected void |
setCharset(org.apache.commons.mail.Email email,
String charSetStr,
String tenantId) |
protected void |
setEmailSession(org.apache.commons.mail.Email email,
String mailSessionJndi) |
protected void |
setFrom(CommandContext commandContext,
org.apache.commons.mail.Email email,
String from,
String tenantId) |
protected void |
setMailServerProperties(CommandContext commandContext,
org.apache.commons.mail.Email email,
String tenantId) |
protected void |
setSubject(org.apache.commons.mail.Email email,
String subject) |
protected String[] |
splitAndTrim(String str) |
executeprotected Expression to
protected Expression from
protected Expression cc
protected Expression bcc
protected Expression headers
protected Expression subject
protected Expression text
protected Expression textVar
protected Expression html
protected Expression htmlVar
protected Expression charset
protected Expression ignoreException
protected Expression exceptionVariableName
protected Expression attachments
public void execute(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity)
execute in class CoreCmmnActivityBehaviorprotected void addHeader(org.apache.commons.mail.Email email,
String headersStr)
protected org.apache.commons.mail.Email createEmail(String text, String html, boolean attachmentsExist)
protected org.apache.commons.mail.HtmlEmail createHtmlEmail(String text, String html)
protected org.apache.commons.mail.SimpleEmail createTextOnlyEmail(String text)
protected org.apache.commons.mail.MultiPartEmail createMultiPartEmail(String text)
protected void addTo(CommandContext commandContext, org.apache.commons.mail.Email email, String to, String tenantId)
protected void setFrom(CommandContext commandContext, org.apache.commons.mail.Email email, String from, String tenantId)
protected void addCc(CommandContext commandContext, org.apache.commons.mail.Email email, String cc, String tenantId)
protected void addBcc(CommandContext commandContext, org.apache.commons.mail.Email email, String bcc, String tenantId)
protected void attach(org.apache.commons.mail.Email email,
List<File> files,
List<DataSource> dataSources)
throws org.apache.commons.mail.EmailException
org.apache.commons.mail.EmailExceptionprotected void setSubject(org.apache.commons.mail.Email email,
String subject)
protected void setMailServerProperties(CommandContext commandContext, org.apache.commons.mail.Email email, String tenantId)
protected void setEmailSession(org.apache.commons.mail.Email email,
String mailSessionJndi)
protected void setCharset(org.apache.commons.mail.Email email,
String charSetStr,
String tenantId)
protected String getStringFromField(Expression expression, PlanItemInstanceEntity planItemInstanceEntity)
protected void getFilesFromFields(Expression expression, PlanItemInstanceEntity planItemInstanceEntity, List<File> files, List<DataSource> dataSources)
protected void addExpressionValueToAttachments(Object value, List<File> files, List<DataSource> dataSources)
protected boolean fileExists(File file)
protected Expression getExpression(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity, Expression var)
protected void handleException(PlanItemInstanceEntity planItemInstanceEntity, String msg, Exception e, boolean doIgnoreException, String exceptionVariable)
protected String getForceTo(CommandContext commandContext, String tenantId)
Copyright © 2021 Flowable. All rights reserved.