cancel
Showing results for 
Search instead for 
Did you mean: 

Show status of workflow steps

rsingleton
Champ in-the-making
Champ in-the-making
I'm looking to use alfresco for document review and approval. One of the important things I need is for users to be able to see the status documents are in during movement through a workflow. Is there a way to create workspace that lists all the documents in that workspace along with the current step of the workflow the document is in.

For instance I have a workflow that goes through 3 reviews before approval. I would like to quickly see all my list of documents and which user has them for review.

The only thing I was able to see is drilling into each document details specifically and then it only says what workflow that document is part of, not which step. and it would be cumbersome to go into every document individually. Would be great if in list view you can see the current status of each document.
4 REPLIES 4

groberts
Champ on-the-rise
Champ on-the-rise
I need to do the same thing.  I'll post back here when I've figured it out.

I'll try to extend the Advanced Search to match documents under review.   Or maybe I need to write a Dashlet using Freemaker that does the search and renders a summary of results.\

The Enterprise ECM Implementation book is pretty useful.

groberts
Champ on-the-rise
Champ on-the-rise
I found some example Web Scripts.  Although they generate html,  they also show how to extract tasks and resources from the workflow API.  I used these to uild some JSON which is sent to a modified version of docasu.


My Tasks (Office Add-In)
GET /alfresco/service/office/myTasks?p={path}

Generate the Office Add-In My Tasks page

Authentication:   user
Transaction:   required
Format Style:   any
Default Format:   html
Id:   org/alfresco/office/myTasks.get
Descriptor:   classpath:alfresco/templates/webscripts/org/alfresco/office/myTasks.get.desc.xml

My Tasks Detail (Office Add-In)
GET /alfresco/service/office/myTasksDetail?t={taskId}

Generate the Office Add-In Task Detail page

Authentication:   user
Transaction:   required
Format Style:   any
Default Format:   html
Id:   org/alfresco/office/myTasksDetail.get
Descriptor:   classpath:alfresco/templates/webscripts/org/alfresco/office/myTasksDetail.get.desc.xml

groberts
Champ on-the-rise
Champ on-the-rise
After looking at this again I find that the tasks I get are only those assigned to admin,  regardless of who has been authenticated.

I assigned some workflow tasks to several users and to admin and found that those users coudl not see tasks assigned to them,  but could see admin's tasks.

http://localhost:8080/alfresco/service/office/myTasks

Its as if admin is always the authenticated user.

I''ll debug WorkflowManager.java getAssignedTasks().

Mystified.

groberts
Champ on-the-rise
Champ on-the-rise
Solved:   I was calling the web script from within docasu and somehow although I thought I had logged in as an ordinary user,  the script was being run as though admin had been authenticated.

I found this out by calling the script from a terminal window;

curl -v "http://localhost:8080/alfresco/service/api/login?u=alan.nichols&pw=xxxxxxx"
..
..
<ticket>TICKET_c3fed7665e3f1fe26ed46fb4611f1a055e2683c9</ticket>
..
..

curl "http://localhost:8080/alfresco/service/docasu/workflow/tasks?alf_ticket=TICKET_c3fed7665e3f1fe26ed46..."

Next challenge is to understand why docasu was calling the script as admin.