Banner
 
 

Automation Based on File Events


 
It is possible to automate tasks where the trigger for the action to be taken is a file being created rather than a specific time.

A zip file demonstrating this technique, both with and without Supervisor is available to download here.

The demonstration shows how to monitor a specified directory for new files. For any new file a nominated WFL Job is started with the title of the new file passed as a parameter. This example is illustrated using a stand alone DCAlgol program and for camparison a Supervisor Situation and ODTSequence.

Two additional Supervisor examples are provided. One to monitor a directory and email, as an attachment, any file addded to the directory. The other example shows how to monitor a code file directory, checking the files against an InfraDesign Sure database.

Finally an example of how to combine the three Supervisor Situations into one is shown.

The zip file contains:

ReadMe.rtf Description on how to use the other files.
 
DEMO.CON MCP Wrapped container with example files
Contents

(BOB)DEMO/DIRCHECK Source of directory checking program
(BOB)DEMO/DIRCHECK/WFL Sample WFL used with program
(BOB)OBJECT/DEMO/DIRCHECK Code of directory checking program
(BOB)OPALS/DEMO Sample Opal routines