package PrepareDPSS;
use strict;
use English;
use Carp;
use vars
qw(@ISA $VERSION $VERSION $name $author $date $version @instList $numberOfStreams);
@ISA = qw(Module);
use ModuleResources;
$name=__PACKAGE__;
$VERSION="1.00";
$version=$VERSION;
$author="Anja Schroeder";
$date="2006-03-09";
@instList=qw(all);
sub numberOfStreams {
return 1;
}
sub evaluateRules {
return unless allComplete(module => 'Finalize');
start();
}
sub performAction {
info("Module version number: $version");
my @list = findFile( type => 'pdf' );
push @list , findFile ( type => 'png' );
push @list , findFile ( type => 'png' );
push @list , findFile ( type => 'png' );
foreach my $f (@list)
{
next unless fileExists $f;
copyFile( source => $f , dest => 'tmp/screening/' );
}
copy_screening_files()
or return exception()
;
doCommand(
'copy_files_pm'
)
or return exception();
doCommand(
'prep_screen_pm'
)
or return exception();
return success();
}
1;