Home
TeamSite
To find current task name
System
hi,
I want to know the current task name, so that i can have appropriate logic to get required data for the task. I want to have this code in the workflow
can anybody tell me how to find the current task name.
thanks
Find more posts tagged with
Comments
Jeremy
Use Teamsite::WFtask(GetName) to get the name of the current task. See the WFtask.pm for more details.
See the Workflow Guide for more info.
Adam Stoller
What do you mean "I want to have this code in the workflow"? Are you talking about in the WFT - or within an externaltask or cgitask script?
For the scripts - as mentioned (slightly incorrectly) you would use TeamSite::WFtask::GetTask() - most often referenced by creating a TeamSIte::WFtask object ($task) and issuing it as a method call ($task->GetTask()
.
Within the WFT doesn't make much sense to me - because the WFT (and even the job description file that is generated from the WFT) doesn't have a sense of "current task" - it's a definition of the workflow which is to get instantiated and it is within that instantiation that "current task" has meaning - but without understanding what you're trying to do...
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Jeremy
Yes, I seem to have referenced it incorrectly.
I believe you meant
TeamSite::WFtask::GetName()
as there does not appear to be a GetTask in WFtask.pm.
Adam Stoller
Heh - I fixed the syntax of the call but forgot to fix the method name - sigh :-)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com