Versions Compared

Key

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

...

This job will monitor the folder c:/temp on a Windows® operating system. The regular expression is used to define which file(s) JobScheduler has to watch. In this example the regular expression means that every event involving on a directory change (deleting, renaming, adding any file) the job will be startet when the files file1.xml and/or file2.xml will fire the execution of the embedded script (which in this case will echo values for JobScheduler environment variables to stdout).For each new file in the folder c:/temp which is matched by the filter ^file1\.xml$ starts a task for the job. is in content of the directory. 

The SCHEDULER_TASK_TRIGGER_FILES environment variable contains the names of all the filtered files in the c:/temp folder that matches the regular expression at the time when the task directory was started changed- it doesn't just does contain the name of the file that triggered the embedded script only in the case the file matches the regular expression. The file names are maintained in a semicolon separated list.

...