public class MailPlugin
extends org.imixs.workflow.engine.plugins.MailPlugin
The Plugin translates recipient addresses with the mail address stored in the users profile
In addition this plugin adds the attachments from a snapshot workItem into
the mail body if the tag
<attachments>order.pdf</attachments>
<attachments><itemvalue>_ordernumber</itemvalue>.pdf</attachments>
An Attachment can also be taken from a textblock. *
<attachments textblock="my_block"></attachments>
| Modifier and Type | Field and Description |
|---|---|
static String |
INVALID_EMAIL |
static String |
PROFILESERVICE_NOT_BOUND |
static String |
PROPERTYSERVICE_NOT_BOUND |
static String |
SNAPSHOTID |
| Constructor and Description |
|---|
MailPlugin() |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.internet.InternetAddress |
getInternetAddress(String aAddr)
this helper method creates an internet address from a string if the string
has illegal characters like whitespace the string will be surrounded with "".
|
org.imixs.workflow.ItemCollection |
loadTextBlock(String name)
Helper method to load a text-block workitem
|
org.imixs.workflow.ItemCollection |
run(org.imixs.workflow.ItemCollection documentContext,
org.imixs.workflow.ItemCollection documentActivity)
This method adds the attachments of the blob workitem to the MimeMessage
|
close, getBody, getCharSet, getContentType, getFrom, getMailMessage, getMailSession, getMultipart, getRecipients, getRecipientsBCC, getRecipientsCC, getReplyTo, getSubject, initMailMessage, isHTMLMail, setCharSet, transformXSLBodypublic static String SNAPSHOTID
public static String PROFILESERVICE_NOT_BOUND
public static String PROPERTYSERVICE_NOT_BOUND
public static String INVALID_EMAIL
public org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection documentContext,
org.imixs.workflow.ItemCollection documentActivity)
throws org.imixs.workflow.exceptions.PluginException
run in interface org.imixs.workflow.Pluginrun in class org.imixs.workflow.engine.plugins.MailPluginorg.imixs.workflow.exceptions.PluginExceptionpublic javax.mail.internet.InternetAddress getInternetAddress(String aAddr) throws javax.mail.internet.AddressException
getInternetAddress in class org.imixs.workflow.engine.plugins.MailPluginaAddr - javax.mail.internet.AddressExceptionpublic org.imixs.workflow.ItemCollection loadTextBlock(String name)
name - Imixs-Office-WorkflowCopyright © 2011–2022 Imixs Software Solutions GmbH. All rights reserved.