summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntje Fuhrmann2013-03-26 07:05:01 (EDT)
committer Sven Rottstock2013-03-26 07:05:01 (EDT)
commit2db23a4968f157eafab0e0988dcefc1a0fcb61e6 (patch)
tree46ff6619e34b79af4e6bc71f43b5fe64c24981cf
parentc106e7c747288c95397b003dd2fdc12583cf76ea (diff)
downloadorg.eclipse.stardust.engine-2db23a4968f157eafab0e0988dcefc1a0fcb61e6.zip
org.eclipse.stardust.engine-2db23a4968f157eafab0e0988dcefc1a0fcb61e6.tar.gz
org.eclipse.stardust.engine-2db23a4968f157eafab0e0988dcefc1a0fcb61e6.tar.bz2
Jira-ID: CRNT-28519
Exclude user filter: Portal displays "strange" numbers for participants worklists git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/engine@63960 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/query/WorklistQueryEvaluator.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/query/WorklistQueryEvaluator.java b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/query/WorklistQueryEvaluator.java
index 71864c4..5430285 100644
--- a/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/query/WorklistQueryEvaluator.java
+++ b/stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/query/WorklistQueryEvaluator.java
@@ -261,7 +261,11 @@ public class WorklistQueryEvaluator
: userGroupRtOids.get(new Long(performer)));
if (collector != null)
{
- if (count > totalCountThreshold)
+ long currentTotalCount = collector.getTotalCount();
+ long resultTotalCount = currentTotalCount == Long.MAX_VALUE
+ ? currentTotalCount
+ : currentTotalCount + count;
+ if (resultTotalCount > totalCountThreshold)
{
count = Long.MAX_VALUE;
collector.setTotalCount(count);