2 Replies Latest reply on May 20, 2010 4:41 AM by Stephane Malbequi

    TaskQuery - Find all tasks of any version of a process definition

    Stephane Malbequi Newbie



      it's not possible to create a task query to find all tasks of all versions of a specific process because TaskQuery append a where clause with a = operator and not a like operator


      if (processDefinitionId!=null) {
            appendWhereClause("task.processInstance.processDefinitionId = '"+processDefinitionId+"' ", hql);


      may be, it's a good idea to use a like operator instead of = operator and let the developper the possibilty to use the api like that




      Best Regards