Files
alfresco-community-repo/config/alfresco/templates/workflow_details.ftl
Kevin Roast 057252f0e4 . Generic "command servlet" implementation
- Replaces specific command servlets, such as the WorkflowActionServlet with a generic CommandServlet

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2619 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-04-04 13:18:44 +00:00

28 lines
1.4 KiB
Plaintext

<#if document?exists>
<#if hasAspect(document, "app:simpleworkflow") = 1>
This document has the following workflow:<br>
<#if document.properties["app:approveStep"]?exists>
<#assign ref=document.nodeRef>
<#assign workspace=ref[0..ref?index_of("://")-1]>
<#assign storenode=ref[ref?index_of("://")+3..]>
&nbsp;&nbsp;Approve Step: <a href="/alfresco/command/workflow/approve/${workspace}/${storenode}">${document.properties["app:approveStep"]}</a><br>
</#if>
<#if document.properties["app:approveFolder"]?exists>
&nbsp;&nbsp;Approve Folder: <a href="/alfresco${document.properties["app:approveFolder"].url}">${document.properties["app:approveFolder"].name}</a><br>
</#if>
<#if document.properties["app:rejectStep"]?exists>
<#assign ref=document.nodeRef>
<#assign workspace=ref[0..ref?index_of("://")-1]>
<#assign storenode=ref[ref?index_of("://")+3..]>
&nbsp;&nbsp;Reject Step: <a href="/alfresco/command/workflow/reject/${workspace}/${storenode}">${document.properties["app:rejectStep"]}</a><br>
</#if>
<#if document.properties["app:rejectFolder"]?exists>
&nbsp;&nbsp;Reject Folder: <a href="/alfresco${document.properties["app:rejectFolder"].url}">${document.properties["app:rejectFolder"].name}</a><br>
</#if>
<#else>
This document has no workflow.<br>
</#if>
<#else>
No document found!
</#if>