cancel
Showing results for 
Search instead for 
Did you mean: 

count of task of process definition

kumaras
Champ in-the-making
Champ in-the-making
Hi,
    I have an process definition form which i have to fetch count of progressing/completed task in each task how to get this
help me on this
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Kumar,

count of completed tasks can be fetched from the history.
Query runtime service for opened tasks.

Regards
Martin

kumaras
Champ in-the-making
Champ in-the-making
Dear Martin,
Thanks for your reply,
I am new to activiti so Can you please send me samples to achive this i.e i would get the process instance running through URI can i get the count through URI or else i need to write any java class or script to achive

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Kumar,

org.activiti.engine.HistoryService#createHistoricProcessInstanceQuery
org.activiti.engine.HistoryService#createHistoricActivityInstanceQuery

org.activiti.engine.TaskService#createTaskQuery
org.activiti.engine.RuntimeService#createProcessInstanceQuery
(examples in the jUnit tests)

Regards
Martin