Expand my Community achievements bar.

Re:Problem with purging with the help of Watched Folder

Avatar

Level 2

Hi,

    I have used Watched Folder Start Point and configured it in such a way that Purge duration is 1 day. But the files in the 'Result' folder (output of process execution) are not getting deleted.

    There is no update access for the folder.

     Please help in finding a solution to delete the files from the 'Result' folder

Thanks,

Arjun

1 Reply

Avatar

Former Community Member

I thought the purge option, was to purge the files in the "input" folder.

However a solution could be:

Write another process, that:

1) Runs every 24 hours (using the "wait" activity)

2) Reads all files in the "Result" folder (use the "find" activity)

3) Iterate through each file ("read Document" activity)

4) Checks each files created property - either using JAVA or possibly in the SetValue activity using the getDocAttribute command.

hope this helps