Proxy Support Oracle File and FTP Adapters Features

4-10 Oracle Fusion Middleware Users Guide for Technology Adapters

4.2.13 File-Based Triggers

The Oracle File and FTP Adapters provide support for file-based triggers, which can be used to control inbound adapter endpoint activation. For information about how to use file-based triggers, see Section 4.3.1.4, File Polling.

4.2.14 Pre-Processing and Post-Processing of Files

The process modeler may encounter situations where files must be pre-processed before they are picked up for processing or post-processed before the files are written out to the destination folder. For example, the files that the Oracle File and FTP adapters receive may be compressed or encrypted and the adapter must decompress or decrypt the files before processing. In this case you must use a custom code to decompress or decrypt the files before processing. The Oracle File and FTP Adapters supports the use of custom code that can be plugged in for pre-processing or post-processing of files. The implementation of the pre-processing and post-processing of files is restricted to the following communication modes of the Oracle File and FTP Adapters: ■ Read File or Get File ■ Write File or Put File ■ Synchronous Read File ■ Chunked Read This section contains the following topics: ■ Section 4.2.14.1, Mechanism For Pre-Processing and Post-Processing of Files ■ Section 4.2.14.2, Configuring a Pipeline ■ Section 4.2.14.3, Using a Re-Entrant Valve For Processing Zip Files ■ Section 4.2.14.4, Configuring Batch Notification Handler

4.2.14.1 Mechanism For Pre-Processing and Post-Processing of Files

The mechanism for pre-processing and post-processing of files is configured as pipelines and valves. This section describes the concept of pipelines and valves. A pipeline consists of a series of custom-defined valves. A pipeline loads a stream from the file system, subjects the stream to processing by an ordered sequence of valves, and at the end of the processing returns the modified stream to the adapter. A valve is the primary component of execution in a processing pipeline. A valve processes the content it receives and forwards the processed content to the next valve. For example, in a scenario where the Oracle File and FTP Adapters receive files that are encrypted and zipped, you can configure a pipeline with an unzip valve followed by a decryption valve. The unzip valve extracts the file content before forwarding it to the decryption valve, which decrypts the content and the final content is made available to the Oracle File or FTP Adapter as shown in Figure 4–4 .