Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM :: Distribution 6.2.1-SNAPSHOT
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbpm.process.workitem.email
Class EmailWorkItemHandler

    java.lang.Object
      org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler
          org.jbpm.process.workitem.email.EmailWorkItemHandler

All Implemented Interfaces:
  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.

Field Summary

Fields inherited from class org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler
`logThrownException`

Constructor Summary
`EmailWorkItemHandler()`
`EmailWorkItemHandler(String host, String port, String userName, String password)`
`EmailWorkItemHandler(String host, String port, String userName, String password, String startTls)`

Method Summary
`void` | `abortWorkItem(WorkItem arg0, WorkItemManager arg1)` The given work item should be aborted.
`protected static Email` | `createEmail(WorkItem workItem, Connection connection)`
`void` | `executeWorkItem(WorkItem workItem, WorkItemManager manager)` The given work item should be executed.
`Connection` | `getConnection()`
`void` | `setConnection(String host, String port, String userName, String password)`
`void` | `setConnection(String host, String port, String userName, String password, String startTls)`

Methods inherited from class org.jbpm.process.workitem.AbstractLogOrThrowWorkItemHandler
`handleException, handleException, setLogThrownException`

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)

### EmailWorkItemHandler

    public EmailWorkItemHandler(String host,
                                String port,
                                String userName,
                                String password,
                                String startTls)

Method Detail

### setConnection

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

### setConnection

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

### getConnection

    public Connection getConnection()

### executeWorkItem

    public void executeWorkItem(WorkItem workItem,
                                WorkItemManager manager)

  Description copied from interface: `WorkItemHandler`
  The given work item should be executed.

  Parameters:
    `workItem` - the work item that should be executed
    `manager` - the manager that requested the work item to be executed

### createEmail

    protected static Email createEmail(WorkItem workItem,
                                       Connection connection)

### abortWorkItem

    public void abortWorkItem(WorkItem arg0,
                              WorkItemManager arg1)

  Description copied from interface: `WorkItemHandler`
  The given work item should be aborted.

  Parameters:
    `arg0` - the work item that should be aborted
    `arg1` - the manager that requested the work item to be aborted

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM :: Distribution 6.2.1-SNAPSHOT
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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