cancel
Showing results for 
Search instead for 
Did you mean: 

API Question

frecklefoot
Champ in-the-making
Champ in-the-making
I'm writing a proof-of-concept application using Activiti. I have to demonstrate that I can tell what process instances are running and what "state" they are in. I can get a list of processes, but I can't find any API calls that let me query the state of a process, like, for example, what task is executing or what user or group a task is waiting on. In which service "family" (e.g. RuntimeService, TaskService, etc.) would I look for such methods? I thought that ProcessInstance should have such methods, but it only has a couple of methods, neither of which address this.

Thanks in advance!
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

To get a list of open user tasks for a process instance you can use the TaskService.
When you get a Task object you can get the assignee info etc.

Best regards,

frecklefoot
Champ in-the-making
Champ in-the-making
Got it. Thanks!  Smiley Very Happy