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 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(); }
- 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 ?
<br>activiti:assignee="${bpm_assignee.properties.userName}" <br>
<br>workflow.parameters["bpm:assignee"] = "admin";<br>