Skip to content

Commit

Permalink
[JBPM-10194] Fix TASK_AVG_DURATION query for postgres (#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmunozfe authored Sep 13, 2023
1 parent 333e4f8 commit aa074a8
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 aa074a8

Please sign in to comment.