File Watcher
- 21 Apr 2023
- 1 Minute to read
- Print
- DarkLight
File Watcher
- Updated on 21 Apr 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
The File Watcher allows for the dynamic execution of a Flow through the monitoring of directories.
If a valid file is added to a monitored directory, DataWORQ will call the specified Flow to process the file. This makes it very easy to integrate with systems that produce flat files intended for consumption.
To use the File Watcher, click on File Watcher
in the Settings
menu.
Watch Settings
Type | Description | Usage |
---|---|---|
Directory Path | Specifies the root directory to monitor. | A value of /Temp would watch for files added to the '/Temp' directory. |
File Name Regex | Specifies the valid names for files to process. The default regular expression .* matches all files. | This setting allows you to process only files that conform to a naming convention you specify via a Regular Expression. This setting only applies to the file name and extension (not the full path to the file). Helpful links can be found on the Watch Setting menu. |
Flow | Flow you want to execute when a valid file is added. | eg. /Demo |
Run Profile | The Run Profile to call for the Flow specified above. | eg. default |
Parameter Name | The name of the parameter used in the Flow specified above. | This setting will dynamically update the value of the chosen Parameter with the added files' full path. |
Watch all child directories | If enabled, it will monitor all child directories in the Directory Path specified above for valid added files. | eg. /Temp/child would trigger a watch event if this setting were enabled and /Temp was the Directory Path . |
Notification Enabled | Enable to receive notifications previously set up within your Flow. | If notifications are not already set up in your Flow this setting will not work properly. |
Enabled | Enable this setting to turn on the watch functionality. | Disabling this setting and saving will turn off the watch functionality. |
NOTE: Flows called via a Watch Setting MUST contain a defined parameter that matches the name supplied in the Watch Setting.
Was this article helpful?