Tony, I'm having the same issue trying to get a Workflow to start from an active workflow. Do you have more details of your solution or a work-around?
Ismael, are you aware of another solution, I don't really want to make any changes to activiti unless it's a last resort? I'm using verion 5.13 of Activiti on Alfresco 4.2 Enterprise.
I've been trying multiple variations of this code (below) but with no success. I keep getting the error "org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException"
Thanks in advance
var docu = userhome.createFile("testingjoebujok.txt");
docu.content = "original text";
var workflowDefinition = workflow.getDefinitionByName("activiti$ps_New_Post_Workflow");
var workflowPackage = workflow.createPackage();
workflowPackage.addNode(docu);
var workflowParameters = [];
workflowParameters["bpm:workflowDescription"] = "Please edit: " + docu.name;
workflowParameters["bpm:assignees"] = [people.getPerson("admin")];
var workflowPath = workflowDefinition.startWorkflow(workflowPackage, workflowParameters);