[jboss-user] [jBPM] - Re: (User Tasks) How to get user tasks by process instance?

Mauricio Salatino do-not-reply at jboss.com
Sun Aug 14 19:00:38 EDT 2011

Mauricio Salatino [http://community.jboss.org/people/salaboy21] created the discussion

"Re: (User Tasks) How to get user tasks by process instance?"

To view the discussion, visit: http://community.jboss.org/message/620980#620980

I know, that's the idea, but if you create a task list john will see all his tasks and he will be able to choose in which task to work. If you want to know from the history logs which process create each task you have the Task.TaskData.workItemId reference that helps you to find the process where that task instance was created. Notice that there is a named query defined for that reason:
 <named-query name="TaskByWorkItemId">
    Task t
    t.taskData.workItemId = :workItemId
          <!-- hint name="org.hibernate.timeout" value="200"/ -->


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110814/3194ecae/attachment.html 

More information about the jboss-user mailing list