Home
TeamSite
Get Task Id
System
I am having an issue with the way that taskids get handled in workflow. I have an email notification that goes out and notifies the user that they have a task. This is a variable workflow that can have up to 13 approvers and many contributors that can be configured at the time that the workflow is started. The problem is that Teamsite does not hand out taskids in a sequential fashion. Is there a way that I can find out what the next task's id is so that using CCI I can transition the task to the correct place. It seems that is is giving all of my email notifications(external tasks) ids and then it is giving out ids for my user tasks. Any ideas? Can I get a list of all of the ids in some way and then put those in a hash so I can look them up?
Thanks
Mark
Find more posts tagged with
Comments
Migrateduser
You could make use of the WFworkflow->GetTaskByName() method, which returns you an array (be aware of that) with one of the elements being the WFtask object of the task you request. Then you can do a WFtask->GetId() to get the ID and other methods where needed. Does that help?
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
Hazzie
If you didnt want to do it Smittys way you could also take a look at your wft file and organise the tasks in that into the order you wanted them to appear. The task ids as far as i can make out are handed out to each task it meets sequentially in the wft file.
Just another option, personaly i prefer the GetTaskByName way.
Hazzie
TS 5.5.2 on NT.