Question
Is it possible to set up a file event job to execute a script when multiple monitored files get ready?
Answer
File event jobs do not have a feature to execute a script when multiple monitored monitored files get ready.
Please check if the following alternative satisfies your requirement.
■Alternative
- Set up a scheduled job
Use [Recurrence] of a schedule job to repeat the job at regular intervals in order to run a script that checks whether all files are ready.
Schedule job
https://www.hulft.com/help/en-us/HULFTSquare/Content/HULFT_Square/HS_Jobs/jobs_Schedule.htm
- Output a file for executing a file event job
Check the monitored files exitance in the script executed by the schedule job, and a file for executing the file event job is output only when all files exist.
[Get List of File Names]
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Connector/file_list_file.htm
[Conditional Branch]
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Connector/flow_conditional_branch.htm
- Set the file output in step 2 as the file to be monitored for executing the file event job.
Comments
0 comments
Article is closed for comments.