[jboss-user] [JBoss jBPM] - Re: How to use FindTaskInstances in multiple transitions?

cristian_e do-not-reply at jboss.com
Wed Jun 27 12:24:06 EDT 2007


"MindTheGap" wrote : Ok, thats right!
  | But in this case, findTaskInstances work?
  | 
  | Thanks!

findTaskInstances(actorID) shows you just the taskInstances who's actorID equals the parameter and that are currently open (not ended). The actual HQL query been done is:

 select ti
  |  from org.jbpm.taskmgmt.exe.TaskInstance as ti
  |  where ti.actorId = :actorId
  |  and ti.isOpen = true
(obtained from the source code for TaskMgmtSession and the hibernate.queries.hbm.xml).

As you can see, it is fairly simple. So, if you have played with signalling and directed the token only to the task nodes you want for that user, only the taskInstances created for him will appear as a result of the findTaskInstances function.

Of course you have to take into consideration the difference between assigning a single actor to a taskInstance and assigning a group of them by using a pool of actors, which is essentially different. This function only returns the single actor case.

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

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



More information about the jboss-user mailing list