修改前:
public static final String XML = ".xml";
repositoryService.createDeployment()
.key(model.getKey()).name(model.getName())
.addBytes(model.getName() + XML, bpmnXML)
.deploy();
修改后:
public static final String BPMN20_XML = "bpmn20.xml";
repositoryService.createDeployment()
.key(model.getKey()).name(model.getName())
.addBytes(model.getName() + BPMN20_XML, bpmnXML)
.deploy();
说明:有个校验resourceName必须以"bpmn20.xml"结尾。否则校验不通过,不会向表act_re_procdef 插入数据。
问题:怪我复制粘贴
SELECT * FROM act_de_model WHERE model_key='xxx_flow';
流程图得xml 中得 一定要和process id="model_key得值一样
select *
from ACT_RE_PROCDEF
where KEY_ = 'yudao_flow' and
(TENANT_ID_ = '' or TENANT_ID_ is null) and
DERIVED_FROM_ is null and
VERSION_ = (select max(VERSION_) from ACT_RE_PROCDEF where KEY_ = 'yudao_flow' and (TENANT_ID_ = '' or TENANT_ID_ is null))