org.camunda.bpm.engine.impl.bpmn.behavior
Class MailActivityBehavior

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
      extended by org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationFinder, AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.LeafExecutionHierarchyWalker, AbstractBpmnActivityBehavior.ProcessInstanceCollector
 
Field Summary
protected  Expression bcc
           
protected  Expression cc
           
protected  Expression charset
           
protected  Expression from
           
protected  Expression html
           
protected  Expression subject
           
protected  Expression text
           
protected  Expression to
           
 
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
 
Constructor Summary
MailActivityBehavior()
           
 
Method Summary
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)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, getCompensationHandler, getCurrentFlowScope, isProcessEngineExceptionWithoutCause, isTransactionNotActive, leave, propagateBpmnError, propagateError, propagateExceptionAsError, signal, signalCompensationDone
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MailActivityBehavior

public MailActivityBehavior()
Method Detail

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 CoreActivityBehavior<ActivityExecution>
Specified by:
execute in interface ActivityBehavior
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)


Copyright © 2015 camunda services GmbH. All rights reserved.