Hello,I've put together a simple web script to kick off the predefined review and approve workflow but get an error about the document object:Failed to execute script 'workspace://SpacesStore//Company Home/Data Dictionary/Web Scripts/org/alfresco/sample/myworkflow.get.js': Failed to execute script 'workspace://SpacesStore//Company Home/Data Dictionary/Web Scripts/org/alfresco/sample/myworkflow.get.js': ReferenceError: "document" is not defined. (AlfrescoScript#5)
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:review & approve";
workflow.parameters["bpm:workflowDescription"] = "proxy_server.gif";
workflow.parameters["bpm:assignee"] = "administrator";
workflow.execute(document);
Isn't document is one of the objects available by default in the root scripting scope? BTW, please advice if any error found in the script above. Much Thanks.