To run the Parse Directory Listing Example in your environment, configure the values of the configuration properties used by the FTP Endpoint to point to your FTP Server. In addition, your FTP Server must produce the directory listing in the same format as expected by the Flat File Schema.
Complete following steps only if you plan on running the Parse Directory Listing Example:
To only view and learn more about the example, complete the procedure in the Parse Directory Listing Example section.
Edit and test the FTP configuration properties of the FTPParseDirListingExample in Studio:
Configure the root directory of the FTP Server:
\input \processFailed \processWidgetRUs \processAcmeInc \processNewCompany
Determine if your FTP Server generates the file listing in the same format as the Flat File Schema included in this example:
-rw-r--r-- 1 551 551 65 May 3 11:39 bidAcmeInc.txt -rw-r--r-- 1 551 551 43 May 3 11:39 bidBudgetManufacture.txt -rw-r--r-- 1 551 551 0 May 3 11:39 bidCrankCo.txt -rw-r--r-- 1 551 551 73 May 3 11:39 bidSamAndSons.txt -rw-r--r-- 1 551 551 33 May 3 11:39 bidWidgetRUs.txtIf the directory format is different, you can alter the Flat File Schema called parseDirListing.
To open the Flat File Schema used in this example, in the Project tab, double-click on the parseDirListing in the Flat File Schema folder. Copy and paste the output of the Test button of the FTP List Files activity to a file and then open the file in the Test tab of the Flat File Schema Editor. Change the nodes of the Flat File Schema to reflect the directory listing. The size node is used by the "If size less or equal 0" branch of the If..Then activity. Make sure a value is provided for the size node during run time.
Run the FTPParseDirListingExample:
From Studio, publish the FTPParseDirListingExample project. From the Studio toolbar, select
.From the Web Management Console (WMC), deploy the FTPParseDirListingExample project. For more information, see the WMC Online help or Step 11: Publish and Deploy the Completed Integration Project in the Developing the BookOrder Project section of the Getting Started Guide.