01-31-2012 11:31 AM
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "activiti$activitiAdhoc";
workflow.parameters["bpm:assignee"] = people.getPerson("valentine");
workflow.parameters["bpm:workflowDescription"] = "The attached document is uploaded in Alfresco, please review today.";
workflow.parameters["initiator"] = people.getPerson("kris");
var today = new Date();
var duedate = today.getDate() + 1;
workflow.parameters["bpm:workflowDueDate"] = duedate;
workflow.execute(document);
I named it advancedflow1.js and gave it a title. When I want to execute the script using a rule, the new js is not in the list. I already restarted Tomcat with no luck, file still isn't there. I don't think there is an error in the code and trying to rule that out I copied a piece of an example script into my advancedflow1.js but the file still does not appear. 01-31-2012 11:45 AM
02-14-2013 05:39 AM
04-22-2013 10:46 AM
04-02-2013 01:37 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.