How do I tell what caused a trigger to fire?

KevinT (2 posts)
May 19, 2009 03:55 AM
Accepted Answer

I have a Job that is basically watching a directory for new files, then firing off a ConsoleApp. I have to pass as a parameter to the app, the filename of the file that caused the job to trigger. How do I determine which file caused the Job to trigger?

 

I am using adTempus 3.0.6.1


KevinT (2 posts)
May 19, 2009 04:43 AM
Accepted Answer
The answer is to use the %FileName% job variable
Bill Staff (599 posts)
May 19, 2009 06:32 AM
Accepted Answer

Note that you also need to check the "Trigger separately for each file" option on the trigger, and check the option on the job's Advanced page to allow more than one instance of the job to run at one time.

These settings will cause adTempus to run your program once for each matching file that it finds. If you don't have "Trigger separately for each file", adTempus will only run your program once during a period of 10-30 seconds, even if more than one matching file is present during that period.

See the File Trigger overview in the online help for more information on this setting.


Replies are disabled for this topic.