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.
var workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "jbpm$wf:review"; workflow.parameters["bpm:workflowDescription"] = document.name; workflow.parameters["bpm:assignee"] = person; var futureDate = new Date(); futureDate.setDate(futureDate.getDate() + 7); workflow.parameters["bpm:workflowDueDate"] = futureDate; workflow.execute(document);
workflow.parameters["bpm:assignee"] = person;
Node getPerson(string username)
workflow.parameters["bpm:assignee"] = getPerson("mike"); workflow.parameters["bpm:dispatcher"] = getPerson("john"); workflow.parameters["bpm:finisher"] = getPerson("david");
Is it also possible to do this ?Code:workflow.parameters["bpm:assignee"] = getPerson("mike");workflow.parameters["bpm:dispatcher"] = getPerson("john");workflow.parameters["bpm:finisher"] = getPerson("david");So in other words provide custom variables into the bpm processdefinition.Provided of course if you have have assigned bpm_dispatcher and bpm_finisher to a swimlane.Also I would like to know if you can change those parameters from inside the workflow later on. (As to reassign to different people)
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <script> bpm_dispatcher = people.get("fred"); </script> </action>
Anyway, does the pages update mean that those APIs are disposable on SVN?