1, you can add the query in the file "org\jbpm\db\hibernate.queries.hbm.xml"
,like
<![CDATA[
select ti
from org.jbpm.taskmgmt.exe.TaskInstance as ti
where ti.actorId = :actorId
and ti.isOpen = true and ti.end is not null
]]>
2, you can add the method findFinishedTaskInstances int the java file
"org\jbpm\db\TaskMgmtSession.java"
/**
* get the finished tasllist for a given actor.
*/
public List findFinishedTaskInstances(String actorId) {
List result = null;
try {
Query query =
session.getNamedQuery("TaskMgmtSession.findFinishedTaskInstancesByActorId");
query.setString("actorId", actorId);
result = query.list();
} catch (Exception e) {
log.error(e);
jbpmSession.handleException();
throw new JbpmException("couldn't get task instances list for actor
'"+actorId+"'", e);
}
return result;
}
3, rebuild the jpdl
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992402#3992402
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992402
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user