As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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".
<webscript> <shortname>Testing Workflow</shortname> <description>Testing Workflow Listing</description> <url>/workflow/sma</url> <format default="html">extension</format> <authentication>user</authentication> </webscript>
function main() { model.assignedTasks=workflow.getAssignedTasks(); model.completedTasks=workflow.getCompletedTasks(); model.definitions=workflow.getAllDefinitions(); } main();
<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>