This content has been marked as final.
Show 2 replies
-
1. Re: Taks instances
pmuir Dec 13, 2006 4:49 AM (in response to melampo)@In List<TaskInstance> taskInstanceList;
is valid.
And of course you could @In JbpmContext; -
2. Re: Taks instances
melampo Dec 13, 2006 5:04 AM (in response to melampo)"petemuir" wrote:
@In List<TaskInstance> taskInstanceList;
is valid.
And of course you could @In JbpmContext;
Ok, it works fine... thank you.
I had it working now with this query:List<TaskInstance> ti = (List<TaskInstance>) context.getSession() .createQuery("select ti from org.jbpm.taskmgmt.exe.TaskInstance as ti where ti.actorId = :actorId and ti.end is null and ti.isCancelled = false and ti.name = :taskName") .setString("actorId", bibliotecario.getBibliotecario()) .setString("taskName", "evaluarPeticion").list();
but i prefer your solution, injecting the taskInstanceList is just what I need.
Thanks again.