This seems trivial to me but I cannot get a list of tasks that belong to a workflow. Here is a sample of the code I've tried:
# Sample ID of workflow
my $workflow = new TeamSite::WFworkflow("9842");
@task_list = $workflow->GetTasks();
foreach $task (@task_list) {
print $task->GetId() . "\n";
}
This will won't return anything. But I do get a error generated in my error.log:
Can't call method "GetName" on unblessed reference at c:\iw-home\httpd\iw-bin\custom ....I can run a querytasks command just fine. This is my query:
<taskquery>
<workflow v="9842" />
</taskquery>
All I want is the listing of 5 task ID's that belong to this workflow.
Thanks.
- gf
- TS 5.5.2 SP2 (Win2k)