We have an application running currently outside of ESP that can create a random number of files. The files are all created in the same folder, but have different file names. They do have the same .*** extension.
The issue is that this application can create 1 file, 6 files, 2 files, or 40 files. The number is random.
We want to act based on the files being created, but we only want to trigger one instance of the event no matter how many files are created and yet ensure that even if the 1st instance of a file being created triggers the event, all of the files will be processed by the event.
Any suggestions would be appreciated.
Are all files being created by 1 application?
Can the application running outside of ESP run in ESP?
What Operating system does the Application running outside of ESP run on? If it is z/OS you could use a Tracking Model to determine when the job has completed, then process the data files created.
You could use the NOCHANGE option and specify a number larger than how long it takes to create the files. Look for FILE-01, then wait n minutes. NOTE: this would work, but if the application that created the files runs longer than the number in NOCHANE then you would miss files.
How do you know when all files are created?
Are all files created at the same time?
Can the Application that creates the files also create a "All Files Created" file?
If yes you could set the WOBTRIG to look for the "All Files Created" file, then process all of the data files that were created. If the Application that creates the files cannot be tracked or run through ESP, this would prevent processing before all files are created.
1) Yes all files are being created by the same application on a Windows Server. Currently the application is NOT in ESP. My intention is to have it in ESP but this business process team has been putzing around for 2 years. Granted this is the ideal solution, but I need a work around in the meantime.
2) Don't know when "all" the files are created.
3) I can't even just monitor that folder for updates and NOCHANGE as other files are placed there also.
Is the Windows Application job an executable file?
If it is you can use the ESP PROCESS_MON Workload Object.
You may need to load the WOBDEF from Page Mode, then add to INITPARM
OPER WOBDEF LIST
CYBESOPM PROCESS_MON -RO62660 18.32 20130905 2B8A8000
Let me know if you would like to see an example
Leo -- did Rich's suggestions here help?