The prjBatch_Inbound_FTPIn_LocalFileOut Project demonstrates the following:
The BatchInbound Adapter subscribes to a local directory and periodically checks for a specific file. If the file is present, it renames the file with a GUID, and triggers the Java Collaboration.
The BatchFTP Adapter gets the associated target file from the FTP external system and writes the file content to the BatchLocalFile Adapter payload.
The BatchLocalFile Adapter gets the GUID file name from the BatchInbound Adapter, and publishes its payload to a file in a local directory.