File Watcher Settings
- Last UpdatedJun 06, 2024
- 2 minute read
The File Watcher settings are used to set a wait time for the file copy operation to complete. An event is generated after the copy operation. File Watcher waits for this event to trigger a workflow. The functioning of File Watcher can be better understood by the following example:
Example
A user has set the File Watcher with the following settings:
Wait for file copy iteration Count = 200
Wait for file copy first attempt (ms) = 2000
Wait for file copy next attempt (ms) = 4000
The above settings indicate that when a file copy operation is executed File Watcher does an iterative check for 200 times if the copy operation is complete. In the first attempt, File Watcher waits for 2000ms (2 sec) to check if the copy operation is complete. If it is complete the iterative check is terminated and a File Watcher event is triggered. If the copy operation is not completed the iteration count is incremented by one and during the second and subsequent attempts the File Watcher waits for 4000ms (4 sec). This activity continues till the copy operation is complete.
Thus File Watcher will wait for approximately 13 minutes (199 x 4000ms+ 2000ms) for a file copy operation to complete. An event is triggered as soon as the file copy operation is complete and File Watcher terminates the iterative check.
The example above indicates that you have to set the File Watcher values based on your requirements. If you need to copy a file with a large file size, set the Wait for file copy iteration Count to a higher value or increase the values for the fields Wait for file copy first attempt or Wait for file copy next attempt. If the copy operation is not completed within the set time, the message Could not find the copying file is displayed. A large file will require a longer wait time.
The following table lists the default values with field description:
|
Field Name |
Description |
|---|---|
|
Wait for file copy iteration Count |
This field is used to set the iteration value for a file copy process. The default value is 200. Example The value 200 indicates that the process will execute 200 times if the file copy process is not complete. |
|
Wait for file copy first attempt (ms) |
The value in this field indicates the wait time after a file copy command is executed for the first time. This wait time is provided for an event to be generated after the file copy process is complete. The value specified is in milliseconds. The default value is 2000. Example The value 2000 indicates that the wait time for copying files in the first attempt is two seconds. |
|
Wait for file copy next attempt (ms) |
The value in this field indicates the wait time for subsequent attempts. The value specified is in milliseconds. The default value is 4000. Example The value 4000 indicates that the wait time for subsequent attempts is four seconds. |