代码如下:
目录结构
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
@Test
public void deploymentProcessEngines(){
InputStream inputStreamBpmn = this.getClass().getResourceAsStream("sequenceFlow.bpmn");
InputStream inputStreamPng = this.getClass().getResourceAsStream("sequenceFlow.png");
Deployment deployment = processEngine.getRepositoryService()
.createDeployment()
.name("流程sequenceFlow")
.addInputStream("sequenceFlow.bpmn", inputStreamBpmn)
.addInputStream("sequenceFlow.png", inputStreamPng)
.deploy();
System.out.println("流程部署id" + deployment.getId());
System.out.println("流程部署name" + dep