[jboss-user] [JBoss jBPM] - Get tasks by a user's group

dnowak do-not-reply at jboss.com
Tue Mar 24 14:31:30 EDT 2009


Hi, 

I'm just getting off with jBPM, and this is my first post in this forum: Hello everyone :)

So far, I've gotten everything to work, until now. I'd like to get a list of all tasks assigned to groups a specific user belongs to. 

Example: User frank1 is in group sales and management. A task is assigned to management. I want to get this task by placing a query about tasks for frank1. 

Basically something like "findPooledTaskInstances(actorID)", which I've found in the guide: 

"To fetch the group task list for a given user, proceed as follows: Make a collection that includes the user's actorId and all the ids of groups that the user belongs to. With TaskMgmtSession.findPooledTaskInstances(String actorId) or TaskMgmtSession.findPooledTaskInstances(List actorIds) you can search for task instances that are not in a personal task list (actorId==null) and for which there is a match in the pooled actorIds. "

The result unfortunately is empty:( How can I accomplish this?

Thanks a lot and best regards, 

Damian

PS: Is there any API about Groups? I defined some groups in the JBPM Console, but can't find any way to access them. Help please? :/


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220728#4220728

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220728



More information about the jboss-user mailing list