Invoke Operations Page
Enter the File Adapter operation properties.
Choose one of the following operations to perform on files. Depending on which operation you choose, you are presented with different options and parameters that apply specifically to that operation. All operations support dynamic file name and directory through mapping.
-
Read File: Reads a file from the file location. This operation reads a single file. If you have not selected any schema, a file size of up to 1 GB is supported. If you have selected the schema, a file size of up to 50 MB is supported.
-
Write File: Writes a single file onto the target file server.
-
List Files: Lists the names of the files in the input directory. This operation returns the list of files without any data. It is similar to running the
ls
command in Linux. -
Move a File: Moves a file from one location to another on the same target file server.
-
Delete a File: Deletes a single file on the file server.
-
Download File: Specifies a directory to be used for staged activity. Use this directory to stage large files for processing. This operation downloads a single file in the logical directory you specify. File size support is up to 1 GB.
Note:
If you want to read/download multiple files, use the following integration pattern.File List File (Operation) > For Each Loop > File Read File (Operation) > End For Each Loop
The following tables describe the key information on the File Adapter invoke Operations page. Depending on which operation you choose, you are presented with different options and parameters that apply specifically to that operation. Each table corresponds to a specific operation.
Each operation can be performed against ZIP and GZIP file formats.
Read File
Note:
Elements marked with “+” can be mapped in the mapper and can be passed dynamically at runtime.When using the connectivity agent, the Read File operation when used without a schema supports files of up to 1 GB in size. This limit is the same as the Download File operation. If you are using a schema for transformation, the file size limit is 50 MB. You can specify sample XML and JSON documents for the payload when configuring the File Adapter for read operations.
Element | Description |
---|---|
Input Directory |
The name of the directory that contains the file to be read. For example, |
File Name |
The name of the file to be read. The name can also be provided by the mapper. File sizes of up to 50 MB are supported. |
Write File
When using the connectivity agent, the Write File operation when used without a schema supports files of up to 1 GB in size. This limit is the same as the Download File operation. If you are using a schema for transformation, the file size limit is 50 MB. You can specify sample XML and JSON documents for the payload when configuring the File Adapter for write operations.
Element | Description |
---|---|
Specify an Output Directory |
The directory path to which to write the file. For example, |
File Name Pattern |
The pattern of file names to transfer to the output directory. Use the pattern inside Note: Use of these patterns leads to message loss if the messages are written to the file system at the same time or files are written to a separate node. To ensure that files are not overwritten, use the mapper to assign the file names explicitly. You can use XPath functions to ensure that file names are unique. |
Append to Existing File |
If selected, the file content is appended to the existing file content and is not overwritten. Notes:
|
List Files
Element | Description |
---|---|
Input Directory |
The name of the directory that contains the file to be read. For example, |
File Name Pattern |
Specify a wildcard pattern to be used for listing files from the input directory. For example, |
Max Files |
The maximum number of file names that should be listed. The maximum value is 1000. Note: The List File operation returns the file list in a sorted order according to the last modified time. If you selected 10 as the maximum number of files and the last modified time of the eleventh file is the same as the tenth file, then the eleventh file is also added. This continues until you get a file with a different timestamp. For example, assume the directory has 15 files and you select 10 as the maximum number of files. If the tenth, eleventh, twelfth, and thirteenth files have the same time stamp, then the list file returns thirteen files. |
Minimum Age |
The minimum age in seconds for files to be displayed. For example, if the last time a file was modified is 02:28:45 AM and the minimum age is defined as 80 seconds, the file will not be listed at 02:29:00 AM and 02:30:00 AM. It will be listed after 02:30:05. |
Process Files Recursively |
List files within directories recursively beneath the input directory. |
Move a File
Element | Description |
---|---|
Directory Path |
The name of the directory that contains the file to be moved. For example, |
File Name |
The name of the file to be moved. There is no limit to the size of the file to move. |
Target Directory Path |
The name of the directory to which the file will be moved. |
Target File Name |
The name of the file as it will be written in the target directory. |
Overwrite File | Select to overwrite the file in the target directory. |
Delete a File
Element | Description |
---|---|
Directory Path |
The directory path to the file you wish to delete. |
File Name |
The name of the file to delete. |
Download File
The Download File operation enables you to map the download directory dynamically. This works fine for new integrations. You can also edit an existing Download File operation in the Adapter Endpoint Configuration Wizard to add more file download operations, then click Done to regenerate the adapter artifacts. You can download file sizes of up to 1 GB.
Using the Download File operation with the connectivity agent enables you to upload the file from the connectivity agent server to Oracle Integration. This operation enables you to download and upload files of up to 1 GB in size. This operation may take more time depending on the network conditions between the file server and the connectivity agent and the connectivity agent and Oracle Integration.
Element | Description |
---|---|
Input Directory |
Specify the name of the directory that contains the file to be read. For example, |
File Name |
The name of the file to download. This can be overridden using the mapper. |
Download Directory |
The name of the directory to be used for stage file action. See Processing Files in Scheduled Integrations with a Stage File Action. Do not enter the directory path in double quotes. The quotes are mistakenly included as part of the directory name. |