Hi,
I want to invoke the DCR which is attacked to task.
I am doing these as below:
use strict;
use TeamSite::WFtask;
use TeamSite::WFworkflow;
use TeamSite::Config;
use XML::XPath;
use XML::XPath::XMLParser;
my ($wfid, $taskid, $area) =
@ARGV;
my $DCR_TYPE = "TeamSite/Templating/DCR/Type";
my $job = new TeamSite::WFworkflow($wfid);
my $task = new TeamSite::WFtask($taskid);
my
@files = $task->GetFiles();
## CHECK FOR DCR ONLY and remove other files from array
my
@files1;
foreach my $file (
@files){
if($file =~ m/templatedata/g)
{
push (
@files1, $file);
}
}
@files =
@files1;
my $iw_home = TeamSite::Config::iwgethome();
my $iwmount = TeamSite::Config::iwgetmount();
$area = $iwmount . $area;
my
@dcrType = ();
my
@browseItems = ();
my ($dcrPath, $dctPath, $dcr, $dct, $ptvPath , $dcrname) = "";
my $error = "";
#### LOG ANY DEBUG COMMENTS
open(LOG, ">D:\\iw-home\\tmp\\generate_attach_assets_$wfid.log");
print LOG "***** Begin****\n";
print LOG "Job ID:$wfid\t Task ID:$taskid\n";
print LOG "WORKAREA:$area\n";
print LOG "DCR/files:$files[0]\n";
when i run the script from cmd, I am getting the error: OBJECT LOOK UP WAS NOT FOUND. TASK 0 DOES NOT EXIST.
and in LOG, i am getting the file array is empty.
Can you please let me know hoe to get the files which are attached to task in external script