Description of problem: The jbpmHumanTasksWithUser dataset (which is used to display task lists in the business-central UI) uses the following query: select t.activationTime, t.actualOwner, t.createdBy, t.createdOn, t.deploymentId, t.description, t.dueDate,t.name, t.parentId, t.priority, t.processId, t.processInstanceId, t.processSessionId, t.status, t.taskId, t.workItemId, oe.id oeid from AuditTaskImpl t, PeopleAssignments_PotOwners po, OrganizationalEntity oe where t.id = po.task_id and po.entity_id = oe.id It links the primary key of the AuditTaskImpl table to the taskId in PeopleAssignments_PotOwners. So this query assumes that the primary key of AuditTaskImpl is always the same as the taskId. With MySQL (I didn't test with other DB's), the primary key of AuditTaskImpl is generated with AUTO_INCREMENT In my tests with bpmsuite-6.2.0.ER5 with MySQLDB it happened a couple of times that the primary key of rows in AuditTaskImpl was no longer the same as the taskId of the same row. As a result the jbpmHumanTasksWithUser dataset returned erroneous results, breaking the task list UI functionality in business-central. I do not recall the precise conditions in which this mismatch happened, so I cannot reproduce easily. Possible solution: link AuditTask.taskId to PeopleAssignments_PotOwners.task_id So the query becomes: select t.activationTime, t.actualOwner, t.createdBy, t.createdOn, t.deploymentId, t.description, t.dueDate,t.name, t.parentId, t.priority, t.processId, t.processInstanceId, t.processSessionId, t.status, t.taskId, t.workItemId, oe.id oeid from AuditTaskImpl t, PeopleAssignments_PotOwners po, OrganizationalEntity oe where t.taskId = po.task_id and po.entity_id = oe.id Version-Release number of selected component (if applicable): bpmsuite-6.2.0.ER5/ How reproducible: Difficult to reproduce Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
the query has been changed in this commits: 6.3.x https://github.com/droolsjbpm/jbpm-console-ng/commit/07e02883cedb57d3ce780240508443829f0f8fb5 master https://github.com/droolsjbpm/jbpm-console-ng/commit/957b7a659f08a5cfd9df5b9305cffd09402dc2da
And 6.3.x https://github.com/droolsjbpm/kie-wb-distributions/commit/bfcb6c29b36684a763cc2e679c8e7acc42a31c93 master: https://github.com/droolsjbpm/kie-wb-distributions/commit/8798f99e48feb7a20c425224dcab2a6101044e95
I tried to reproduce it with ER5 and although I had the same primary key and taskId in one row, task list didn't behave correctly. With CR2 everything works as it should. Therefore I am marking this as verified.