This content has been marked as final.
Show 2 replies
-
1. Re: getting the groupId from task
swiderski.maciej Dec 14, 2012 6:37 AM (in response to akuppu)you should be able to get them from task variables (task content) as by default all user task parameters go into task content.
HTH
-
2. Re: getting the groupId from task
akuppu Dec 14, 2012 7:47 AM (in response to swiderski.maciej)The content approach seems to be cumbersome.
I am able to get it from workItem.
WorkItemManager witm = (WorkItemManager)session.getWorkItemManager();
WorkItem w = witm.getWorkItem(task.getTaskData().getWorkItemId());
String groupId = w.getParameter("GroupId").toString();