文件检测属性页 |
通过“文件检测”属性页可以为“文件”集成配置以下属性:
检测选项
位置: Specifies the file system where the folder that you want to be monitored exists. File systems or locations can include local file systems or network shares, Librarian, or a supported cloud storage location. For more information about supported cloud storage locations, see Administration Console's
要扫描的文件夹: 指定 Integration Service 需要用来查找文件的文件夹位置。 You can type the folder location or click Browse to locate and select the desired folder. Alternatively, you can add a variable that specifies the folder to scan, or add a special character to the value you have entered.
扫描子文件夹: When enabled, the Integration Service will also monitor all sub-folders of the folder specified by the Folder to Scan property.
Folder is scanned by integrations on multiple servers: 启用此选项后,会使扫描文件夹对其他应用程序或实例处于打开状态,并且不会在扫描文件夹中创建独有的锁定文件标记。
扫描方法: 指定 Integration Service 将会用来为触发器文件的到来监视扫描文件夹的方法。
Notification and Polling: 指定 Integration Service 将继续监视扫描文件夹并在时间间隔中扫描文件夹。 如果您对文件系统的可靠性有担忧,那么此选项可能会有用。 如果继续扫描时会丢失事件,那么轮询扫描将会确保检测到该事件。 启用此选项后,可以毫秒、秒、分钟或小时为单位指定轮询间隔。
Notifications Only: 指定 Integration Service 会继续监视扫描文件夹。
Polling Only: 指定 Integration Service 会在时间间隔中扫描扫描文件夹。 启用此选项后,可以毫秒、秒、分钟或小时为单位指定轮询间隔。
轮询间隔: Specifies how often the Integration Service scans for the file, Available when Notification and Polling or Polling Only is selected for the Scan Method.
文件样式: 指定要查找的文件的筛选器。 默认为 *.dat。 如果希望,可以输入一个不同的文件扩展名。 Alternatively, you can add a variable that specifies the file pattern, or add a special character to the value you have entered.
使用正则表达式: 启用此选项后,指定 Integration Service 将会使用正则表达式来标识文件样式。 Once this option is enabled, you can add regular expression modifiers to the previous property for more control over the search criteria.
最小文件大小: 指定 Integration Service 接受触发器文件作为集成触发器时,触发器文件必须具备的最小文件大小。
最大文件大小: 指定 Integration Service 接受触发器文件作为集成触发器时,触发器文件不可超过的最大文件大小。
File Idle Time: Specifies the amount of time that the Integration Service will wait before it processes the trigger file. The Integration Service begins counting from the time the file was last written.
锁定的文件超时: 指定尝试打开检测到的最初发现为其他应用程序锁定的文件的时间。
多个文件排序顺序
在有不只一个文件符合指定文件样式时,定义 Integration Service 将会在指定文件夹中处理文件的顺序。 如果在属性页中未指定任何排序顺序,那么默认为按创建时间(升序)排序,然后按文件名称(升序)排序。 可以指定零到四个排序条件。
顺序: 指定排序条件应用到指定文件夹中匹配文件的顺序。
Sort Field: 指定应用到匹配文件的条件。
方向: 指定将排序字段条件应用到匹配文件时,使用升序还是降序。
Add Sort Criteria: 用于添加其他排序条件。
检测后的操作
Specifies the action that you want to be performed on the trigger file after it has been detected by the Integration Service.
操作: 用于选择应用到触发器文件的操作。
无: 指定不会将任何操作应用到触发器文件。
Rename File: 指定触发器文件已重命名。
Delete File: 指定触发器文件已删除。
Move File: 指定触发器文件已移动到其他位置。
Move to Folder: 指定移动触发器文件的文件夹位置。 You can type the folder location or click Browse to locate and select the desired folder. Alternatively, you can add a variable that specifies the destination folder, or add a special character to the value you have entered. Available when Move File has been specified.
New Extension: 指定在重命名或移动文件时,希望应用到文件的文件扩展名。 输入文件扩展名。 Alternatively, you can add a variable that specifies the file extension, or add a special character to the value you have entered.. Available when either Rename File or Move File has been specified.
如果文件已存在,则替换它: 在移动或重命名触发器文件时,指定将会删除任何之前存在的具有相同名称的文件。 Available when either Rename File or Move File has been specified.
通过附加序列号使文件名唯一: Specifies that a serial number will be appended to the file name. Available when either Rename File or Move File has been specified.
Make file name unique by appending time stamp: 指定会将一个时间戳附加到文件名称。 Available when either Rename File or Move File has been specified.
失败后的操作
Specifies the actions that you want to be performed on the trigger file after one or more of the integration actions has failed.
操作: 用于选择应用到触发器文件的操作。
无: 指定不会将任何操作应用到触发器文件。
Rename File: 指定触发器文件已重命名。
Delete File: 指定触发器文件已删除。
Move File: 指定触发器文件已移动到其他位置。
Move to Folder: 指定移动触发器文件的文件夹位置。 You can type the folder location or click Browse to locate and select the desired folder. Alternatively, you can add a variable that specifies the destination folder, or add a special character to the value you have entered. Available when Move File has been specified.
New Extension: 指定在重命名或移动文件时,希望应用到文件的文件扩展名。 输入文件扩展名。 Alternatively, you can add a variable that specifies the file extension, or add a special character to the value you have entered.. Available when either Rename File or Move File has been specified.
如果文件已存在,则替换它: 在移动或重命名触发器文件时,指定将会删除任何之前存在的具有相同名称的文件。 Available when either Rename File or Move File has been specified.
通过附加序列号使文件名唯一: Specifies that a serial number will be appended to the file name. Available when either Rename File or Move File has been specified.
Make file name unique by appending time stamp: 指定会将一个时间戳附加到文件名称。 Available when either Rename File or Move File has been specified.