Dear member;
TaskMgmtSession which can be fetched from jbpmContext has got various methods 
to find task instances.
context.getTaskMgmtSession().findTaskInstances(actor);
This method finds all active task instances from all process definitions. If 
you want to get task instances of a specified process definition you need to 
get all process instances of that process definition and then call 
findTaskInstancesByProcessInstance(ProcessInstance processInstance).
The other alternative is to fetch all tokens from process instances of a 
process definition and call findTaskInstancesByToken(long tokenId). These two 
methods find all task instances of all actors. To narrow the result make a 
contribution of findTaskInstancesByProcessInstance(ProcessInstance 
processInstance) and findTaskInstances(actor) or simply modify 
findTaskInstancesByProcessInstance including actor id in its hql.

Best Wishes
Ebrahim Salehi

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087639
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to