feat(REQ-4468) - 带有表单同意的动作,记录最后操作人

This commit is contained in:
wangli 2025-07-11 17:21:32 +08:00
parent 4b0b215df7
commit 6e6acc9f34

View File

@ -44,6 +44,7 @@ import java.util.function.Function;
import java.util.stream.Collectors;
import static cn.axzo.workflow.common.code.FormInstanceRespCode.FORM_FIELD_VALIDATOR_ERROR;
import static cn.axzo.workflow.common.constant.BpmnConstants.CLOSE_PROCESS_ASSIGNER;
import static cn.axzo.workflow.common.constant.BpmnConstants.COMMENT_TYPE_ADVICE;
import static cn.axzo.workflow.common.constant.BpmnConstants.COMMENT_TYPE_OPERATION_DESC;
import static cn.axzo.workflow.common.constant.BpmnConstants.INTERNAL_SPECIFY_NEXT_APPROVER;
@ -177,6 +178,8 @@ public class CustomApproveTaskWithFormCmd extends AbstractCommand<Void> implemen
// 记录电子签名的图片
recordSignature(task, runtimeService);
runtimeService.setVariable(task.getProcessInstanceId(), CLOSE_PROCESS_ASSIGNER, approver);
executeSynchronous(task, taskService, runtimeService, commandContext, historicTaskInstance.getTenantId());
return null;
}