@Test
public void deploy() {
Deployment deploy = repositoryService.createDeployment().tenantId("10").addClasspathResource("eighth.bpmn20.xml")
.deploy();
System.out.println(deploy.getId());
}
启动
@Test
public void start() {
ProcessInstance instance = runtimeService
.startProcessInstanceById("eighth:1:3ebd40aa-64e1-11e9-b0e1-0a0027000002");
System.out.println(instance.getId());
}