summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-06-14 01:04:09 (EDT)
committer Manik Kishore2012-06-19 07:31:57 (EDT)
commit02ba504622a211e5c67a682f41a96fc4eadeffea (patch)
treeb46e9fa1b325ad61ba4ad693d8a3e8ec52b51db3
parent7a22770947f0345a374106add12187ba29b9d8c0 (diff)
downloadorg.eclipse.stardust.ui.web-02ba504622a211e5c67a682f41a96fc4eadeffea.zip
org.eclipse.stardust.ui.web-02ba504622a211e5c67a682f41a96fc4eadeffea.tar.gz
org.eclipse.stardust.ui.web-02ba504622a211e5c67a682f41a96fc4eadeffea.tar.bz2
Jira-ID: CRNT-25071
1)Reverted the changes made in CriticalityConfigurationBean.java git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@57058 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/criticality/CriticalityConfigurationBean.java25
1 files changed, 12 insertions, 13 deletions
diff --git a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/criticality/CriticalityConfigurationBean.java b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/criticality/CriticalityConfigurationBean.java
index d7d0656..9ecf652 100644
--- a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/criticality/CriticalityConfigurationBean.java
+++ b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/criticality/CriticalityConfigurationBean.java
@@ -512,11 +512,11 @@ public class CriticalityConfigurationBean extends UIComponentBean implements Vie
Preferences retrievedPrefs = adminService.getPreferences(PreferenceScope.PARTITION,
PreferencesConstants.MODULE_ID_ENGINE_INTERNALS,
PreferencesConstants.PREFERENCE_ID_WORKFLOW_CRITICALITES);
- Object value = retrievedPrefs.getPreferences().get(
- ActivityInstanceStateChangeMonitor.CRITICALITY_PREF_RECALC_ONCREATE);
- if (null != value)
+ Boolean criteria = (Boolean) retrievedPrefs.getPreferences().get(ActivityInstanceStateChangeMonitor.CRITICALITY_PREF_RECALC_ONCREATE);
+
+ if (null != criteria)
{
- return Boolean.parseBoolean(value.toString());
+ return criteria.booleanValue();
}
return true; //default true
@@ -531,12 +531,11 @@ public class CriticalityConfigurationBean extends UIComponentBean implements Vie
Preferences retrievedPrefs = adminService.getPreferences(PreferenceScope.PARTITION,
PreferencesConstants.MODULE_ID_ENGINE_INTERNALS,
PreferencesConstants.PREFERENCE_ID_WORKFLOW_CRITICALITES);
- Object value = retrievedPrefs.getPreferences().get(
- ActivityInstanceStateChangeMonitor.CRITICALITY_PREF_RECALC_ONSUSPEND);
-
- if (null != value)
+ Boolean criteria = (Boolean) retrievedPrefs.getPreferences().get(ActivityInstanceStateChangeMonitor.CRITICALITY_PREF_RECALC_ONSUSPEND);
+
+ if (null != criteria)
{
- return Boolean.parseBoolean(value.toString());
+ return criteria.booleanValue();
}
return true; //default true
@@ -551,11 +550,11 @@ public class CriticalityConfigurationBean extends UIComponentBean implements Vie
Preferences retrievedPrefs = adminService.getPreferences(PreferenceScope.PARTITION,
PreferencesConstants.MODULE_ID_ENGINE_INTERNALS,
PreferencesConstants.PREFERENCE_ID_WORKFLOW_CRITICALITES);
- Object value = retrievedPrefs.getPreferences().get(UpdateCriticalityAction.CRITICALITY_PREF_RECALC_ONPRIORITY);
-
- if (null != value)
+ Boolean criteria = (Boolean) retrievedPrefs.getPreferences().get(UpdateCriticalityAction.CRITICALITY_PREF_RECALC_ONPRIORITY);
+
+ if (null != criteria)
{
- return Boolean.parseBoolean(value.toString());
+ return criteria.booleanValue();
}
return true; //default true