[jboss-user] [JBoss jBPM] - Re: Task list of specified actor

ebrahimsalehi do-not-reply at jboss.com
Sun Sep 23 10:44:03 EDT 2007

Dear member;
TaskMgmtSession which can be fetched from jbpmContext has got various methods to find task instances.
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

More information about the jboss-user mailing list