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)?
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?
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.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.