File Watcher
  • 21 Apr 2023
  • 1 Minute to read
  • Dark
    Light

File Watcher

  • Dark
    Light

Article summary

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.

MenuSettings1


Watch Settings

TypeDescriptionUsage
Directory PathSpecifies the root directory to monitor.A value of /Temp would watch for files added to the '/Temp' directory.
File Name RegexSpecifies 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.
FlowFlow you want to execute when a valid file is added.eg. /Demo
Run ProfileThe Run Profile to call for the Flow specified above.eg. default
Parameter NameThe 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 directoriesIf 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 EnabledEnable 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.
EnabledEnable this setting to turn on the watch functionality.Disabling this setting and saving will turn off the watch functionality.

FileWatcher1


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?

What's Next