cancel
Showing results for 
Search instead for 
Did you mean: 

Email template for Workflow notification

aswini
Champ in-the-making
Champ in-the-making
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
3 REPLIES 3

aswini
Champ in-the-making
Champ in-the-making
I am still working on this issue.. Can anyone help please?

Regards
Aswini

jarrett
Champ in-the-making
Champ in-the-making
Hi Aswini,

I think I've accomplished what you are trying to do. When one of my users creates and an advanced workflow it notifies members of a different swimlane that some tasks will be coming their way. I've done this two ways, from the task-asign and from within the transition itself. I'd be happy to share. From your post though I cannot tell if you are referring to am advanced workflow or a simple workflow.

–Jarrett

aswini
Champ in-the-making
Champ in-the-making
Hi jarett,

I have created an advanced workflow and I am trying to send an email notification to a list of reviewers once a document is uploaded. I am using this as an email template (a Freemarker template)  when I send the mail. Unfortunately, "workflow.assigned Tasks" is not recognised when the email is being sent.

Any ideas on this please.

Regards
Aswini