Hi
Env - windows, TS 6.7.1
The start task of my WF has the following template script ( i am trying to get the extended attrib of the submitted file) but fail to get the extended attrib - $doctype1 always returns empty). I have checked running the command iwextattr from the command prompt and all files have extended attribs. Based on the extended attrib of the file submitted i have to perform some more logic. Any pointers as to where i am going wrong will help me . I have uploaded the below script as an attachment also ...as the tags were getting messed up.
if (
@submit_file != 0)
{
__INSERT__("\n");
my
@dcrfile ;
for (my $i=0; $i <
@submit_file; ++$i)
{
$dcrfile[$i] = $submit_file[$i];
if ($dcrfile[$i] =~ m/templatedata\//) { }
else {
$tsbin1 = '/opt/iw/iw-home/bin';
$worarea = "/iwmnt" . "__TAG__('iw_workarea');";
$file = $worarea . "/" . $submit_file[$i];
$doctype = "$tsbin1/iwextattr -g TeamSite/Templating/PrimaryDocumentType $file" . "\n";
$doctype1 = `$doctype`;
__INSERT__(" doctypecmd = $doctype");
__INSERT__(" doctype = $doctype1 ");
}
__INSERT__("");
}
__INSERT__("\n");
}
]]>
Output of the above template script in iwdebug mode is
doctypecmd = /opt/iw/iw-home/bin/iwextattr -g TeamSite/Templating/PrimaryDocumentType /iwmnt/default/main/internet/MC/WORKAREA/web/about-us/news-and-events/events/index.html
doctype =
Thanks for your help and time.