05-22-2014 08:39 PM
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:reviewpooled";
workflow.parameters["bpm:workflowDescription"] = "Proses semakan dokumen : "+document.properties.name;
workflow.parameters["bpm:groupAssignee"] = "GROUP_URUSETIA SEKRETARIAT";
workflow.parameters["bpm:approveDestination"] = "Sites/ar-rahnutest/documentLibrary/KELULUSAN";
workflow.parameters["bpm:rejectDestination"] = "Sites/ar-rahnutest/documentLibrary/RUJUKAN LAIN-LAIN";
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 3);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
workflow.parameters["bpm:workflowPriority"]="2";
workflow.parameters["bpm:mailSubject"]="Peringatan : Sila lakukan semakan pada dokumen "+document.properties.name+" dalam masa SATU HARI lagi";
workflow.parameters["bpm:mailText"]="Dokumen boleh didapati melalui pautan : \n127.0.0.1:8080/share/page/document-details?nodeRef="+document.nodeRef+"\n\nAlfresco"
workflow.execute(document);
05-22-2014 09:41 PM
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.