Hi All,
I am trying to add files that are generated to the workflow task.
Here is the code that I am executing....
my
@filelist = `ls -t /app/iw-home/opendeploy/OpenDeployNG/citifinancial/branchxmlfiles | awk {'print $9'}`;
foreach my $filename (
@filelist) {
print LOG "Adding file with file name: /app/iw-home/opendeploy/OpenDeployNG/citifinancial/branchxmlfiles/$filename";
if (! $task->AddFile("/app/iw-home/opendeploy/OpenDeployNG/citifinancial/branchxmlfiles/$filename", $comment))
{
print LOG "Cannot add file to Workflow task: $vpath/branchxmlfiles/$filename";
}
}
print LOG "Adding Files To Workflow Finished - Refreshing Task\n";
$task->Refresh();
Whenever I execute the workflow, I am always getting Cannot add file to Workflow task: ...
Is anything I missing here. Kindly advice.
Regards and Thanks in Advance,