In reply to:- TeamSite trigger script that will increment the number of jobs value in database or file each time a wrokflow gets invoken.
In reply to:The deamon should use cache mechanism to store the output of iwgetwfobj since its CPU intense operation.
Edited by dazzlad on 01/05/06 05:48 AM (server time).
my $directory = '';opendir(DIRECTORY, $directory);my @sortedFiles = sort {-M $a <=> -M $b} grep(-f, map("$directory/$_", readdir(DIRECTORY)));closedir(DIRECTORY);print join("\n", @sortedFiles);
my @sortedFiles = map($_ =~ m|^$directory/(.*)$|, sort {-M $a <=> -M $b} grep(-f, map("$directory/$_", readdir(DIRECTORY))));
In reply to:I believe you want to use a task ID for the files - not a job ID - as per my earlier suggestion (a job does not have a transition, a task does)