activiti部署,发布流程之后,没有往流程定义表中插入数据
//获取资源绝对路径
String bpmnPath = "D:/jeecg/activiti/" + header;
//读取资源作为一个输入流
FileInputStream bpmnfileInputStream = new FileInputStream(bpmnPath);
Deployment deployment = processEngine.getRepositoryService()//获取流程定义和部署对象相关的Service
.createDeployment()//创建部署对象
.name(name)
.addInputStream(name,bpmnfileInputStream)
.deploy();//完成部署
System.out.println("部署ID:"+deployment.getId());
System.out.println("部署名称:"+deployment.getName());
这个方法执行完成了,没有抛出异常
select * from act_re_deployment; #部署对象
select * from act_ge_bytearray; #资源文件表
这两个表都成功记录了数据
唯独最重要的流程定义表act_re_procdef没有数据
我直接上传的一个.bpmn文件,后面试了一下上传.bpmn20.xml文件,但是还是没用