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 > Flat Files > Configure the module for deployment > Configure the module for outbound processing

Selecting the operation and data type

Use the external service wizard to select the outbound operation to access functions on the local file system and the data type to be used with it. The operations supported are Create, Append, Overwrite, Delete, Exists, List, and Retrieve. The external service wizard gives you a choice of three data types: generic FlatFile business object, generic FlatFile business object with business graph, and user-defined type. Each data type corresponds to a business object structure.

Specify the connection properties for the adapter to connect to the local file system before you can complete the steps given here.

To select an outbound operation and the data type to be used with it, 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 an outbound operation from the Operation kind list.

  3. In the Data type for the operation list, select a data type. Click Next. In this example, the user-defined data type is selected. For Delete, Retrieve, Exists, and List operations, only the generic data type (generic FlatFile business object or generic FlatFile business object with business graph) is supported as input. If you select user-defined type with one of these operations, you must provide a user-defined data binding to support it.

    For Create, Append, and Overwrite operations, the choices are user-defined type, generic FlatFile business object, and generic FlatFile business object with business graph. For more information about data types, see, Business object structures.

  4. Select the Enable response type for the operation check box for Create, Append, and Overwrite operations, if you want the file name returned or if you are generating a unique file name or enabled file sequencing. By default, the Enable response type for the operation check box is selected for the Exists, List, and Retrieve operations because output is required for these operations. For the Delete operation, select the Enable response type for the operation check box if you want a value of true returned when the operation is successful. Click Next.

    Figure 1. Naming the operation and specifying the input data type

  5. In the Specify the I/O Properties window, type an Operation name. Name the operation something meaningful.

    Names cannot contain spaces.

    By default, the data type for the output is specified as CreateResponse or CreateResponseBG.

  6. Select the Input type. Click Browse and select the business object you created earlier.

    If you specified a generic data type such as generic FlatFile business object or generic FlatFile business object with business graph, the Input type is specified by default to FlatFile or FlatFileBG.


Results

A data type is defined for the module and the operation associated with this data type is named.


What to do next

Add and configure a data binding to be used with the module.

Configure the module for outbound processing


Previous topic: Setting deployment and runtime properties


Next topic: Configure the data binding