feat(REQ-5965) - 更新变量

This commit is contained in:
wangli 2025-12-23 10:51:17 +08:00
parent 525c73b478
commit 9cce7f96af

View File

@ -51,7 +51,7 @@ public class CustomOverrideProcessVariablesCmd extends AbstractCommand<Void> imp
RuntimeService runtimeService = processEngineConfiguration.getRuntimeService(); RuntimeService runtimeService = processEngineConfiguration.getRuntimeService();
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult(); ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult();
if (Objects.nonNull(processInstance)) { if (Objects.isNull(processInstance)) {
throw new WorkflowEngineException(PROCESS_INSTANCE_NOT_EXISTS); throw new WorkflowEngineException(PROCESS_INSTANCE_NOT_EXISTS);
} }