Skip to content

Commit

Permalink
[JBPM-10194] Fix TASK_AVG_DURATION query for postgres (kiegroup#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmunozfe authored and fjtirado committed Sep 15, 2023
1 parent 56c952d commit 0862f4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class TotalCompletionTimeLoadCalculator extends AbstractLoadCalculator {
+ "select new org.jbpm.services.task.assignment.impl.TaskAverageDuration(avg(bts.duration),t.taskData.deploymentId,t.taskData.processId,bts.taskName) "
+ "from BAMTaskSummaryImpl bts left join TaskImpl t on (bts.taskId = t.id) "
+ "where (bts.duration is not null) and t.taskData.processId = :procid and t.taskData.deploymentId = :depid and t.name = :taskname "
+ "group by t.taskData.deploymentId, t.taskData.processId, t.name";
+ "group by t.taskData.deploymentId, t.taskData.processId, t.name, bts.taskName";

/**
* Initialize the cache
Expand Down

0 comments on commit 0862f4d

Please sign in to comment.