I have a job that can be executed by a file based trigger, or by manually executing the job using the visual cron client.
If the job was executed by the file based trigger, I want to only process that file.
If the job is executed manually I want to process all files in a directory.
I was hoping to use {TRIGGER(Active,LastTrigger,File.Result.Name)} as a flag to indicate how the job was executed, however it appears to remain set after the job has been run. So if the job is executed manually, I still get the file name from the last trigger.
I can check to see if the file name passed in exists, if not then process all files, but was hoping for something a little cleaner.
Can the variable be cleared?
Open to suggestions