Nice to hear the issue got resolved. Kindly mark the thread as answered.
Also check my blog on usage of SAP workflow _WORKITEM container. It already holds some very useful information and we can utilize them wihout having to write any stand alone method for fetching them.
_WORKITEM Container element in SAP Workflow
Regards,
Ibrahim