org.opencrx.application.mail.exporter
Class MailWorkflow

java.lang.Object
  extended by org.opencrx.application.mail.exporter.MailWorkflow
All Implemented Interfaces:
ASynchWorkflow_1_0
Direct Known Subclasses:
ExportMailWorkflow, SendMailNotificationWorkflow, SendMailWorkflow

public abstract class MailWorkflow
extends Object
implements ASynchWorkflow_1_0


Constructor Summary
MailWorkflow()
           
 
Method Summary
 void execute(WfProcessInstance wfProcessInstance)
          Execute the workflow specified by wfProcessInstance.
protected  String setContent(Message message, Session session, javax.jdo.PersistenceManager pm, Path targetIdentity, Path wfProcessInstanceIdentity, UserHome userHome, Map<String,Object> params)
           
protected  Address[] setRecipients(Message message, javax.jdo.PersistenceManager pm, Path targetIdentity, EMailAccount eMailAccount, String defaultReplyEMailAddress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailWorkflow

public MailWorkflow()
Method Detail

setContent

protected String setContent(Message message,
                            Session session,
                            javax.jdo.PersistenceManager pm,
                            Path targetIdentity,
                            Path wfProcessInstanceIdentity,
                            UserHome userHome,
                            Map<String,Object> params)
                     throws ServiceException
Throws:
ServiceException

setRecipients

protected Address[] setRecipients(Message message,
                                  javax.jdo.PersistenceManager pm,
                                  Path targetIdentity,
                                  EMailAccount eMailAccount,
                                  String defaultReplyEMailAddress)
                           throws ServiceException
Throws:
ServiceException

execute

public void execute(WfProcessInstance wfProcessInstance)
             throws ServiceException
Description copied from interface: ASynchWorkflow_1_0
Execute the workflow specified by wfProcessInstance. wfProcessInstance may be modified by execute.

Specified by:
execute in interface ASynchWorkflow_1_0
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.