Test the existsCustomer operation with the outbound module created
in Tutorial 1 using the WebSphere Integration Developer test module.
- If WebSphere Process Server is not started, use the following procedure
to start WebSphere Process Server in WebSphere Integration Developer:
- In WebSphere Integration Developer, open the Servers view by
clicking .
- To start WebSphere Process Server, right-click WebSphere
Process Server v6.0 and click Start.
- Switch to the Business Integration perspective.
- In WebSphere Integration Developer, right click FlatFileOutboundModule and
select .
- Expand Detailed Properties.
- 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
- 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
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.