As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
function createWorkflow() { var workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "jbpm$wf:adhoc"; // Need to be replaced with our Custom workflow ? workflow.parameters["bpm:workflowDescription"] = "The attached document has been uploaded to Alfresco. Please review within 3 days."; workflow.parameters["bpm:assignee"] = "admin"; // TODO: not hard coded, this is testing // workflow.parameters["bpm:groupAssignee"] = assigneeGroup; // Assign group depending on Division ? var futureDate = new Date(); futureDate.setDate(futureDate.getDate() + 3); workflow.parameters["bpm:workflowDueDate"] = futureDate; return workflow.execute(document); } function moveDocument(doc, folder) { doc.move(folder); } function main() { //if (logger.isLoggingEnabled()) logger.log("Test OK"); logger.warn("Test warn OK"); createWorkflow(); } main();