I am attempting to run the sample Lifecycle Activiti workflow that is bundled with 4.2.c. All that I've done is removed the .sample from all of the xml files for the lifecycle workflow in tomcat/shared/classes/alfresco/extension and created a custom javascript file with which to start the workflow.The workflow runs fine using the Workflow Console (/alfresco/faces/jsp/admin/workflow-console.jsp), however, when attempting to run via a rule assigned to a folder, I receive the following error message: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)
These are the files I renamed in the mentioned extension folder:<ul><li>lifecycle-messages.properties</li><li>lifecycle-process.bpmn20.xml</li><li>lifecycle-workflow-context.xml</li><li>lifecycleModel.xml</li><li>lifecycle_processdefinition.xml (I'm pretty sure this is not needed because it is for jBPM, but renamed it anyway)</li></ul>This is the command sequence that works fine using Workflow Console:
deploy activiti alfresco/extension/lifecycle-process.bpmn20.xml
start bpm:assignee=admin
This is my custom javascript file which is located in the repository/data dictionary/scripts folder:
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();
Any clue as to why I'm receiving the above error?