public abstract class MailWorkflow extends Workflows.AsynchronousWorkflow
| Modifier and Type | Class and Description |
|---|---|
static class |
MailWorkflow.MailTransport
MailTransport
|
| Constructor and Description |
|---|
MailWorkflow() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createLogEntry(WfProcessInstance wfProcessInstance,
String name,
String description,
org.openmdx.base.jmi1.ContextCapable target,
javax.mail.Address address)
Create a log entry which correlates the entry with the email recipient in
case target is an email activity.
|
protected String |
doSendmail(javax.mail.Message message,
String envelopeSenderAddress)
Send message using sendmail.
|
void |
execute(WfProcessInstance wfProcessInstance)
Execute the workflow specified by wfProcessInstance.
|
protected static MailWorkflow.MailTransport |
getMailTransport(String mailServiceName,
String fallbackMailServiceName)
Get mail transport from pool.
|
boolean |
isAtomic()
The mail workflows are atomic, the may be run in parallel with other
workflows.
|
protected String |
setContent(javax.mail.Message message,
javax.mail.Session session,
javax.jdo.PersistenceManager pm,
org.openmdx.base.naming.Path targetIdentity,
org.openmdx.base.naming.Path wfProcessInstanceIdentity,
UserHome userHome,
Map<String,Object> params)
Set message content.
|
protected javax.mail.Address[] |
setRecipients(javax.mail.Message message,
javax.jdo.PersistenceManager pm,
org.openmdx.base.naming.Path targetIdentity,
EMailAccount eMailAccount,
String defaultFromAddress)
Collect recipients from target and email account and set corresponding
email addresses on message.
|
public boolean isAtomic()
isAtomic in class Workflows.AsynchronousWorkflowprotected String setContent(javax.mail.Message message, javax.mail.Session session, javax.jdo.PersistenceManager pm, org.openmdx.base.naming.Path targetIdentity, org.openmdx.base.naming.Path wfProcessInstanceIdentity, UserHome userHome, Map<String,Object> params) throws org.openmdx.base.exception.ServiceException
message - session - pm - targetIdentity - wfProcessInstanceIdentity - userHome - params - org.openmdx.base.exception.ServiceExceptionprotected javax.mail.Address[] setRecipients(javax.mail.Message message,
javax.jdo.PersistenceManager pm,
org.openmdx.base.naming.Path targetIdentity,
EMailAccount eMailAccount,
String defaultFromAddress)
throws org.openmdx.base.exception.ServiceException
message - pm - targetIdentity - eMailAccount - defaultFromAddress - org.openmdx.base.exception.ServiceExceptionprotected void createLogEntry(WfProcessInstance wfProcessInstance, String name, String description, org.openmdx.base.jmi1.ContextCapable target, javax.mail.Address address) throws org.openmdx.base.exception.ServiceException
address - wfProcessInstance - name - description - target - org.openmdx.base.exception.ServiceExceptionprotected String doSendmail(javax.mail.Message message, String envelopeSenderAddress)
message - protected static MailWorkflow.MailTransport getMailTransport(String mailServiceName, String fallbackMailServiceName) throws org.openmdx.base.exception.ServiceException
mailServiceName - fallbackMailServiceName - org.openmdx.base.exception.ServiceExceptionpublic void execute(WfProcessInstance wfProcessInstance) throws org.openmdx.base.exception.ServiceException
Workflows.AsynchronousWorkflowexecute in class Workflows.AsynchronousWorkfloworg.openmdx.base.exception.ServiceExceptionThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.