com.camunda.toolkit.jbpm.action
Class MailServiceAction

java.lang.Object
  extended by com.camunda.toolkit.jbpm.action.JBpmAction
      extended by com.camunda.toolkit.jbpm.action.MailServiceAction
All Implemented Interfaces:
java.io.Serializable, org.jbpm.graph.def.ActionHandler

public class MailServiceAction
extends JBpmAction

This Action can call business services out of processes. See Details in the Wiki This Action relies on the ServiceBroker (see See Details in the Wiki) to send mails. So it must be initialized before the first use of this action!

Version:
0.9
Author:
Bernd Rücker
See Also:
Serialized Form

Constructor Summary
MailServiceAction()
           
 
Method Summary
protected  void addParams(com.camunda.commons.mail.MailTransformationObject mailObject)
           
 boolean blockSending()
          overwrite this if you want to avoid sending mails in some circumstances
 void execute(org.jbpm.graph.exe.ExecutionContext executionContext)
           
protected  org.jbpm.graph.exe.ExecutionContext getExecutionContext()
           
protected  java.lang.String getFrom()
           
protected  java.lang.String getFromName()
           
protected  java.lang.String getReceipient()
           
protected  java.lang.String getSubject()
           
 void setFrom(java.lang.String from)
           
 void setFromName(java.lang.String fromName)
           
 void setIgnoreException(boolean ignoreException)
           
 void setParam(java.util.Collection param)
           
 void setReceipient(java.lang.String receipient)
           
 void setReceipientEval(java.lang.String receipientEval)
           
 void setSubject(java.lang.String subject)
           
 void setSubjectEval(java.lang.String subjectEval)
           
 void setTemplate(java.lang.String template)
           
 
Methods inherited from class com.camunda.toolkit.jbpm.action.JBpmAction
resolveParameter, resolveParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailServiceAction

public MailServiceAction()
Method Detail

blockSending

public boolean blockSending()
overwrite this if you want to avoid sending mails in some circumstances


execute

public void execute(org.jbpm.graph.exe.ExecutionContext executionContext)
             throws java.lang.Exception
Throws:
java.lang.Exception

addParams

protected void addParams(com.camunda.commons.mail.MailTransformationObject mailObject)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getSubject

protected java.lang.String getSubject()

getReceipient

protected java.lang.String getReceipient()

getExecutionContext

protected org.jbpm.graph.exe.ExecutionContext getExecutionContext()

getFrom

protected java.lang.String getFrom()

getFromName

protected java.lang.String getFromName()

setFrom

public void setFrom(java.lang.String from)

setFromName

public void setFromName(java.lang.String fromName)

setIgnoreException

public void setIgnoreException(boolean ignoreException)

setParam

public void setParam(java.util.Collection param)

setReceipient

public void setReceipient(java.lang.String receipient)

setReceipientEval

public void setReceipientEval(java.lang.String receipientEval)

setSubject

public void setSubject(java.lang.String subject)

setSubjectEval

public void setSubjectEval(java.lang.String subjectEval)

setTemplate

public void setTemplate(java.lang.String template)


Copyright © 2007 camunda GmbH. All Rights Reserved.