Package bpmn.handler.email_handler
Class EmailHandler
java.lang.Object
bpmn.handler.email_handler.EmailHandler
- All Implemented Interfaces:
TaskHandler
- Direct Known Subclasses:
SqlAttachmentsEmailHandler
- Author:
- Tim Urmancheev
Handler for sending emails via SMTP-server
SmtpConfiguration
.The handler behaves differently depending on whether DAO is set or not. When no DAO configured, "to" settings field is treated as an array of email addresses. Single email would be sent to all of them. If DAO is set, then actual email addresses (as well as copies and carbon copies) would be retrieved via it. In this case, "to" field is treated as an address of database cell where data is stored.
-
Field Summary
FieldsFields inherited from interface ru.cg.webbpm.modules.bpmn.beans.handler.TaskHandler
contextLocal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected List<AttachmentModel>
void
setEmailService
(EmailService emailService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.modules.bpmn.beans.handler.TaskHandler
clearContext, getContext, setContext
-
Field Details
-
smtpConfiguration
-
dao
-
to
-
copy
-
subject
-
body
-
attachments
-
addressArrayDelimiter
-
bodyArrayDelimiter
-
emailListeners
-
-
Constructor Details
-
EmailHandler
public EmailHandler()
-
-
Method Details
-
setEmailService
-
executeHandler
public void executeHandler()- Specified by:
executeHandler
in interfaceTaskHandler
-
getAttachmentModels
-