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

Configure the data binding

Data bindings read the fields in a business object and fill the corresponding fields in an email. In the external service wizard, you add a data binding to your module and configure it to correspond with your data type. This way, the adapter knows how to populate the fields in an email with information it receives in the business object.

You must enter service configuration properties for the connection to the mail server.

You have defined the data type for the module and named the operation associated with this data type. You have chosen to specify a data binding for each operation.

To browse for or create a data binding for the module, follow this procedure.

The user-defined data type can only be used in a data transformation (non pass-through) mode. You cannot use the unstructured content business object.

Data bindings can be configured before running the external service wizard using IBM Integration Designer. To do this configuration, select New > Configure Binding Resource in IBM Integration Designer and complete the data binding windows described in this documentation.


Procedure

  1. In the Specify the I/O Properties window, click Select next to the Data format field.

  2. In the Select a Data Format Transformation window, select the Use existing data format transformation from the list option. From the list, select EmailFixedStructuredDataBinding. To configure a custom data binding, select the Select your custom data format transformation from the workspace option. A custom data binding, placed in the class path, shows when this option is selected. Click Next.

    Figure 1. Selecting the data binding

    When you configure the EmailFixedStructuredDataBinding, you create a custom data type with the required mail content and the attachment business objects.

  3. In Specify the Data Transformation Properties window, click Next.

    This window is used for configuring the data handlers.

  4. In Configure a New Data Transformation window, provide the data binding configuration details.

    1. In the Configure a New Data Transformation window, the Module defaults to the module name you typed earlier in the wizard. If you do not want to create a data binding for this module, select New to create a module.

      Figure 2. Naming the data binding configuration

    2. If you want to select a new folder for the artifact, click Browse and select a new folder location. If you do not browse for a new folder location, the artifacts are created in the root directory for the module.
    3. Type a Name for the data binding configuration and click Finish.


Results

A data binding is configured for use with the module.


What to do next

Configure business object properties and data handlers.

Configure the module using the user-defined data type