03-30-2009 09:53 AM
03-31-2009 07:41 AM
for each ( wf in document.activeWorkflows )
{
var process_id = wf.id;
var in_progress_task_id = wf.paths[0].tasks[0].id);
}
So, first one returns id in format of "bpm$???", and this is workflow process id on that document.
workflow.getTaskById(id);
and work with that task with standard js/ftl apis.03-31-2009 09:12 AM
04-01-2009 10:46 AM
04-01-2009 11:58 AM
04-01-2009 02:02 PM
04-08-2009 09:08 AM
03-24-2017 04:01 AM
As alfresco javascript has limited apis available , standard approach to solve this problem is to use the workflowService, using webscript or actions which ever is suitable in scenario.
Below is sample code to get workflow definition id from noderef.
workflowService.getWorkflowsForContent(new NodeRef(""),true).get(0).getDefinition().getId()
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.