We have had good success using a single trigger file under a subdirectory structure. Only "\Vendors\trigger.txt" is specified. When a "trigger.txt" file is found in any of the "Files" subdirectories, the job is started.
\Vendors\IBM\Files
\Vendors\HP\Files
\Vendors\Dell\Files
The problem is that we need to cause any new trigger file job to wait until the previous job is completed for that vendor. It is ok to run an HP and Dell job concurrently, but not two (2) HP jobs concurrently.
When the job starts, I write a "running.now" file into the vendor directory (IBM, HP, Dell). I would like to use that as a Condition. The new job must wait until the "running.now" file is deleted.I have tried creating a Condition based on "%FileTrigger.FileName%\..\..\running.now", but I do not think the "FileTrigger.Filename" is resolved when the conditions are evaluated.
This makes me think that all Triggers should be evaluated first, before any Condition. But, I think that is not how it works.
Do you have any suggestion to accomplish this?