get path of folder for incoming connection
Posted: Tue Nov 26, 2013 11:28 pm
Hi,
is there a scripting possibility of getting the path of an incoming connection? I'm having the weird issue that (just for one customer) files are not being accepted as a job by Switch up until i restart the flow... i just want to do a fileList of the folder when s.getJobs() == 0, then crawl through the files and check each file for hasArrived(), if this is true, make a job out of it and send it to the error connection.
var jobList = s.getJobs();
if ( jobList.length == 0 )
{
var inConnList = s.getInConnections();
var inConn = inConnList.at(0);
var inDirPath = inConn.getFolderPath(); // <--- this is needed here!
var inDir = new Dir ( inDirPath );
.
.
.
}
any ideas?
Thorsten
is there a scripting possibility of getting the path of an incoming connection? I'm having the weird issue that (just for one customer) files are not being accepted as a job by Switch up until i restart the flow... i just want to do a fileList of the folder when s.getJobs() == 0, then crawl through the files and check each file for hasArrived(), if this is true, make a job out of it and send it to the error connection.
var jobList = s.getJobs();
if ( jobList.length == 0 )
{
var inConnList = s.getInConnections();
var inConn = inConnList.at(0);
var inDirPath = inConn.getFolderPath(); // <--- this is needed here!
var inDir = new Dir ( inDirPath );
.
.
.
}
any ideas?
Thorsten