02-09-2010 08:51 AM
workflowProperties.put(WorkflowModel.ASSOC_ASSIGNEE, inviteeNodeRef);
02-10-2010 12:17 AM
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);
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.