06-24-2016 10:30 AM
function createAdvancedWorkflow() {
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "activiti$workflowbased";
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
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 3);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
return workflow.execute(document);
}
function main() {
logger.warn("Test warn OK");
createAdvancedWorkflow();
}
06-27-2016 04:53 AM
06-27-2016 04:56 AM
- In activity explorer when editing my task what variable can I use to be able to assign a user to the task from the JS code ?see:
06-27-2016 11:42 AM
activiti:assignee="${bpm_assignee.properties.userName}"
(in xxx.bpmn20.xml)
workflow.parameters["bpm:assignee"] = "admin";
(in xxx.js - triggered by an alfresco rule)06-29-2016 05:07 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.