Customization of FileWatcher

TIBCO MDM uses the FileWatcher utility that monitors incoming files containing data for initiation of processes within the application. FileWatcher runs as a background thread in the same JVM as the server.

FileWatcher provides a file-based integration method for some of the workflow operations. After configuration, workflows can be triggered when new files are detected and input files are processed.

FileWatcher polls the directories specified in the configuration file for any new files created there. The polling is done at a configured interval specified in the configuration file. When a new file is detected, it is processed according to the specifications defined in a configuration file.

After the file is successfully processed, it is moved to a /done directory. This prevents the file from being picked up on subsequent polls. FileWatcher has an option to detect duplicate files by the filename. If a previously processed file (name) is copied to /incoming, it is not processed again, and is moved to /Rejected.

Prerequisites

To work with FileWatcher, you must possess the following skills and access privileges:

  • Working knowledge of XML
  • Working knowledge of TIBCO MDM
  • Access to $MQ_HOME/config directory
  • Privileges to modify FileWatcher.xml