AnsweredAssumed Answered

Get Workflow Active Tasks in Javascript

Question asked by joaotpd on Jun 3, 2013
Latest reply on Jun 4, 2013 by joaotpd
Hi all!

I'm trying to do a script to get all active tasks for a workflow:

<javascript>
//…

var workflows = doc.activeWorkflows;

var nWorkflows = workflows.length;

if (nWorkflows > 0)
{
     for each ( var workflow in workflows )
     {
          var workflowId = workflow.getId();
         
          var workflowActiveTasks = workflow.WHAT_FUNCTION_HERE;

          (…)
     }

}

//…
</javascript>

Is there function to retrieve all active tasks for a workflow?

Thanks in advance,

João

Outcomes