<#if document?exists> <#if hasAspect(document, "app:simpleworkflow") = 1> This document has the following workflow:
<#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..]>   Approve Step: ${document.properties["app:approveStep"]}
<#if document.properties["app:approveFolder"]?exists>   Approve Folder: ${document.properties["app:approveFolder"].name}
<#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..]>   Reject Step: ${document.properties["app:rejectStep"]}
<#if document.properties["app:rejectFolder"]?exists>   Reject Folder: ${document.properties["app:rejectFolder"].name}
<#else> This document has no workflow.
<#else> No document found!