cancel
Showing results for 
Search instead for 
Did you mean: 

Strange differences in Javascript API betw Normal and Pooled

ale_carraro
Champ in-the-making
Champ in-the-making
I noticed very strange differences between Normal tasks and Pooled Tasks in js API:

for example, given a task "t" to list in a webscript (freemarker) its transitions you should do:

<#list t.transitions as key>
  ${key.id}

While if "t" is a pooled task, the syntax is:

<#list t.transitions?keys as key>
  ${t.transitions[key]}

I did not achieve getting resources on pooled tasks, btw—

do I miss something?
1 REPLY 1

ale_carraro
Champ in-the-making
Champ in-the-making
I found another stange thing:
in Web Scripts context, the workflow variable in th javascript "step" has a function called pooledTasks that accepts a string parameter
pooledTasks(String authority)
while in the freemarker "step" the function has not parameters
pooledTasks()
. It seems that the workflow object is actually different. Can anybody point me where to find the "correct" list of functions even in source code (alfresco repository is so huge that often I cant' find things just because I don't know where I should look…)