Hold until output is found
Posted: Fri Dec 30, 2016 10:01 pm
Hello All,
I have been trying to find the best way to handle a problem. I use HP composer to handle my VDP impostions. My flow takes the data file, submits a copy to the composer hot folder to generate the pdf, another copy goes to hold where it waits for the output to be found. Once found I replace the text file with the pdf via Inject.
I don't feel like my method for holding a job until output is found works very well. I find jobs getting stuck and having to start and stop the flow to get things moving again. Does anyone have other suggestions on how to better handle this?
My hold element has these parameters and script:
Release Condition with a retry every 30 seconds
Script expression:
var fPath = '\\\\IPAddress\\Composer Presets\\VDP Presets\\POD\\Output\\' + job.getNameProper() + '.pdf';
var fa = new File(fPath);
if ( fa.exists ){
return true;
}
else{
return false;
}
How do others handle sending jobs out to third part processes?
I have been trying to find the best way to handle a problem. I use HP composer to handle my VDP impostions. My flow takes the data file, submits a copy to the composer hot folder to generate the pdf, another copy goes to hold where it waits for the output to be found. Once found I replace the text file with the pdf via Inject.
I don't feel like my method for holding a job until output is found works very well. I find jobs getting stuck and having to start and stop the flow to get things moving again. Does anyone have other suggestions on how to better handle this?
My hold element has these parameters and script:
Release Condition with a retry every 30 seconds
Script expression:
var fPath = '\\\\IPAddress\\Composer Presets\\VDP Presets\\POD\\Output\\' + job.getNameProper() + '.pdf';
var fa = new File(fPath);
if ( fa.exists ){
return true;
}
else{
return false;
}
How do others handle sending jobs out to third part processes?