use of org.activiti.engine.repository.Deployment in project alfresco-repository by Alfresco.
the class ActivitiSmokeTest method deployDefinition.
private Deployment deployDefinition(RepositoryService repoService) throws IOException {
ClassPathResource resource = new ClassPathResource("org/alfresco/repo/workflow/activiti/testTransaction.bpmn20.xml");
Deployment deployment = repoService.createDeployment().addInputStream(resource.getFilename(), resource.getInputStream()).deploy();
return deployment;
}
Aggregations