cancel
Showing results for 
Search instead for 
Did you mean: 

How to find Current running tasks

kethur
Champ in-the-making
Champ in-the-making
Hi all,

I could not find a way to find all the current running tasks in a workflow instance.  Say.. I have a workflow that has 2 parallel running tasks currently and 2 different users are working on them.  Could you let me know if there is a class/method to get this information?

Thanks,
Raj
2 REPLIES 2

p4w3l
Champ in-the-making
Champ in-the-making
how about: runtimeService.getActiveActivityIds(String executionId) ?

where instance id is an execution id

jbarrez
Star Contributor
Star Contributor
Or if both of them are user tasks, use the taskService.createTaskQuery().list();