How to get count of current activities of ProcessInstance??

cancel
Showing results for 
Search instead for 
Did you mean: 
sawandarekar
Member II

How to get count of current activities of ProcessInstance??

Sample Process

As you see in above process activiti diagram there are three Task:

1. Handle vacation Request

2. Adjust vacation Request

3. Send confirmation mail

I am using following code:

   long count = taskService.createTaskQuery().taskName("task_name").count();

Above code gives only active manual task count.

What i want:

  1. I want to fetch count of processes that are in handle vacation request task and others
  2. Is there any way by i which i will fetch the current activity of process instance

I am able to fetch all task but Is there anything in API to get these details.

1 Reply
kalpesh_c2
Senior Member

Re: How to get count of current activities of ProcessInstance??

Hi, sawan darekar

You can get list of active process instances by using rest api refer this link 

Activiti User Guide 

Other

To access the REST API Explorer refer link http://hostSmiley Tongueort/activiti-app/api-explorer.html

Process Instance List | Alfresco Documentation 

Activiti User Guide 

Thanks,

Kalpesh