11-12-2009 09:07 PM
11-14-2009 12:09 PM
11-30-2009 11:06 AM
12-01-2009 04:34 PM
Try this link and see if this what you were looking for -
http://wiki.alfresco.com/wiki/JavaScript_API
12-04-2009 05:19 AM
var task = workflow.getTask("jbpm$001"); //returns the task.
logger.log(task.getTransitions()); // returns null.
logger.log(task.transitions); // null property.
BUT, when this is done in FreeMarker it works fine.
<#list workflow.assignedTasks as task>
<#list task.transitions as trans>
${trans.id)
…
12-04-2009 10:08 AM
My Tasks (Office Add-In)In the source code myTasksDetail.get.xml.ftl and myTasks.get.html.ftl there is a lot of detail about fetching workflow status.
GET /alfresco/service/office/myTasks?p={path}
—
Generate the Office Add-In My Tasks page
—
Authentication: user
Transaction: required
Format Style: any
Default Format: html
Id: org/alfresco/office/myTasks.get
Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/office/myTasks.get.desc.xml
Macintosh:office Guy$ grep bpm *
docActions.get.js: workflow.parameters["bpm:workflowDescription"] = description;
docActions.get.js: workflow.parameters["bpm:assignee"] = assignTo;
docActions.get.js: workflow.parameters["bpm:workflowDueDate"] = dueDate;
myAlfresco.get.html.ftl: <#assign hasDue=t.properties["bpm:dueDate"]??>
myAlfresco.get.html.ftl: <#assign due=t.properties["bpm:dueDate"]>
myAlfresco.get.xml.ftl: <#assign hasDue=t.properties["bpm:dueDate"]??>
myAlfresco.get.xml.ftl: <#assign due=t.properties["bpm:dueDate"]>
myTasks.get.html.ftl: <#assign hasDue=t.properties["bpm:dueDate"]??>
myTasksDetail.get.html.ftl: <td>${task.properties["bpm:status"]}</td>
myTasksDetail.get.html.ftl: <td>${task.properties["bpm:priority"]}</td>
myTasksDetail.get.html.ftl: <td>${task.properties["bpm:percentComplete"]}%</td>
myTasksDetail.get.xml.ftl: <status>${task.properties["bpm:status"]}</status>
myTasksDetail.get.xml.ftl: <priority>${task.properties["bpm:priority"]}</priority>
myTasksDetail.get.xml.ftl: <complete>${task.properties["bpm:percentComplete"]}%</complete>
Best regards,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.