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 > Configure the module for outbound processing > Configure the module using the user-defined data type

Selecting a data type and operation name

Use the external service wizard to select a data type and name the operation associated with this data type. For outbound communication, the external service wizard gives you the choice of four different data types: simple email, generic email, generic email with business graph, and user-defined type. Each data type corresponds to a business object structure. Use the user-defined data type if you want to configure your own business object wrapper instead of using the generic email business object.

Specify the connection properties for the adapter to connect to the mail server.

You have chosen to specify a data binding for each operation.

To select the user-defined data type, name the operation associated with it, create a wrapper business object, and specify child business objects, follow this procedure.


Procedure

  1. In the Add, Edit, or Remove Operations window, click Add to create an operation.

  2. In the Specify the I/O Properties window, select the User defined email business object from The data type for the input operation list and click Next. For more information about data types and the types of emails they create, see the business object structures section in this documentation.

    You can select the Enable response on delivery check box to configure the outbound response from the mail server.

  3. In the Specify the I/O Properties window, type an Operation name.

  4. Click New for the Input type.

    Figure 1. Selecting the input type

  5. In Specify the Location window, provide the module name and the name of the folder where the wrapper business object (the input type) is to be generated. Click Next.

  6. In Specify the Properties window, provide the wrapper Business object name.

    1. Select the Generate a business graph for the business object check box.

    2. Specify the properties for the email type. Click Add to add child business objects to the table.
    You can generate the wrapper business object and specify the child business objects used inside the wrapper business object and specify which parts of the email you want to use (such as mailContent or attachment1).

    Figure 2. Specify the properties for the new business object

    In the Add/Edit Properties window, select either the mailContent or the Attachment1 as the email part. If you select the attachment1 part of the email, then you can also specify the default attachment name that is used with this business object.

    You can have a wrapper business object without having a mailContent business object, for example, if you are not sending any content in the email or if the email polled by the adapter does not have any content.

  7. When you finish adding child business objects to the table, click Finish. For each business object you add, a row is created in the table. The following figure shows the generated wrapper business object.

    Figure 3. The generated wrapper business object

  8. In the Specify the Properties window, click Finish.


Results

A data type is defined for the module and the operation associated with this data type is named. A wrapper business object is created, and the child business objects used inside the wrapper business object are specified.


What to do next

Generate the data binding configuration for the module.

Configure the module using the user-defined data type


Related concepts:

Business objects

The external service wizard