[jboss-user] [jBPM Users] - Re: Accessing the current task of a ProcessInstance and/or h

Krohm do-not-reply at jboss.com
Fri Oct 9 03:34:30 EDT 2009


I would try :

List<Task> currentTasks = yourProcessEngine.getTaskService()
  | .createTaskQuery() 
  | .processInstanceId(yourProcessInstanceId)
  | .list()

You can also add various filters and/or order them by Name/ Priority, etc ...

(http://docs.jboss.com/jbpm/v4/javadocs/)

If you want all the subprocesses, you could also look at the following methods in org.jbpm.api.Execution

  | getExecutions() 
  | findActiveActivityNames() 
  | getExecutionsMap() 
  | 

hope this helps.

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

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



More information about the jboss-user mailing list