cancel
Showing results for 
Search instead for 
Did you mean: 

Task Dashlet

raphaelh
Champ in-the-making
Champ in-the-making
Hello,

I want to show in Alfresco Share in the Task Dashlet as a new Filter All completed Tasks, is this possible? I can't find out, how to define new Filters. But i see in Normale Alfresco Web Client there's a List containing Completed Tasks.

If it's not possible to implement this as Filter maybe a new Dashlet?

Greetings.
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
Funny, I've never noticed that Completed Tasks dashlet before. How long has that been there? Smiley Happy

If you go look at the code behind that dashlet, it uses a WorkflowBean. The WorkflowBean uses the WorkflowService to find the completed tasks. Here's the code:

// get the current in progress tasks for the current user
List<WorkflowTask> tasks = this.getWorkflowService().getAssignedTasks(
userName, WorkflowTaskState.COMPLETED);
           
// create a list of transient nodes to represent
this.completedTasks = new ArrayList<Node>(tasks.size());
for (WorkflowTask task : tasks)
{
    Node node = createTask(task);
    this.completedTasks.add(node);
    //…SNIP…
}

So you could definitely whip up your own Share dashlet that would display completed tasks. How much trouble a new filter would be requires further digging, but the API is there to support it, so best case, you add the filter-related code to the Share-tier web scripts and client-side JavaScript and you are done. Worst case is you do that plus you augment the existing workflow web scripts on the repository-tier to retrieve completed tasks.

Jeff