cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the taskID from a document

tbillard
Champ in-the-making
Champ in-the-making
Hi,

I'm currently working with advanced workflow and web script.
I'm able to start a advanced workflow with the javascript function:

function startWorkflow(document){
  var workflow = actions.create("start-workflow");
  workflow.parameters.workflowName = "jbpm$myWk:WKxxx";
  workflow.execute(document);
}

My question is how to get the taskId in jaavscript to redirect (with the url: http://alfresco:8080/alfresco/command/ui/managetask?id=MytaskId&type=MyType) the user which launch the action startWorkflow to the manage task dialog.

I cannot use the workflowManager because my alfresco version is :
Enterprise Network - v2.1.0 (112)

Any help would be nice.

Regards,

Thomas
2 REPLIES 2

tbillard
Champ in-the-making
Champ in-the-making
Hi,

Didn't find a way out.

Any help would be appreciable

Best regards,
Thomas

kevinr
Star Contributor
Star Contributor
I don't think you can do it using the available APIs in 2.1 - there is a new Workflow specific JavaScript APIhttp://wiki.alfresco.com/wiki/Workflow_JavaScript_API that can do this and all sorts of other goodies but it's in 2.9.

Kevin