cancel
Showing results for 
Search instead for 
Did you mean: 

access workflow properties from Email Template

lucille_arkenst
Champ in-the-making
Champ in-the-making
Hello…

Does anybody know – How do you access comments from Email Template?  I tried it this way from FreeMarker_Template_Cookbook, but it lists all pooled tasks.  How do I get the one that was just fired off?  Plus, bpm:comment generates an error "Expression t.properties["bpm:comment"] is undefined."

Thanks in advance!

   <#list workflow.pooledTasks as t>
         ${t.name}
         ${t.properties["bpm:comment"]}
         ${t.properties["cm:created"]?datetime}
   </#list>
2 REPLIES 2

lucille_arkenst
Champ in-the-making
Champ in-the-making
I still cannot figure this one out… if anyone knows please help.

The first task after Start, I am able to access all workflow properties from the email template (ex: child.properties["cm:name"])
The next task after that, I cannot access child.properties["cm:name"] but I can access bpm_package.children[0].properties["cm:name"]. 
The next task after that, I can no longer access child.properties["cm:name"] nor bpm_package.children[0].properties["cm:name"]!

What is happening?

lucille_arkenst
Champ in-the-making
Champ in-the-making
As of today, over 100 people looked at this… is there an Alfresco Engineer in the house?  Smiley Happy  Could a guru please explain what to do, or point me to a link that will help me understand why it works like this?