1.activiti 的模版必须以 bpmn20.xml 或者 bpmn结尾;
如: leave.bpmn
2.输入的key可能是错误的,部署之后模板的key值存储在act_re_procdef 表 KEY_ 字段中
如:
INSERT INTO `ry`.`act_re_procdef`(`ID_`, `REV_`, `CATEGORY_`, `NAME_`, `KEY_`, `VERSION_`, `DEPLOYMENT_ID_`, `RESOURCE_NAME_`, `DGRM_RESOURCE_NAME_`, `DESCRIPTION_`, `HAS_START_FORM_KEY_`, `HAS_GRAPHICAL_NOTATION_`, `SUSPENSION_STATE_`, `TENANT_ID_`, `ENGINE_VERSION_`) VALUES ('leave:1:4', 1, 'http://www.kafeitu.me/activiti/leave', '请假流程-普通表单', 'leave', 1, '1', 'C:/ruoyi/uploadPath/processDefiniton/2020/07/04/a9ec3c088cc6edbe653df14299536156.bpmn', 'C:/ruoyi/uploadPath/processDefiniton/2020/07/04/a9ec3c088cc6edbe653df14299536156.leave.png', '请假流程演示', 0, 1, 1, '', NULL);