|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencrx.kernel.backend.Workflows.AsynchronousWorkflow
org.opencrx.application.mail.exporter.MailWorkflow
public abstract class MailWorkflow
MailWorkflow
| Nested Class Summary | |
|---|---|
static class |
MailWorkflow.MailTransport
MailTransport |
| Constructor Summary | |
|---|---|
MailWorkflow()
|
|
| Method Summary | |
|---|---|
protected void |
createLogEntry(WfProcessInstance wfProcessInstance,
String name,
String description,
ContextCapable target,
Address address)
Create a log entry which correlates the entry with the email recipient in case target is an email activity. |
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(Message message,
Session session,
javax.jdo.PersistenceManager pm,
Path targetIdentity,
Path wfProcessInstanceIdentity,
UserHome userHome,
Map<String,Object> params)
Set message content. |
protected Address[] |
setRecipients(Message message,
javax.jdo.PersistenceManager pm,
Path targetIdentity,
EMailAccount eMailAccount,
String defaultReplyEMailAddress)
Collect recipients from target and email account and set corresponding email addresses on message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailWorkflow()
| Method Detail |
|---|
public boolean isAtomic()
isAtomic in class Workflows.AsynchronousWorkflow
protected String setContent(Message message,
Session session,
javax.jdo.PersistenceManager pm,
Path targetIdentity,
Path wfProcessInstanceIdentity,
UserHome userHome,
Map<String,Object> params)
throws ServiceException
message - session - pm - targetIdentity - wfProcessInstanceIdentity - userHome - params -
ServiceException
protected Address[] setRecipients(Message message,
javax.jdo.PersistenceManager pm,
Path targetIdentity,
EMailAccount eMailAccount,
String defaultReplyEMailAddress)
throws ServiceException
message - pm - targetIdentity - eMailAccount - defaultReplyEMailAddress -
ServiceException
protected void createLogEntry(WfProcessInstance wfProcessInstance,
String name,
String description,
ContextCapable target,
Address address)
throws ServiceException
address - wfProcessInstance - name - description - target -
ServiceException
protected static MailWorkflow.MailTransport getMailTransport(String mailServiceName,
String fallbackMailServiceName)
throws ServiceException
mailServiceName - fallbackMailServiceName -
ServiceException
public void execute(WfProcessInstance wfProcessInstance)
throws ServiceException
Workflows.AsynchronousWorkflow
execute in class Workflows.AsynchronousWorkflowServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||