cancel
Showing results for 
Search instead for 
Did you mean: 

Webscript access to workflow api

zladuric
Champ on-the-rise
Champ on-the-rise
Hello,

Is there a workflow API accessible from webscript?
I need to send a workflow down a transition, but from a webscript..and webscripts can't make calls to the out-of-the-box workflow…
Or how could I get to the documents' workflow Id?
4 REPLIES 4

sethatrothbury
Champ in-the-making
Champ in-the-making

zladuric
Champ on-the-rise
Champ on-the-rise
Yes, I've been all over Wiki, including workflow javascript api…
I still can't find a way to get a list of active worklows on a document in the webscript.

mikeh
Star Contributor
Star Contributor
There's one more piece to the puzzle… http://wiki.alfresco.com/wiki/3.2_JavaScript_API#ScriptNode_API

for each (activeWorkflow in node.activeWorkflows)
{
   // Do something with activeWorkflow, which is a JscriptWorkflowInstance
}

Thanks,
Mike

zladuric
Champ on-the-rise
Champ on-the-rise
Geez, so simple!

Thanks bunchez, Mike, this just gave me enough for the next 10 improvements in our processes Smiley Happy