How is the Switch way to create a script with timeout (like Assemble job)?
Posted: Fri Aug 12, 2016 10:02 pm
Hello guys
I need to send a pdf to a hotfolder of an external application hotfolder and read the output folder waiting the result, if the result is not there in x minutes I'll proceed with original file.
But I don't know how.
I first thought in use the jobArrived to set a variable with current time, copy the input file to my external application hotfolder and use a kind of looping to verify if the output folder has the file or the time is exceeded, but this is not a good idea because I'll lock a process.
So I though in use the timerFired, but I don't know how can I get the time which job is waiting, and each time that timerFired is executed it will copy the input file to the hotfolder.
Any of you have a ideia how can I do it?
Kind regards
I need to send a pdf to a hotfolder of an external application hotfolder and read the output folder waiting the result, if the result is not there in x minutes I'll proceed with original file.
But I don't know how.
I first thought in use the jobArrived to set a variable with current time, copy the input file to my external application hotfolder and use a kind of looping to verify if the output folder has the file or the time is exceeded, but this is not a good idea because I'll lock a process.
So I though in use the timerFired, but I don't know how can I get the time which job is waiting, and each time that timerFired is executed it will copy the input file to the hotfolder.
Any of you have a ideia how can I do it?
Kind regards