diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties
index 3783dec8dc..8e492a9219 100644
--- a/config/alfresco/messages/webclient.properties
+++ b/config/alfresco/messages/webclient.properties
@@ -931,7 +931,11 @@ id=Id
status=Status
my_workitems_todo_title=My Work Items To Do
my_workitems_todo_desc=List of your workflow items still to complete
+my_workitems_completed_title=My Completed Work Items
+my_workitems_completed_desc=List of your completed workflow items
due_date=Due Date
+completed_on=Completed on
+outcome=Outcome
reassign=Reassign
# Admin Console messages
diff --git a/config/alfresco/web-client-config.xml b/config/alfresco/web-client-config.xml
index 348988f768..bf6ab9a60a 100644
--- a/config/alfresco/web-client-config.xml
+++ b/config/alfresco/web-client-config.xml
@@ -190,14 +190,14 @@
jsp="/jsp/dashboards/dashlets/getting-started.jsp" allow-narrow="false" />
+
-
workItems;
+ protected List completedWorkItems;
private static final Log logger = LogFactory.getLog(WorkflowBean.class);
// ------------------------------------------------------------------------------
// Bean Getters and Setters
+ /**
+ * Returns a list of nodes representing the to do work items the
+ * current user has.
+ *
+ * @return List of to do work items
+ */
public List getWorkItemsToDo()
{
// get the current username
@@ -61,6 +68,33 @@ public class WorkflowBean
return this.workItems;
}
+ /**
+ * Returns a list of nodes representing the completed work items the
+ * current user has.
+ *
+ * @return List of completed work items
+ */
+ public List getWorkItemsCompleted()
+ {
+ // get the current username
+ FacesContext fc = FacesContext.getCurrentInstance();
+ User user = Application.getCurrentUser(fc);
+ String userName = ISO9075.encode(user.getUserName());
+
+ // get the current in progress tasks for the current user
+ List tasks = this.workflowService.getAssignedTasks(
+ userName, WorkflowTaskState.COMPLETED);
+
+ // create a list of transient nodes to represent
+ this.completedWorkItems = new ArrayList(tasks.size());
+ for (WorkflowTask task : tasks)
+ {
+ createWorkItem(task);
+ }
+
+ return this.completedWorkItems;
+ }
+
/**
* Sets the workflow service to use
*
diff --git a/source/web/jsp/dashboards/dashlets/my-completed-tasks.png b/source/web/jsp/dashboards/dashlets/my-completed-tasks.png
deleted file mode 100644
index f53c1bbd04..0000000000
Binary files a/source/web/jsp/dashboards/dashlets/my-completed-tasks.png and /dev/null differ
diff --git a/source/web/jsp/dashboards/dashlets/tasklist-completed.jsp b/source/web/jsp/dashboards/dashlets/tasklist-completed.jsp
deleted file mode 100644
index 8ce35a5ae2..0000000000
--- a/source/web/jsp/dashboards/dashlets/tasklist-completed.jsp
+++ /dev/null
@@ -1,22 +0,0 @@
-<%--
- Copyright (C) 2006 Alfresco, Inc.
-
- Licensed under the Mozilla Public License version 1.1
- with a permitted attribution clause. You may obtain a
- copy of the License at
-
- http://www.alfresco.org/legal/license.txt
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- either express or implied. See the License for the specific
- language governing permissions and limitations under the
- License.
---%>
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
-<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
-
-
diff --git a/source/web/jsp/workflow/workitems-completed-dashlet.jsp b/source/web/jsp/workflow/workitems-completed-dashlet.jsp
new file mode 100644
index 0000000000..a8603f4d6b
--- /dev/null
+++ b/source/web/jsp/workflow/workitems-completed-dashlet.jsp
@@ -0,0 +1,80 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
+<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
+
+
+
+ <%-- Primary column for details view mode --%>
+
+
+
+
+
+
+
+
+
+
+ <%-- Task id column --%>
+
+
+
+
+
+
+
+ <%-- Type column --%>
+
+
+
+
+
+
+
+ <%-- Completed date column --%>
+
+
+
+
+
+
+
+
+
+ <%-- Outcome column --%>
+
+
+
+
+
+
+
+ <%-- Actions column --%>
+ <%--
+
+
+
+
+
+
+
+
+
+
+
+
+
+ --%>
+
+
+
+
+
\ No newline at end of file
diff --git a/source/web/jsp/workflow/workitems-todo-dashlet.jsp b/source/web/jsp/workflow/workitems-todo-dashlet.jsp
index 59ec036ddb..20c6d87b07 100644
--- a/source/web/jsp/workflow/workitems-todo-dashlet.jsp
+++ b/source/web/jsp/workflow/workitems-todo-dashlet.jsp
@@ -3,7 +3,7 @@
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
-
@@ -27,7 +27,7 @@
- <%-- Description column --%>
+ <%-- Task id column --%>
@@ -85,4 +85,4 @@
-
\ No newline at end of file
+
\ No newline at end of file