AnsweredAssumed Answered

How to get the taskID from a document

Question asked by tbillard on Jan 15, 2008
Latest reply on Feb 27, 2008 by kevinr
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

Outcomes