summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-08-14 05:26:03 (EDT)
committer Stephan Born2013-09-23 05:00:34 (EDT)
commitb9dc41dc488a1f18d1e4993d1674c4272c6893a9 (patch)
treebaf13dfd35c6def4d3248738b318e6cc15c3cbfb
parent2f85219cdf2f31bdb756fe329f1b105d7daa14f7 (diff)
downloadorg.eclipse.stardust.ui.web-b9dc41dc488a1f18d1e4993d1674c4272c6893a9.zip
org.eclipse.stardust.ui.web-b9dc41dc488a1f18d1e4993d1674c4272c6893a9.tar.gz
org.eclipse.stardust.ui.web-b9dc41dc488a1f18d1e4993d1674c4272c6893a9.tar.bz2
Jira-ID: CRNT-29642
Made changes to append 'Unified' and 'Personal' to Worklist. Added I18N bundle entry for Unified and Personal WL entries. git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@66679 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java15
-rw-r--r--process-portal/src/main/resources/processportal_en.properties2
2 files changed, 17 insertions, 0 deletions
diff --git a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java
index a325089..00ea360 100644
--- a/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java
+++ b/process-portal/src/main/java/org/eclipse/stardust/ui/web/processportal/view/WorklistTableBean.java
@@ -52,6 +52,7 @@ import org.eclipse.stardust.engine.api.query.WorklistQuery;
import org.eclipse.stardust.engine.api.runtime.ActivityInstance;
import org.eclipse.stardust.engine.api.runtime.ActivityInstanceState;
import org.eclipse.stardust.engine.api.runtime.ProcessInstance;
+import org.eclipse.stardust.engine.api.runtime.UserInfo;
import org.eclipse.stardust.ui.event.ActivityEvent;
import org.eclipse.stardust.ui.event.ActivityEventObserver;
import org.eclipse.stardust.ui.web.common.UIComponentBean;
@@ -252,7 +253,21 @@ public class WorklistTableBean extends UIComponentBean
showAllWorklist = (Boolean) getParamFromView("showAllWorklist");
if (StringUtils.isNotEmpty(wrappedLabel))
{
+ if (showAllWorklist)
+ {
+ this.view.setLabel(getMessages().getString("label.unifiedWorklist") + " "
+ + getMessages().getString("wrappedLabel", wrappedLabel));
+ }
+ else if (participantInfo instanceof UserInfo)
+ {
+ this.view.setLabel(getMessages().getString("label.personalWorklist") + " "
+ + getMessages().getString("wrappedLabel", wrappedLabel));
+ }
+ else
+ {
this.view.setLabel(getMessages().getString("wrappedLabel", wrappedLabel));
+ }
+ PortalApplication.getInstance().updateViewTitle(this.view);
}
break;
diff --git a/process-portal/src/main/resources/processportal_en.properties b/process-portal/src/main/resources/processportal_en.properties
index faa38eb..a84db1c 100644
--- a/process-portal/src/main/resources/processportal_en.properties
+++ b/process-portal/src/main/resources/processportal_en.properties
@@ -231,6 +231,8 @@ views.activityPanel.labelTitle=Activity Panel
views.notesPanel.label=Notes (${viewParams.processName}[20] #${viewParams.oid})
views.worklistPanel.label=Worklist (${viewParams.name})
views.worklistPanel.wrappedLabel=Worklist ({0})
+views.worklistPanel.label.unifiedWorklist=Unified
+views.worklistPanel.label.personalWorklist=Personal
views.worklistPanel.labelTitle=Worklist
views.processHistoryPanel.label=Process History (#${viewParams.oid})