AnsweredAssumed Answered

set the initiator for a workflow via script?

Question asked by targa2000 on Feb 28, 2010
Latest reply on Mar 17, 2018 by krutik.jayswal
how can I set or can I set the initiator for a workflow in a script?

var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:adhoc";
workflow.parameters["bpm:workflowDescription"] = "The attached document has been uploaded to Alfresco. Please review within 3 days.";
workflow.parameters["bpm:assignee"] = "admin";
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 3);
workflow.parameters["bpm:workflowDueDate"] = futureDate;

using the above as a basis, is there a way to assign the initiator?