Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Renamed Event

  • Last UpdatedJul 25, 2023
  • 3 minute read

The Renamed event gets triggered when an existing file has been renamed in the folder to be monitored.

To trigger a renamed event

  1. In the Enterprise Console, click the Menu button, and then click Workflows. The Workflows page appears.

  2. Select the workflow to be associated, and then click Associate.

  3. Click FileWatcher to associate the workflow with a new file watcher event.

  4. In the Event Type drop-down list, select Renamed.

  5. In the Event Folder drop-down list, select the folder to be monitored.

  6. In the File Name/Pattern box, enter a file type. For example, .txt, .doc. Use * for all file patterns. You can also mention a specific file,  such as sample.txt.
    If file pattern is mentioned, then the File Watcher triggers an event for only those files that matches with the file pattern and ignores all other files that might arrive at the same time. This field is not mandatory. If file pattern is not mentioned, File Watcher triggers for all file patterns.

  7. Click the calendar icon to select the Effective From and Effective To dates. The event will be triggered for changes in the monitoring folder only during this period. These two field are not mandatory.

  8. In the Version drop-down list, select version of the workflow which should get triggered for the 'Renamed' event. By default, Latest is selected. This field is not mandatory.

  9. Click Attach Event.

  10. Click OK in the confirmation dialog box.

Example 1

In this example, the file type is not specified. So the Renamed Event gets triggered for all file types.

  1. Create a new folder in the local drive. For example, create a folder called 'FileWatcher' in 'C' drive.

  2. Add the folder to the File Watcher list through Add Folder.

  3. Create a workflow called 'RenamedEventWF'.

  4. Design the 'RenamedEventWF' workflow with an Approval activity. Configure the Activity Properties for the same.

  5. Publish the workflow.

  6. Select 'RenamedEventWF' from the Workflows list, and then click Associate.

  7. Click FileWatcher to associate the workflow with a new file watcher event.

  8. In the Event Type drop-down list, select Renamed.

  9. In the Event Folder drop-down list, select the monitoring folder 'C:\FileWatcher'.

  10. Leave the File Name/Pattern box empty.

  11. Click Attach Event.

  12. Click OK in the confirmation dialog box.

  13. Go to C:\FileWatcher path and rename a file called 'Sample.txt' to 'Sampletest.txt'.

  14. As soon as a existing file is renamed in 'C:\FileWatcher', the workflow gets triggered. The approval activity will be assigned to the specified actor.

  15. To check the Work items list, click Inbox.

    Example 2

    In this example, the file name and type is specified. The Renamed Event gets triggered only for the specified file.

    1. Create a new folder in the local drive. For example, create a folder called 'FileWatcher' in 'C' drive.

    2. Add the folder to the File Watcher list through Add Folder.

    3. Create a workflow called 'RenamedEventWF'.

    4. Design the 'RenamedEventWF' workflow with an Approval activity. Configure the Activity Properties for the same.

    5. Publish the workflow.

    6. Select 'RenamedEventWF' from the Workflows list, and then click Associate.

    7. Click FileWatcher to associate the workflow with a new file watcher event.

    8. In the Event Type drop-down list, select Renamed.

    9. In the Event Folder drop-down list, select the monitoring folder 'C:\FileWatcher'.

    10. In the File Name/Pattern box, enter the file name as 'File.txt'.

    11. Click Attach Event.

    12. Click OK.

    13. Go to C:\FileWatcher path, rename any file to 'File.txt' .

    14. As soon as a file is renamed with 'File.txt' in the 'C:\FileWatcher', the workflow gets triggered. The approval activity will be assigned to the specified actor.

    15. To check the Work items list, click Inbox.

       

      Related Links
      TitleResults for “How to create a CRG?”Also Available in