Testing outbound with data transformation for the exists operation

Test the existsCustomer operation with the outbound module created in Tutorial 1 using the WebSphere Integration Developer test module.

  1. If WebSphere Process Server is not started, use the following procedure to start WebSphere Process Server in WebSphere Integration Developer:
    1. In WebSphere Integration Developer, open the Servers view by clicking Window > Show View > Servers.
    2. To start WebSphere Process Server, right-click WebSphere Process Server v6.0 and click Start.
  2. Switch to the Business Integration perspective.
  3. In WebSphere Integration Developer, right click FlatFileOutboundModule and select Test > Test Module.
  4. Expand Detailed Properties.
  5. In the Events window, select existsCustomer from the Operation list and provide the following Initial request parameters:
    Name Value
    customerName Leave empty
    Address Leave empty
    City Leave empty
    State Leave empty
    fileName filecreate.txt
    directoryPath C:\flatfiledir\outputdir
    fileContentEncoding UTF-8
    includeEndBODelimiter <null>
    Staging directory <null>
    Figure 1. Events page with the existsCustomer operation selected
    This image is described in the surrounding text.
  6. Click Continue.

Result

You will see the following screen with the ExistsResponseBG returned and the value of doesFileExist is true, indicating that file exists in the specified directory.
Figure 2. Window containing the existsCustomer results
This image is described in the surrounding text.
Repeat the above test for a file name that does not exist and verify that the returned business object's value for doesFileExist is false.

Terms of use |


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