AnsweredAssumed Answered

Email template for Workflow notification

Question asked by aswini on Feb 16, 2009
Latest reply on Mar 6, 2009 by aswini
Hi I am trying to create an email notification while starting a workflow, but the email doesnt send me the correct details. It doesnt recognise workflow.assigned Tasks itself. Can someone help me solve this please.



<#assign datetimeformat="dd MMMM yyyy">
Dear ${person.properties.firstName} <#if person.properties.lastName?exists>${person.properties.lastName}</#if>
A new document ${document.properties.name} (http://localhost:8080/alfresco${document.url}),
has been submitted by '${person.properties.firstName}<#if person.properties.lastName?exists> ${person.properties.lastName}</#if>'.
 
Workflow Information:
<#list workflow.assignedTasks as t>
   Task ID:
   ${t.id}
   Task Type:
   ${t.type}
   Task Name:
   ${t.name}
   Task Description:
   ${t.description}
   Created on:
   ${t.properties["cm:created"]?datetime}
   Started on:
        <#if t.properties["bpm:startDate"]?exists>
        ${t.properties["bpm:startDate"]?datetime}
        <#else><i>None</i>
        </#if>
   Due Date:
        <#if t.properties["bpm:dueDate"]?exists>
      ${t.properties["bpm:dueDate"]?datetime}
      <#else><i>None</i>
      </#if>
   Priority:${t.properties["bpm:priority"]}
   PercentComplete:${t.properties["bpm:percentComplete"]}
   Status:${t.properties["bpm:status"]}
   Completed?${t.isCompleted?string("Yes", "No")}
</#list>


   Regards
   Alfresco Team

Thanks
Aswini

Outcomes