[jboss-user] [JBoss jBPM] - Re: question about how to retrieve all tasks

mwohlf do-not-reply at jboss.com
Thu Nov 22 05:14:47 EST 2007


This can be done with a hibernate query, you can even add some ordering:

  | DetachedCriteria taskCrit = DetachedCriteria.forClass(TaskInstance.class)
  |  .add(Restrictions.eq("actorId", actorId)
  |  .addOrder(Order.desc("start");
  | 
  | List<TaskInstance> taskList = taskCrit.getExecutableCriteria(jbpmContext.getSession()).list();
  | 

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

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



More information about the jboss-user mailing list