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.
workflowProperties.put(WorkflowModel.ASSOC_ASSIGNEE, inviteeNodeRef);
workflowProps.put(QName.createQName("{http://www.alfresco.org/model/bpm/1.0}assignees"), assignees);
// Prepare workflow properties. NodeRef wfPackage = this.workflowService.createPackage(file); NodeRef assignee1NodeRef = personService.getPerson(selectedAssignee1); NodeRef assignee2NodeRef = personService.getPerson(selectedAssignee2); ArrayList<NodeRef> assignees = new ArrayList<NodeRef>(2); assignees.add(assignee1NodeRef); assignees.add(assignee2NodeRef); Map<QName, Serializable> workflowProps = new HashMap<QName, Serializable>(16); workflowProps.put(WorkflowModel.ASSOC_PACKAGE, wfPackage); workflowProps.put(QName.createQName("{http://www.alfresco.org/model/bpm/1.0}assignees"), assignees); // Get the workflow definition. WorkflowDefinition workflowDefinition = this.workflowService.getDefinitionByName("jbpm$sawaflow2"); // Start a workflow instance. WorkflowPath workflowPath = getWorkflowService().startWorkflow(workflowDefinition.getId(), workflowProps);