Including and Excluding Files

4-40 Oracle Fusion Middleware Users Guide for Technology Adapters Table 4–3 lists details of Java regex constructs. Note: Do not begin JDK regex pattern names with the following characters: plus sign +, question mark ?, or asterisk . Table 4–3 Java Regular Expression Constructs Matches Construct Characters - The character x x The backslash character \\ The character with octal value 0n 0 = n = 7 \0n The character with octal value 0nn 0 = n = 7 \0nn The character with octal value 0mnn 0 = m = 3, 0 = n = 7 \0mnn The character with hexadecimal value 0xhh \xhh The character with hexadecimal value 0xhhhh \uhhhh The tab character \u0009 \t The new line line feed character \u000A \n The carriage-return character \u000D \r The form-feed character \u000C \f The alert bell character \u0007 \a The escape character \u001B \e The control character corresponding to x \cx - - Character classes - a, b, or c simple class [abc] Any character except a, b, or c negation [abc] a through z or A through Z, inclusive range [a-zA-Z] a through d, or m through p: [a-dm-p] union [a-d[m-p]] d, e, or f intersection [a-z[def]] a through z, except for b and c: [ad-z] subtraction [a-z[bc]] a through z, and not m through p: [a-lq-z]subtraction [a-z[m-p]] - - Predefined character classes - Any character may or may not match line terminators - A digit: [0-9] \d A nondigit: [0-9] \D A white space character: [ \t\n\x0B\f\r] \s A nonwhitespace character: [\s] \S A word character: [a-zA-Z_0-9] \w Oracle JCA Adapter for FilesFTP 4-41 For details about Java regex constructs, go to http:java.sun.comj2se1.5.0docsapi

4.3.1.3.3 File Include and Exclude

The FileList operation does not expose the java.file.IncludeFiles property. This property is configured while designing the adapter interaction and cannot be overridden via headers, for example: adapter-config name=ListFiles adapter=File Adapter xmlns=http:platform.integration.oracleblocksadapterfwmetadata connection-factory location=eisFileAdapter UIincludeWildcard=.txt adapterRef= endpoint-interaction portType=FileListing_ptt operation=FileListing interaction-spec className=oracle.tip.adapter.file.outbound.FileListInteractionSpec property name=PhysicalDirectory value=INP_DIR property name=PhysicalDirectory value=INP_DIR property name=Recursive value=true property name=Recursive value=true property name=IncludeFiles value=.\.txt interaction-spec endpoint-interaction adapter-config In this example, IncludeFiles, once set, cannot be changed.

4.3.1.3.4 Debatching Multiple Inbound Messages

You can select whether incoming files have multiple messages, and specify the number of messages in one batch file to publish. When a file contains multiple messages and this check box is selected, this is referred to as debatching. Nondebatching is applied when the file contains only a single message and the check box is not selected. Debatching is supported for native and XML files.

4.3.1.4 File Polling

The File Polling page of the Adapter Configuration Wizard shown in Figure 4–22 enables you to specify the following inbound polling parameters: ■ The frequency with which to poll the inbound directory for new files to retrieve. A nonword character: [\w] \W Greedy quantifiers - X, once or not at all X? X, zero or more times X X, one or more times X+ X, exactly n times X{n} X, at least n times X{n,} X, at least n, but not more than m times X{n,m} Table 4–3 Cont. Java Regular Expression Constructs Matches Construct 4-42 Oracle Fusion Middleware Users Guide for Technology Adapters ■ The minimum file age of files to retrieve. For example, this polling parameter enables a large file to be completely copied into the directory before it is retrieved for processing. The age is determined by the last modified time stamp. For example, if you know that it takes three to four minutes for a file to be written, then set the minimum age to five minutes. If a file is detected in the input directory and its modification time is less than five minutes older than the current time, then the file is not retrieved because it is still potentially being written to. Figure 4–22 The Adapter Configuration Wizard-File Polling Page Using Trigger Files By default, polling by inbound Oracle File and FTP Adapters start as soon as the endpoint is activated. However, if you want more control over polling, then you can use a file-based trigger. Once the Oracle File or FTP Adapter finds the specified trigger file in a local or remote directory, it starts polling for the files in the inbound directory. For example, a BPEL process is writing files to a directory and a second BPEL process is polling the same directory for files. If you want the second process to start polling the directory only after the first process has written all the files, then you can use a trigger file. You can configure the first process to create a trigger file at the end. The second process starts polling the inbound directory once it finds the trigger file. The trigger file directory can be the same as the inbound polling directory or different from the inbound polling directory. However, if your trigger file directory and the inbound polling directory are the same, then you should ensure that the name of the trigger file is not similar to the file filter specified in the Adapter Configuration page shown in Figure 4–21 . The content of a trigger file is never read and therefore should not be used as payload for an inbound receive activity. Note: You must not manually change the value of polling parameters in JCA files. You must use the Adapter Configuration Wizard to modify this parameter.