feat(REQ-5965) - 调整查询条件的逻辑

This commit is contained in:
wangli 2025-11-05 17:06:15 +08:00
parent 1800d98711
commit 98ec67641f

View File

@ -56,7 +56,7 @@ public class CustomGetConditionPermissionsCmd extends AbstractCommand<List<Condi
return Collections.emptyList();
}
BpmnModel bpmnModel = ProcessDefinitionUtil.getBpmnModel(processInstance.getProcessDefinitionId());
FlowElement flowElement = bpmnModel.getFlowElement(tasks.get(0).getId());
FlowElement flowElement = bpmnModel.getFlowElement(tasks.get(0).getTaskDefinitionKey());
List<ConditionPermissionMetaInfo> conditions = BpmnMetaParserHelper.getConditionPermissionConf(flowElement).orElse(Collections.emptyList());
conditions.forEach(e -> e.setValue(null));
return conditions;