jBPM :: WorkItems 6.0.0.Alpha9

org.jbpm.process.workitem.email
Class EmailWorkItemHandler

java.lang.Object
  extended by org.jbpm.process.workitem.email.EmailWorkItemHandler
All Implemented Interfaces:
org.kie.runtime.process.WorkItemHandler

public class EmailWorkItemHandler
extends Object
implements org.drools.process.instance.WorkItemHandler

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.


Constructor Summary
EmailWorkItemHandler()
           
EmailWorkItemHandler(String host, String port, String userName, String password)
           
 
Method Summary
 void abortWorkItem(org.kie.runtime.process.WorkItem arg0, org.kie.runtime.process.WorkItemManager arg1)
           
protected static Email createEmail(org.kie.runtime.process.WorkItem workItem, Connection connection)
           
 void executeWorkItem(org.kie.runtime.process.WorkItem workItem, org.kie.runtime.process.WorkItemManager manager)
           
 Connection getConnection()
           
 void setConnection(String host, String port, String userName, String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailWorkItemHandler

public EmailWorkItemHandler()

EmailWorkItemHandler

public EmailWorkItemHandler(String host,
                            String port,
                            String userName,
                            String password)
Method Detail

setConnection

public void setConnection(String host,
                          String port,
                          String userName,
                          String password)

getConnection

public Connection getConnection()

executeWorkItem

public void executeWorkItem(org.kie.runtime.process.WorkItem workItem,
                            org.kie.runtime.process.WorkItemManager manager)
Specified by:
executeWorkItem in interface org.kie.runtime.process.WorkItemHandler

createEmail

protected static Email createEmail(org.kie.runtime.process.WorkItem workItem,
                                   Connection connection)

abortWorkItem

public void abortWorkItem(org.kie.runtime.process.WorkItem arg0,
                          org.kie.runtime.process.WorkItemManager arg1)
Specified by:
abortWorkItem in interface org.kie.runtime.process.WorkItemHandler

jBPM :: WorkItems 6.0.0.Alpha9

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.