cancel
Showing results for 
Search instead for 
Did you mean: 

Work flow, where the information goes, once it is finished

bisana
Champ on-the-rise
Champ on-the-rise
Hi All
  What will be happening to the information on the work flow, once It is completed.
Is it possible to search for the finished workflow,
Is it possible to check the details of the finished work flow
Advice requested
Thanks
Joseph John
7 REPLIES 7

arnoldschrijve1
Champ on-the-rise
Champ on-the-rise
I believe that after canceling the workflow and task instance nodes are no longer available and there is currently no UI in Share that can display information on canceled workflows. However all information still exists in the database in the ACT_* Activiti tables.

Maybe you can connect the Activiti Explorer to these or there exists some addon for Share on the web. If not, you could also roll your own UI…a non-trivial task if you do it well.

I am curious what Alfresco/Activiti has on the roadmap for this. The ability to view history of completed/canceled workflows seems a valuable feature to me.

swemon
Champ on-the-rise
Champ on-the-rise
In explorer,
You can get completed workflows by adding "My Completed Tasks (List of your completed tasks)" in your dashboard with the use of "Configure Dashboard Wizard".
In share,
You need to write custom dashlet for adding completed task.
For cancelled workflow,  I don't know how to get them.

bisana
Champ on-the-rise
Champ on-the-rise
In explorer,
You can get completed workflows by adding "My Completed Tasks (List of your completed tasks)" in your dashboard with the use of "Configure Dashboard Wizard".

It did not work for me, Have you tried it yourself

swemon
Champ on-the-rise
Champ on-the-rise
yeah.. I already tried.

bisana
Champ on-the-rise
Champ on-the-rise
Thanks, is it because of the community version which I am using, I am not getting it
I have uploaded my dashboard screen shot at  "http://www.oss101.com/dm/MyDashBoard.png , for reference
Are you testing  the enterprise edition

swemon
Champ on-the-rise
Champ on-the-rise
I tested with alfresco community version 4.0 c.
I mean in alfresco explorer, you can get completed workflows by adding "My Completed Tasks (List of your completed tasks)" in your dashboard with the use of "Configure Dashboard Wizard".

Not in alfresco share.
You presented diagram in alfresco share. For share, you need to write a webscript to get completed workflows and create a custom dashlet to show them.
Here are webscript sample.

sma_task.get.desc.xml
<webscript>
  <shortname>Testing Workflow</shortname>
  <description>Testing Workflow Listing</description>
  <url>/workflow/sma</url>
  <format default="html">extension</format>
  <authentication>user</authentication>
</webscript>

sma_task.get.js
function main()
{
model.assignedTasks=workflow.getAssignedTasks();
model.completedTasks=workflow.getCompletedTasks();
model.definitions=workflow.getAllDefinitions();
}
main();

sma_task.get.html.ftl

<h1>SMA_Task</h1>
<h3>Tasks of user <u>${person.properties.userName}</u></h3>
<h2>Assigned Task </h2>
<table cellspacing=0 cellpadding=2>
   <tr>
      <th>Name</th>
      <th>Description</th>
      <th>Created Date</th>
      <th>Start Date</th>
      <th>Due Date</th>
      <th>Priority</th>
      <th>% Complete</th>
      <th>Status</th>
   </tr>
   <#list assignedTasks as t>
      <tr>
         <td>${t.name}</td>
         <td>${t.description}</td>
         <td>${t.properties["cm:created"]?datetime}</td>
         <td><#if t.properties["bpm:startDate"]?exists>${t.properties["bpm:startDate"]?datetime}<#else><i>None</i></#if></td>
         <td><#if t.properties["bpm:dueDate"]?exists>${t.properties["bpm:dueDate"]?datetime}<#else><i>None</i></#if></td>
         <td>${t.properties["bpm:priority"]}</td>
         <td>${t.properties["bpm:percentComplete"]}</td>
         <td>${t.properties["bpm:status"]}</td>
      </tr>
   </#list>
</table>
<h2>Completed Task </h2>
<table cellspacing=0 cellpadding=2>
   <tr>
      <th>Name</th>
      <th>Description</th>
      <th>Created Date</th>
      <th>Start Date</th>
      <th>Due Date</th>
      <th>Priority</th>
      <th>% Complete</th>
      <th>Status</th>
   </tr>
   <#list completedTasks as t>
      <tr>
         <td>${t.name}</td>
         <td>${t.description}</td>
         <td>${t.properties["cm:created"]?datetime}</td>
         <td><#if t.properties["bpm:startDate"]?exists>${t.properties["bpm:startDate"]?datetime}<#else><i>None</i></#if></td>
         <td><#if t.properties["bpm:dueDate"]?exists>${t.properties["bpm:dueDate"]?datetime}<#else><i>None</i></#if></td>
         <td>${t.properties["bpm:priority"]}</td>
         <td>${t.properties["bpm:percentComplete"]}</td>
         <td>${t.properties["bpm:status"]}</td>
      </tr>
   </#list>
</table>
<h2>All Workflow Definitions</h2>
<table cellspacing=0 cellpadding=2>
   <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Description</th>
      <th>Title</th>
      <th>Version</th>
   </tr>
   <#list definitions as c>
      <tr>
         <td>${c.id}</td>
         <td>${c.name}</td>
         <td>${c.description}</td>
         <td>${c.title}</td>
         <td>${c.version}</td>
      </tr>
   </#list>
</table>

Please try for this webscript sample. I don't know how to share code in alfresco forum so so.

I tried using the above code, but did not succeed, I would ask if you can send another sample or the full sample working, so I can view completed workflows.