cancel
Showing results for 
Search instead for 
Did you mean: 

Why the workflow.assignedTasks can not be used in ftl ?

zengqingyi12
Champ in-the-making
Champ in-the-making
I wrote a web script, in javascript I wrote the following code:
model.tasks = workflow.assignedTasks  
and in the ftl:
<#list  tasks as t>
<assign packageNode = t.properties["bpmSmiley Tongueackage"] />   
</#list>

and I got an exception:  t.properties not defined.
If I use the api in ftl:
<#list  workflow.assignedTasks as t>
<assign packageNode = t.properties["bpmSmiley Tongueackage"] />   
</#list>
this works well, so I want to know if there any differences between javascript and ftl api ?
1 REPLY 1

clementus
Champ in-the-making
Champ in-the-making
Hi,
Under Alfresco 2.9, variable "workflow" is known only in the freemarker template and NOT in the JS.
What alfresco version are u running ?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.