mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
!284 bugfix: 当修改保存模型,再发布时,提示"流程定义部署失败,原因:信息未发生变化"
Merge pull request !284 from SuperHao/N/A
This commit is contained in:
commit
62a6a993a8
@ -199,8 +199,8 @@ public class BpmProcessDefinitionServiceImpl implements BpmProcessDefinitionServ
|
|||||||
// 校验 BPMN XML 信息
|
// 校验 BPMN XML 信息
|
||||||
BpmnModel newModel = buildBpmnModel(createReqDTO.getBpmnBytes());
|
BpmnModel newModel = buildBpmnModel(createReqDTO.getBpmnBytes());
|
||||||
BpmnModel oldModel = getBpmnModel(oldProcessDefinition.getId());
|
BpmnModel oldModel = getBpmnModel(oldProcessDefinition.getId());
|
||||||
// TODO 貌似 flowable 不修改这个也不同。需要看看。 sourceSystemId 不同
|
// 对比字节变化
|
||||||
if (FlowableUtils.equals(oldModel, newModel)) {
|
if (!FlowableUtils.equals(oldModel, newModel)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// 最终发现都一致,则返回 true
|
// 最终发现都一致,则返回 true
|
||||||
|
Loading…
Reference in New Issue
Block a user