Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Dynamic user profile : Using the UserProfile object with queues
 

Using the UserProfile object with queues

When the findQueues value is set to false on UserProfile object by calling the setFindQueues() method, BP Server uses only the queues specified on the UserProfile object while getting the work item list available to the user. But if queues specified on UserProfile objects are null, then BP Server gets a list of all queues that the user belongs to, and also a list of all queues that contain any of the groups that the user belongs to. It then sets the queue list on UserProfile object and uses it for getting available work item list for the user.
When the findQueues value is set to true on UserProfile object by calling the setFindQueues() method with parameter value as ‘true’, BP Server first finds all groups that the user belongs to. Then it uses the user and all the group names to find all the queues where the user or the groups are members. The retrieved queue lists are added to the already specified queue list in UserProfile, and this is used for getting the available work item list for the user.
Note that queues are used only when the oebps.queues is set to true in the OEBPS_HOME\conf\oebps.conf file.
The following method on com.savvion.sbm.bizlogic.server.svo.WorkItemList class is one of the ways you can fetch available work items for the session user:
public static WorkItemList getAvailableList(Session session)