[jboss-user] [JBoss jBPM] - Re: How to get the tasks instance list when there is no swim

simonbaker do-not-reply at jboss.com
Fri Feb 8 16:55:49 EST 2008


Would something like:

  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | 
  | ProcessInstance procinst = jbpmContext.getProcessInstance(longMyProcId);
  | 
  | TaskMgmtInstance taskmgmtinst = procinst.getTaskMgmtInstance();
  | 
  | Collection collTaskInstances = taskmgmtinst.getTaskInstances();
  | 

be helpful for your application?  If you need all task instances for all process instances you'd need to loop over process instances.

If you need to get all process instances you might want to check into:

JbpmContext.getGraphSession()
GraphSession.findLatestProcessDefinitions()
GraphSession.findProcessInstances(long processDefinitionId)





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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127994



More information about the jboss-user mailing list