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.
<start-state name="start"> <task name="sw:submitATask" swimlane="initiator"> <event type="task-create"> <script> <variable name="bpm_assignee" access="write"/> <variable name="people" access="read"/> <expression> bpm_assignee = null; var assignee = people.getPerson("Nachalnik"); bpm_assignee = assignee; </expression> </script> </event> </task> <transition name="" to="next"/> </start-state>
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);