The task ID increments as a task is instantiated. However if a job loops, say through a rejected approval step, the taskids will be reused, thus you can have tasks 1111, 1112, 1113, 1114, 1112, 1113, 1114, 1115.... etc
Oh ok...thanks for this info....Now consider this situation:---Start Task-----Author-----Group Task---(review task)--Email-----Submit/Author(depending upon approve or reject of Grouptask)Now in email task..i want to send email to author/All(on reject or approve resp) Now in this email from:"owner of Group task"...Now since this is group task..Owner of this task is decided dynamically...(If this wuld have been user task than it is simple..)..So i my email task i want the taskid of previous task and from which i can create task obj..and can get its task owner...So if suppose taskids wuld have been i order this wuld be easy..currenttaskid - 1...So now since this is not the case..how can we solve this problem...I think we can solve this by..."gettaskbyname"...But suppose i dont want to do that...because m using the...(header tpl...at many places...)....So any suggestions for this case.....