IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > Email > Configure the module for deployment

Create a simple service with the adapter pattern wizard

Adapter patterns provide a quick and easy way of creating a simple service with an adapter.

To use the WebSphere Adapter for Email pattern wizard, create a module for the service.

The following adapter pattern is available for WebSphere Adapter for Email:

Adapter pattern
Adapter pattern Description
Simple outbound email pattern The "create an outbound Email service to send mail" pattern creates a service that sends simple email messages using a mail server.

In this example, create an outbound service that creates simple alert emails and send them to a mail server for distribution.

Complete the following steps to create this service with the adapter pattern wizard.


Procedure

  1. Right-click the module within the Business Integration section of the IBM Integration Designer window and select New > External Service. The Select the Service Type or Registry window opens.

  2. Select Simple: Create an outbound e-mail service to send mail and click Next.

    Figure 1. Select the Service Type or Registry window

  3. In the E-mail service name window, change the name to something meaningful such as EmailOutboundInterface and click Next.

    Figure 2. E-mail service name window

  4. In the E-mail Server window, specify both the E-mail server host name and the Port fields.

    For example, connecting to local host on port 25. Click Next.

  5. In the E-mail server security credential window, select either No security, Using an existing JAAS alias or Using user name and password and click Next.

    Figure 3. E-mail server security credential window


Results

The outbound service is created, which includes the following artifacts:

Artifacts for the outbound service
Artifact Name Description
Import EmailOutboundInterface The import exposes the module internally, in this case, to the mail server.
Interface EmailOutboundInterface This interface contains the operation that can be started.
Operation createEmail createEmail is the only operation in the interface.

Configure the module for deployment


Previous topic: Defining business objects


Next topic: Starting the external service wizard