#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>
<#if document.properties["app:approveFolder"]?exists>
Approve Folder: ${document.properties["app:approveFolder"].name}
#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..]>
Reject Step: ${document.properties["app:rejectStep"]}
#if>
<#if document.properties["app:rejectFolder"]?exists>
Reject Folder: ${document.properties["app:rejectFolder"].name}
#if>
<#else>
This document has no workflow.
#if>
<#else>
No document found!
#if>