Hi,
I have written following code snippets to get task information within a CGI:
my ($task_id) = $cgi->{form}{'taskid'}; # taskid is a hidden field within the form.
my ($task) = new TeamSite::WFtask($task_id);
my ($workflow_id) = $task->GetWorkflowId();
my ($job) = new TeamSite::WFworkflow($workflow_id);
my($workflow_area) = $task->GetArea();
$workflow_area =~ s/\\/\//g;
my
@iw_files = $task->GetFiles();
However, when I print the values within a log file, I get the following output:
Workflow ID:
Task ID: ARRAY(0x12d4d0)
Area:
Number of files attached:
I am using CGI_lite package.
Please help me debug why the task object is not getting created and why am I getting an object instead of "taskId" as a value for $task_id.
Thanks in advance,
Dhruv