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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content