cancel
Showing results for 
Search instead for 
Did you mean: 

Deleted.

anon26949
Star Contributor
Star Contributor

Deleted.

1 ACCEPTED ANSWER

anon26949
Star Contributor
Star Contributor
3 REPLIES 3

anon26949
Star Contributor
Star Contributor

Deleted.

thuynh
Star Contributor
Star Contributor

Hi Aleksey Bykov ,

Is it possible in Activiti by using JavaScript to calculate the number of participants in these groups?..

You can use IdentityService's user query to get the number of participants of a group.

identityService.createUserQuery().memberOfGroup(group.getId()).list().size()

I ran a unit test for this and it works.

Hope this helps,

Thanks,

Thong Huynh

anon26949
Star Contributor
Star Contributor

Deleted.