[jboss-user] [JBoss jBPM] - Re: TaskInstance order by in taskList.getTaskInstances() ?

bradsdavis do-not-reply at jboss.com
Mon Mar 2 18:12:13 EST 2009


If you wanted to start somewhere for this, I would first understand Hibernate queries.  The Task Management Session uses Hibrernate to make this query.

So, here is the Hibernate Query they use to get tasks for a given user:


  | select ti
  |       from org.jbpm.taskmgmt.exe.TaskInstance as ti
  |       where ti.actorId = :actorId
  |         and ti.isOpen = true
  | 

See: http://www.hibernate.org/hib_docs/nhibernate/html/queryhql.html

For the hibernate query, see the source from org.jbpm.db.TaskMgmtSession, which calls a query in org/jbpm/db/hibernate.queries.hbm.xml

You could get the Hibernate session from jBPM, and then create a Query off of it, making your appropriate order by.

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

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



More information about the jboss-user mailing list