Description

    Monitors changes on a specified file or folder.



Attributes

    Common  

  • Continue on Error - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.

    Event

  • Change Type - Created, Deleted, Changed, Renamed, All.

  • Notify Filters - FileName, DirectoryName, Attributes, Size, LastWrite, LastAccess, CreationTime, Security.

    File

  • File Name - The name of the file to be monitored for changes.

  • Path - The path of the file to be monitored for changes.

    Misc

  • Display Name - Renames the activity.

    Options

  • Include Subdirectories - True or False value that allows the subdirectories of the path to be monitored as well.


Example

  1. Drag a Monitor Events activity inside the Workflow area.
  2. Add a File Change Trigger activity inside the Monitor Events activity on top of the Event Handler Sequence.
  3. On the Monitor Events Properties, select All in the Event Property ChangeType.
  4. In the Notify Filters on Properties panel, Check all the options.
  5. On the File Trigger activity, click on the browse button and select desired file location.
  6. Enter "test.txt" in the File Name field in the File Triggeactivity.
  7. Add a Write Line activity inside the Event Handler Sequence.
  8. In the Write Line Text field, enter "test". This writes the word test in the Output panel whenever there are changes made with the file.
  9. When executed, Monitor Events activity will wait for any changes to the file "test.txt" then it will do the tasks inside the Event Handler

    The use case should look like the following screenshot:



The output should look like this in the Output panel: