public class MailActivityBehavior extends AbstractBpmnActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
Modifier and Type | Field and Description |
---|---|
protected Expression |
bcc |
protected Expression |
cc |
protected Expression |
charset |
protected Expression |
from |
protected Expression |
html |
protected static BpmnBehaviorLogger |
LOG |
protected Expression |
subject |
protected Expression |
text |
protected Expression |
to |
bpmnActivityBehavior
Constructor and Description |
---|
MailActivityBehavior() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBcc(org.apache.commons.mail.Email email,
String bcc) |
protected void |
addCc(org.apache.commons.mail.Email email,
String cc) |
protected void |
addTo(org.apache.commons.mail.Email email,
String to) |
protected org.apache.commons.mail.Email |
createEmail(String text,
String html) |
protected org.apache.commons.mail.HtmlEmail |
createHtmlEmail(String text,
String html) |
protected org.apache.commons.mail.SimpleEmail |
createTextOnlyEmail(String text) |
void |
execute(ActivityExecution execution)
Default behaviour: just leave the activity with no extra functionality.
|
protected String |
getStringFromField(Expression expression,
DelegateExecution execution) |
protected void |
setCharset(org.apache.commons.mail.Email email,
String charSetStr) |
protected void |
setFrom(org.apache.commons.mail.Email email,
String from) |
protected void |
setMailServerProperties(org.apache.commons.mail.Email email) |
protected void |
setSubject(org.apache.commons.mail.Email email,
String subject) |
protected String[] |
splitAndTrim(String str) |
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDone
leave, leaveIgnoreConditions
protected static final BpmnBehaviorLogger LOG
protected Expression to
protected Expression from
protected Expression cc
protected Expression bcc
protected Expression subject
protected Expression text
protected Expression html
protected Expression charset
public void execute(ActivityExecution execution)
FlowNodeActivityBehavior
execute
in interface CoreActivityBehavior<ActivityExecution>
execute
in interface ActivityBehavior
execute
in class FlowNodeActivityBehavior
protected org.apache.commons.mail.HtmlEmail createHtmlEmail(String text, String html)
protected org.apache.commons.mail.SimpleEmail createTextOnlyEmail(String text)
protected void addTo(org.apache.commons.mail.Email email, String to)
protected void setFrom(org.apache.commons.mail.Email email, String from)
protected void addCc(org.apache.commons.mail.Email email, String cc)
protected void addBcc(org.apache.commons.mail.Email email, String bcc)
protected void setSubject(org.apache.commons.mail.Email email, String subject)
protected void setMailServerProperties(org.apache.commons.mail.Email email)
protected void setCharset(org.apache.commons.mail.Email email, String charSetStr)
protected String getStringFromField(Expression expression, DelegateExecution execution)
Copyright © 2017. All rights reserved.