[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">
          <query>
select
    t
from
    Task t
where
    t.taskData.workItemId = :workItemId
          </query>
          <!-- hint name="org.hibernate.timeout" value="200"/ -->
      </named-query>

Cheers
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/620980#620980]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- 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