File Monitor
The File Monitor task is a special type of task which can be used in two ways:
1) If a change is detected in this task, you can run another task, or
2) The File Monitor task can also be embedded within a Chain task and is useful for conditional task processing. If you want to use this task in a chain for conditional processing, select 'None' as the 'Task To Run'. If the criteria is satisfied, then an exit code = -100 is thrown. Else, an exit code = 0 is thrown.
The File Monitor task also outputs a variable called 'TaskTitle::Filenames". This variable contains the list of all files that satisfy the monitoring criteria. The format of this variable is #file1^#file2^#file3, where file1,file2,file3 are the names of the files that have been modified. You can use this variable directly as the filename in other copy, ftp, delete tasks to copy/ftp/delete only these files.
Directory
Enter the directory where your files are located
Filename
Enter the name filter for the files you wish to copy using the following wildcard rules
This field also supports dynamic variables. Using dynamic variables, you can select a file based on current date/time in addition to the normal wildcard search
Task To Run
Select the desired task to run if any of the selected criteria are met. If you want to use this task in a chain for conditional processing, select 'None'. You can also select multiple tasks to run in sequence or simultaneously. To run tasks in sequence, use taskTitle1|taskTitle2|taskTitle3. To run tasks simultaneously, use taskTitle1&taskTitle2&taskTitle3.
Options
The Task will be run if any of the following selected criteria are satisfied. You can select 1 or more criteria.
1) File(s) which satisfy the Filename criteria exists
2) File(s) which satisfy the Filename criteria as well as file size criteria
3) File(s) which satisfy the Filename criteria as well as date modification criteria
4) Total files in directory are greater/less than certain value. This option does not update any of the dynamic variables.
Using File Monitor Task in a Chain