summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntje Fuhrmann2013-03-26 06:21:11 (EDT)
committerSven Rottstock2013-03-26 06:21:11 (EDT)
commitbd3be197be2662a19c36a173329eadd19bacc12f (patch)
treeb9f2cec23dd7543fd76ef86e0bdee0a544500914
parent55c8ecfd2e138d5d28f6ff63863dfc78c9a1c944 (diff)
downloadorg.eclipse.stardust.engine-bd3be197be2662a19c36a173329eadd19bacc12f.zip
org.eclipse.stardust.engine-bd3be197be2662a19c36a173329eadd19bacc12f.tar.gz
org.eclipse.stardust.engine-bd3be197be2662a19c36a173329eadd19bacc12f.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@63954 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--stardust-engine-core/src/main/java/org/eclipse/stardust/engine/api/query/WorklistQueryEvaluator.java14
1 files changed, 9 insertions, 5 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 2d7fa80..6f3dbf0 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,12 @@ public class WorklistQueryEvaluator
: userGroupRtOids.get(new Long(performer)));
if (collector != null)
{
+ if (count > totalCountThreshold)
+ {
+ count = Long.MAX_VALUE;
+ }
collector.addToTotalCount(count);
+ collector.setTotalCountThreshold(totalCountThreshold);
}
else
{
@@ -272,11 +277,10 @@ public class WorklistQueryEvaluator
}
}
}
- if (totalCount > totalCountThreshold)
- {
- totalCount = Long.MAX_VALUE;
- break;
- }
+ }
+ if (totalCount > totalCountThreshold)
+ {
+ totalCount = Long.MAX_VALUE;
}
}
catch (SQLException e)