I have a workflow that is being invoked from my template. My understanding is that the dcr is automatically attached. However when I try to use the following perl code my task->getfiles returns nothing to me. The code that I have pasted below resides in a perl script file that is being called from an external task in my workflow.
use TeamSite::WFtask;
use TeamSite::WFworkflow;
use TeamSite::Config;
(my $iwhome = TeamSite::Config::iwgethome());
my($iwperl)="$iwhome/iw-perl/bin/iwperl";
my($lbin)="$iwhome/local/bin";
my $filelist = "$iwhome/tmp/filelist";
open (FILELIST, ">$filelist");
my($jobid, $taskid, $area)=(
@ARGV[0..2]);
print FILELIST "OK\n";
my($task)=TeamSite::WFtask->new($taskid);
my
@files = $task->GetFiles();
print FILELIST "$task\n";
print FILELIST "
@files[0]\n";
print FILELIST "$area\n";
print FILELIST "$files\n";
my $extcmd="$iwhome/bin iwextattr.exe -g TeamSite/Templating/DCR/Type";
foreach my $file (
@files){
# print FILELIST "$area .$file\n";
my $taskfile = "$area . $file";
}
close FILELIST;
#my $cmdoutput = '$extcmd $taskfile';
#system('iwdd.ipl cfg=Y:/default/main/IIG/Workarea/IIG_Work/templatedata/Product_Information/Product_Detail/product_dd.cfg deployment=Product');
$task->CallBack(0,'Success');
exit(0);
Can somebody help me and tell me why this code does not return the dcr info. The code is not complete in terms of the logic that needs to be implemented after I retreive the file. I wanted to take this in baby steps. However I am not having any luck even retreiving the dcr info and printing it to a file.