AnsweredAssumed Answered

Workflow start script not working 2.0 preview

Question asked by pascalt on Feb 9, 2007
Latest reply on Feb 14, 2007 by davidc

I've downloaded alfresco 2.0 preview.
When i try to execute the WIKI example to start a workflow, i get an error which says it can't read property parameters from null (var workflow) at line 2.
What can be wrong or is this a bug?

var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:review";
workflow.parameters["bpm:workflowDescription"] =;
workflow.parameters["bpm:assignee"] = person;
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;