mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 18:15:56 +08:00
fix 修复 流程作废异常问题
This commit is contained in:
parent
fa31ee44f6
commit
ac2e88dc0a
@ -470,10 +470,10 @@ public class ActProcessInstanceServiceImpl implements IActProcessInstanceService
|
||||
taskService.addComment(task.getId(), task.getProcessInstanceId(), TaskStatusEnum.INVALID.getStatus(), deleteReason);
|
||||
}
|
||||
HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery()
|
||||
.processInstanceBusinessKey(processInvalidBo.getProcessInstanceId()).processInstanceTenantId(TenantHelper.getTenantId()).singleResult();
|
||||
if (ObjectUtil.isNotEmpty(historicProcessInstance)) {
|
||||
BusinessStatusEnum.checkStatus(historicProcessInstance.getBusinessStatus());
|
||||
}
|
||||
.processInstanceId(processInvalidBo.getProcessInstanceId()).processInstanceTenantId(TenantHelper.getTenantId()).singleResult();
|
||||
// if (ObjectUtil.isNotEmpty(historicProcessInstance)) {
|
||||
// BusinessStatusEnum.checkStatus(historicProcessInstance.getBusinessStatus());
|
||||
// }
|
||||
runtimeService.updateBusinessStatus(processInvalidBo.getProcessInstanceId(), BusinessStatusEnum.INVALID.getStatus());
|
||||
runtimeService.deleteProcessInstance(processInvalidBo.getProcessInstanceId(), deleteReason);
|
||||
FlowProcessEventHandler processHandler = flowEventStrategy.getProcessHandler(historicProcessInstance.getProcessDefinitionKey());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user