org.jbpm.process.workitem.email
Class EmailWorkItemHandler
java.lang.Object
org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler
org.jbpm.process.workitem.email.EmailWorkItemHandler
- All Implemented Interfaces:
- org.kie.api.runtime.process.WorkItemHandler
public class EmailWorkItemHandler
- extends AbstractLogOrThrowWorkItemHandler
WorkItemHandler for sending email.
Expects the following parameters:
- "From" (String): sends an email from the given the email address
- "To" (String): sends the email to the given email address(es),
multiple addresses must be separated using a semi-colon (';')
- "Subject" (String): the subject of the email
- "Text" (String): the body of the email (using HTML)
Is completed immediately and does not return any result parameters.
Sending an email cannot be aborted.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmailWorkItemHandler
public EmailWorkItemHandler()
EmailWorkItemHandler
public EmailWorkItemHandler(String host,
String port,
String userName,
String password)
setConnection
public void setConnection(String host,
String port,
String userName,
String password)
getConnection
public Connection getConnection()
executeWorkItem
public void executeWorkItem(org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager manager)
createEmail
protected static Email createEmail(org.kie.api.runtime.process.WorkItem workItem,
Connection connection)
abortWorkItem
public void abortWorkItem(org.kie.api.runtime.process.WorkItem arg0,
org.kie.api.runtime.process.WorkItemManager arg1)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.