Hi Dave,
Following is an example for your initial thought, it's meant for explanation purpose, and we can provide more help based on the requirement:
EVENT ID(ESP.CHKGCS) . . .
Proc
APPL GCS
POJO_JOB CHKFL
REL ADD(GOOD COND(RC(0))
REL ADD(RETRIG COND(RC(1))
....
ENDJOB
JOB GOOD
/* process that run after the file detected*/
....
ENDJOB
JOB RERUM TASK SELFCOMPLETING
.......
/* force complete the JOB GOOD since file hasn't been detected*/
ESPNOMSG AJ GOOD COMPLETE APPL(....)
/* rerun the whole process, may add RELDELAY x minutes */
/* retrigger the event after x minutes 8*/
ENDJOB
EndProc
ENDDEF
I checked with our agent expert, and learned that there are customers who write their own scripts for this purpose and then use it as a command job, will see if someone may share here with you.
Happy Holidays!
Lucy