getTasksAssignedAsPotentialOwner method of TaskService returns duplicate record

Solution Verified - Updated -

Issue

  • Create a process with a User Task which has both actorId and groupId, Start a process and let it create a Task.
  • Now call getTasksAssignedAsPotentialOwner with actorId and groupIds,
 List<String> groupIds = new ArrayList<String>();
 groupIds.add("PM");
 List<TaskSummary> list = localTaskService.getTasksAssignedAsPotentialOwner("john", groupIds,  "en-UK");
 System.out.println("list.size() = " + list.size());
  • getTasksAssignedAsPotentialOwner() method returns duplicate record.

Is that a Bug and what is the workaround?

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.