06-14-2010 06:25 PM
06-21-2010 04:26 PM
Is there a way to retrieve a workflow instance from a task id using javascript apis? I would like to add some notes to a document shared by a series of review and approve tasks. For now I'm getting the tasks related to a logged user with a workflow.getAssignedTasks(), but I don't know how to retrieve the workflow instance. I'm planning to add a "note" variable to the workflow. Is there a better way to create and access a text variable related to a workflow content?
var taskId = args["taskId"];
var task = workflow.getTaskById(taskId);
// Assuming there is only one document,
// if you have more you'll need a loop…
var theDocument = task.getPackageResources()[0];
06-08-2011 04:42 PM
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.