use of org.activiti.engine.repository.Deployment in project bamboobsc by billchen198318.
the class TestBPMN001 method deployment.
@Test
public void deployment() throws Exception {
InputStream inputStreamBpmn = new FileInputStream("/home/git/bamboobsc/core-doc/DFProjectPublishProcess.bpmn");
InputStream inputStreamPng = new FileInputStream("/home/git/bamboobsc/core-doc/DFProjectPublishProcess.png");
RepositoryService repositoryService = (RepositoryService) AppContext.getBean("repositoryService");
Deployment deployment = repositoryService.createDeployment().name("DFProjectPublishProcess-flow").addInputStream("DFProjectPublishProcess.bpmn", inputStreamBpmn).addInputStream("DFProjectPublishProcess.png", inputStreamPng).deploy();
System.out.println("ID: " + deployment.getId() + " , Name: " + deployment.getName());
}
Aggregations