04-06-2013 07:08 AM
9 bytes (Failure: Failed to execute script 'workspace://SpacesStore/7f07da37-42bf-4e03-b96d-05fed39a590e': 03060241 Failed to execute supplied script: Namespace prefix wfl is not mapped to a namespace URI)
deploy activiti alfresco/extension/lifecycle-process.bpmn20.xml
start bpm:assignee=admin
function startWorkflow(assignee)
{
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "activiti$activitiLifecycleApproval";
workflow.parameters["bpm:workflowDescription"] = "Automated workflow. Current file: " + document.name;
workflow.parameters["bpm:assignee"] = assignee;
return workflow.execute(document);
}
function main()
{
var name = document.name;
var siteName = document.siteShortName;
if (siteName == null)
{
if (logger.isLoggingEnabled())
logger.log("Did not start workflow as the document named " + name + " is not located within a site.");
return;
}
startWorkflow(document.properties.creator);
}
main();
04-08-2013 01:42 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.