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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to