This content has been marked as final.
Show 3 replies
-
1. Re: Listing Active Taskings on a Workflow
bradsdavis Feb 26, 2009 1:05 PM (in response to numbers2)Use the TaskMgmtSession. Search for that in the documentation.
-
2. Re: Listing Active Taskings on a Workflow
numbers2 Feb 26, 2009 2:13 PM (in response to numbers2)Looks like my terminology was a little off, what i'm actally looking for a listing of Process Instances - but most of the functions I've gone through are singular. Is it even possible to get this listing from the ExecutionContext or should I approach this another way? Thanks.
-
3. Re: Listing Active Taskings on a Workflow
numbers2 Feb 26, 2009 2:38 PM (in response to numbers2)Neverminds I got it. For anyone interested in this in the
//This gets the Process Definition ID of the process that is running
long id = executionContext.getProcessDefinition().getId();
//This grabs a list of all the process instances
List pis = executionContext.getJbpmContext().getGraphSession().findProcessInstances(id);