!284 bugfix: 当修改保存模型,再发布时,提示"流程定义部署失败,原因:信息未发生变化"

Merge pull request !284 from SuperHao/N/A
This commit is contained in:
芋道源码 2022-11-10 14:31:11 +00:00 committed by Gitee
commit 62a6a993a8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -199,8 +199,8 @@ public class BpmProcessDefinitionServiceImpl implements BpmProcessDefinitionServ
// 校验 BPMN XML 信息
BpmnModel newModel = buildBpmnModel(createReqDTO.getBpmnBytes());
BpmnModel oldModel = getBpmnModel(oldProcessDefinition.getId());
// TODO 貌似 flowable 不修改这个也不同需要看看 sourceSystemId 不同
if (FlowableUtils.equals(oldModel, newModel)) {
// 对比字节变化
if (!FlowableUtils.equals(oldModel, newModel)) {
return false;
}
// 最终发现都一致则返回 true