WebSphere Adapter for Email

Business object structure

The adapter defines and generates three default business objects during enterprise service discovery– EmailBO, HeaderBO, and MailAttachmentBO. The EmailBO business object is a wrapper business object that contains the HeaderBO and MailAttachmentBO business objects as children. These default objects are the same for both inbound and outbound communication.

EmailBO

The EmailBO business object contains all of the details required by the adapter to process inbound and outbound events. As shown in the following figure, it is a parent object that contains the business object structures for the mail headers, mail content, and mail attachments as children.

Note: To use custom headers, you must note them in the headerList property of the EmailBO object.
Image shows how the HeaderBO and MailAttachmentBO business objects are children of the EmailBO business object.

EmailBO business object structure

HeaderBO

Each HeaderBO business object consists of a header name and a header value. The header business object is constructed dynamically at runtime, after the adapter is deployed.

The HeaderBO business object stores all standard (RFC822) e-mail headers and any custom user headers defined in the EmailBO business object.
Note: The Bcc and Resent-bcc header values cannot be retrieved by the adapter from an e-mail message.

MailAttachmentBO

Each MailAttachmentBO business object consists of an attachment name and one e-mail attachment's worth of data. Each e-mail attachment is stored in its own MailAttachmentBO object.

During inbound processing, the attachments are parsed and the contents sent out as business objects. One attachment gets parsed into one MailAttachmentBO business object.

During outbound processing, the application server sets the data within the MailAttachmentBO business object during the request. The data in this business object then becomes an e-mail attachment when the e-mail message is created by the adapter.

Note: MailAttachmentBO objects can store e-mail attachments of any user-defined type (such as Customer or PurchaseOrder).
Related concepts
Business object application-specific information
Business object verb support
Custom business objects
Business objects
Related reference
Business object properties

Terms of use |

Last updated: Mon 30 Oct 2006 03:44:37

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)