Automic Workload Automation

 View Only
  • 1.  File watcher for no file

    Posted Jun 29, 2020 09:06 AM
    I am trying to create a file watcher that looks for a specific file and only if it does not find the file does it trigger a JOB/CALL.  I have no problem getting it to trigger if the file exists.​

    ------------------------------
    Timothy
    ------------------------------


  • 2.  RE: File watcher for no file
    Best Answer

    Posted Jun 29, 2020 10:21 AM
    Hi Timothy,

    as you have experienced the file event object only triggers if the condition matches (file count, file size, etc.). In your case I would use a time event, which runs periodically the script function GET_FILESYSTEM from the event tab. 

    get_filesystem with parameter PATH_FILE_COUNT returns the number of matching files

    regards,
    Peter


  • 3.  RE: File watcher for no file

    Posted Jun 29, 2020 11:19 AM
    Have you considered checking for the file via a task precondition rule?

    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------