Class MailActivityBehavior
- java.lang.Object
-
- org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
-
- org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
-
- org.camunda.bpm.engine.impl.bpmn.behavior.MailActivityBehavior
-
- All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>,ActivityBehavior,SignallableActivityBehavior
public class MailActivityBehavior extends AbstractBpmnActivityBehavior
- Author:
- Joram Barrez, Frederik Heremans
-
-
Field Summary
Fields Modifier and Type Field Description protected Expressionbccprotected Expressionccprotected Expressioncharsetprotected Expressionfromprotected Expressionhtmlprotected static BpmnBehaviorLoggerLOGprotected Expressionsubjectprotected Expressiontextprotected Expressionto-
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description MailActivityBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddBcc(org.apache.commons.mail.Email email, String bcc)protected voidaddCc(org.apache.commons.mail.Email email, String cc)protected voidaddTo(org.apache.commons.mail.Email email, String to)protected org.apache.commons.mail.EmailcreateEmail(String text, String html)protected org.apache.commons.mail.HtmlEmailcreateHtmlEmail(String text, String html)protected org.apache.commons.mail.SimpleEmailcreateTextOnlyEmail(String text)voidexecute(ActivityExecution execution)Default behaviour: just leave the activity with no extra functionality.protected StringgetStringFromField(Expression expression, DelegateExecution execution)protected voidsetCharset(org.apache.commons.mail.Email email, String charSetStr)protected voidsetFrom(org.apache.commons.mail.Email email, String from)protected voidsetMailServerProperties(org.apache.commons.mail.Email email)protected voidsetSubject(org.apache.commons.mail.Email email, String subject)protected String[]splitAndTrim(String str)-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, signal, signalCompensationDone
-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
-
-
-
-
Field Detail
-
LOG
protected static final BpmnBehaviorLogger LOG
-
to
protected Expression to
-
from
protected Expression from
-
cc
protected Expression cc
-
bcc
protected Expression bcc
-
subject
protected Expression subject
-
text
protected Expression text
-
html
protected Expression html
-
charset
protected Expression charset
-
-
Method Detail
-
execute
public void execute(ActivityExecution execution)
Description copied from class:FlowNodeActivityBehaviorDefault behaviour: just leave the activity with no extra functionality.- Specified by:
executein interfaceActivityBehavior- Specified by:
executein interfaceCoreActivityBehavior<ActivityExecution>- Overrides:
executein classFlowNodeActivityBehavior
-
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)
-
getStringFromField
protected String getStringFromField(Expression expression, DelegateExecution execution)
-
-