getPossibleUsersOfPendingHumanTask() method takes long time to complete



I am using ProcessAPIImpl.getPossibleUsersOfPendingHumanTask() method to get the possible users of a pending human task. The method returns constantly in about 4-5 minutes both on my development machine (with h2 database) and on the production server (with PostgreSQL database). I have ~450 users in the organization and the method returns max 2 users on a call.

Is there a way to speed up the execution of this method? Or another way to get these users (maybe using user filters)?

Using Bonita BPM Community Edition 6.2.3




Submitted by rlg on Tue, 10/21/2014 - 17:27

Hi Sorin,

could you give us more details in your question about your users' organization, the actor mapping you define on the steps? Do you see those kind of response time on all your steps or only an identified one?

Regards, Rodrigue

Submitted by sorin.radulescu on Tue, 10/21/2014 - 18:09

I have a custom actor filter defined on the lane which returns the adequate users based on actor name. This actor filter runs quick enough - about 10 milliseconds.

I have noticed this behavior on every step calling this method. Using some logging I have pinpointed the bottleneck to this method.

If you need more information please be more specific.



No answers yet.