summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-03-01 08:33:01 (EST)
committer Sven Rottstock2013-03-11 06:38:21 (EDT)
commitcf8a014cd050fe3ca1415c93a59084833c876299 (patch)
tree1cb2d32b78b9c1134311c4f290bf09caa606fe68
parente279e7a967e550dfa446c78d595623d97ebec933 (diff)
downloadorg.eclipse.stardust.ui.web-cf8a014cd050fe3ca1415c93a59084833c876299.zip
org.eclipse.stardust.ui.web-cf8a014cd050fe3ca1415c93a59084833c876299.tar.gz
org.eclipse.stardust.ui.web-cf8a014cd050fe3ca1415c93a59084833c876299.tar.bz2
Jira-ID: CRNT-28039
Some scenario's worklists.getActivityCount return LONG.MIN_VALUE, added check for > -1 git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@63406 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/MyProcessesModel.java2
-rw-r--r--process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/OverviewBean.java6
-rw-r--r--process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/WorklistsTreeUserObject.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/MyProcessesModel.java b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/MyProcessesModel.java
index 0ca73aa..93b0249 100644
--- a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/MyProcessesModel.java
+++ b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/MyProcessesModel.java
@@ -62,7 +62,7 @@ public class MyProcessesModel
{
Long totalCount = ProcessWorklistCacheManager.getInstance().getWorklistCount(processDefinition);
Long totalCountThreshold = ProcessWorklistCacheManager.getInstance().getWorklistCountThreshold(processDefinition);
- if (totalCount < Long.MAX_VALUE)
+ if (totalCount < Long.MAX_VALUE && totalCount > -1)
return totalCount.toString();
else
return MessagesViewsCommonBean.getInstance().getParamString("common.notification.worklistCountThreshold",
diff --git a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/OverviewBean.java b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/OverviewBean.java
index 4e8b2e9..30968e7 100644
--- a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/OverviewBean.java
+++ b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/OverviewBean.java
@@ -242,7 +242,7 @@ public class OverviewBean extends AbstractLaunchPanel implements InitializingBea
{
Long totalCount = SpecialWorklistCacheManager.getInstance().getWorklistCount(SpecialWorklistCacheManager.ALL_ACTVITIES);
Long totalCountThreshold = SpecialWorklistCacheManager.getInstance().getWorklistCountThreshold(SpecialWorklistCacheManager.ALL_ACTVITIES);
- if(totalCount < Long.MAX_VALUE)
+ if(totalCount < Long.MAX_VALUE && totalCount > -1)
return totalCount.toString();
else
return MessagesViewsCommonBean.getInstance().getParamString("common.notification.worklistCountThreshold",
@@ -253,7 +253,7 @@ public class OverviewBean extends AbstractLaunchPanel implements InitializingBea
{
Long totalCount = SpecialWorklistCacheManager.getInstance().getWorklistCount(SpecialWorklistCacheManager.CRITICAL_ACTVITIES);
Long totalCountThreshold = SpecialWorklistCacheManager.getInstance().getWorklistCountThreshold(SpecialWorklistCacheManager.CRITICAL_ACTVITIES);
- if(totalCount < Long.MAX_VALUE)
+ if(totalCount < Long.MAX_VALUE && totalCount > -1)
return totalCount.toString();
else
return MessagesViewsCommonBean.getInstance().getParamString("common.notification.worklistCountThreshold",
@@ -306,7 +306,7 @@ public class OverviewBean extends AbstractLaunchPanel implements InitializingBea
SessionContext.findSessionContext().getUser());
Long totalCountThreshold = ParticipantWorklistCacheManager.getInstance().getWorklistCountThreshold(
SessionContext.findSessionContext().getUser());
- if(totalCount < Long.MAX_VALUE)
+ if(totalCount < Long.MAX_VALUE && totalCount > -1)
return totalCount.toString();
else
return MessagesViewsCommonBean.getInstance().getParamString("common.notification.worklistCountThreshold",
diff --git a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/WorklistsTreeUserObject.java b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/WorklistsTreeUserObject.java
index 5378830..bbe3fb4 100644
--- a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/WorklistsTreeUserObject.java
+++ b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/launchpad/WorklistsTreeUserObject.java
@@ -107,7 +107,7 @@ public class WorklistsTreeUserObject extends IceUserObject
Long totalCount = ParticipantWorklistCacheManager.getInstance().getWorklistCount(participantInfo);
Long totalCountThreshold = ParticipantWorklistCacheManager.getInstance().getWorklistCountThreshold(
participantInfo);
- if (totalCount < Long.MAX_VALUE)
+ if (totalCount < Long.MAX_VALUE && totalCount > -1)
return totalCount.toString();
else
return MessagesViewsCommonBean.getInstance().getParamString("common.notification.worklistCountThreshold",