How to list all Processes irrespective of logged user or who has started?

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

How to list all Processes irrespective of logged user or who has started?

Hi All,

I have a case where in I have to display all process list to the logged in user.

For example an app published to 2 users named user1 and user2. user1 logs in and he will start the process. By default i can display the process to him in process list. When user2 logs  the same process which user1 started also should display in his dashboard in my process list component. Is there any solution for this case?

Thanks & Regards

Anita Patil

13 Replies
eugenio_romano
Alfresco Employee

Re: How to list all Processes irrespective of logged user or who has started?

Hi is this question related to ADF?

anitapatil_bld
Active Member II

Re: How to list all Processes irrespective of logged user or who has started?

Hi Eugenio Romano‌ Yes it is ADF related question. 

eugenio_romano
Alfresco Employee

Re: How to list all Processes irrespective of logged user or who has started?

You need to assign the task to the user 2

anitapatil_bld
Active Member II

Re: How to list all Processes irrespective of logged user or who has started?

Hello Eugenio Romano‌, I have published app to group, In that group user1 and user2 both are there.

My case is Once user1 starts the app it should be visible to user2 in process list vise-versa. 

eugenio_romano
Alfresco Employee

Re: How to list all Processes irrespective of logged user or who has started?

I guess you need to assign the user task to the group 

anitapatil_bld
Active Member II

Re: How to list all Processes irrespective of logged user or who has started?

Hi Eugenio Romano‌ It is not working with your solution.

Actually there is an api in admin.war it is listing all process instances of all users how can i replace this api?

API is --- http://localhost:8080/activiti-admin/app/rest/activiti/process-instances 

eugenio_romano
Alfresco Employee

Re: How to list all Processes irrespective of logged user or who has started?

Not sure I got where you want replace the call

bassam_al-saror
Alfresco Employee

Re: How to list all Processes irrespective of logged user or who has started?

You'll need to use an admin to list all processes. The admin app uses the Engine Rest API. See Activiti User Guide & Activiti User Guide 

bassam_al-saror
Alfresco Employee

Re: How to list all Processes irrespective of logged user or who has started?

Also

POST api/enterprise/historic-process-instances/query

can be used using an admin user.