Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JobScheduler can monitor file creation, file changes and timestamp changes with a (standalone) job and with an order (and a job chain). In this article the filewatching using a standaloe job is described.
For further information on how to use file events with a job chain we recommend to read the Directory Monitoring with File Orders.

This job can then start a job chain or job group.

...

Note that this behaviour could be critical when two files (e.g. file1.xml and file2.xml) are changed at the same time.
Two tasks will then be started for the job.
In the first task the environment variable SCHEDULER_TASK_TRIGGER_FILES has the value c:/temp/file1.xml;c:/temp/file2.xml.
In the second task the environment variable SCHEDULER_TASK_TRIGGER_FILES will have a value that depends on what the first task has done with the files.
If, for example, the first task deletes the files then SCHEDULER_TASK_TRIGGER_FILES will be empty for the second task.

For further information on how to use file events with a job chain we recommend to read the Directory Monitoring with File Orders.