Skip Ribbon Commands
Skip to main content
SharePoint

Start a Process following a File System Event

To start a process following a file system event, complete the following steps:
  1. Check out and open the process you want to edit.

  2. In the Toolbox pane, click Process Initiation. A list of initiators is displayed.

  3. Double-click or drag the Receive File Monitor Event activity into the process.

  4. Right click the Receive File Monitor Event. A shortcut menu is displayed.

  5. Select View Properties. The Receive File Monitor Event window is displayed.

  6. Click the File Monitor Initiator tab. The corresponding screen is displayed.

  7. In the right pane, click the Add button. The Create new Configuration for monitoring a path window is displayed.

  8. In the Select a File Monitor Service System Resource field, click the drop-down arrow. A drop-down list is displayed.

  9. Select the relevant File Monitor Service system resource.

  10. In the Path to Monitor field, type the file path of the folder to be monitored.

    Note:
    Select the Include subfolders check box to enable monitoring of child folders in the file path you typed.


  11. In the Filter field, type the appropriate filter criteria you want to apply while monitoring.

    Note:
    A filter is not required and is the same as entering *.*, which indicates you should start the process regardless of the name of the file or the file extension. The asterisk (*) is used as a wildcard.


  12. Click Next. The File Events tab is displayed.

  13. Select the event or events you want to monitor (Created, Deleted, Changed, or Renamed).

  14. Click Next. The Map Data Items tab is displayed.

  15. In the Data Item (Set) field, click the Data Item editor icon and select the appropriated data item.
     
    Note:
    Calculation data items are read-only. You cannot edit this type of data item.

     
  16. In the Event Token (Get) field, click the drop-down arrow and select the relevant file event token.

    Note:
    You can add a mapping by clicking the plus sign (+). Use the minus sign (-) to remove a mapping.


  17. Click OK. You configured the File Monitor Initiator.

  18. Click OK. You configured the activity to start a process following a file system event.

    Note:
    The events will not be registered with the file system until you publish your solution. You can check the BsFileService Event Log on the File Service server to confirm the events are registered after publishing your solution.
     
Related Topics
Creating a New File Monitor Service System Resource
Remove a Folder from being Monitored for File Events

Source
BPM Designer Topics > Overview of Activities and Activity Topics > Process Initiation Activities > Receive File Monitor Event
Last modified at 7/31/2020 12:01 PM