update - 处理自动驳回时,从 advice 换成 operationDesc

This commit is contained in:
wangli 2024-01-05 15:47:03 +08:00
parent 8dcd0c786e
commit a59b76513e

View File

@ -22,7 +22,6 @@ import java.util.List;
import java.util.Map;
import java.util.Objects;
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_DELETE_PROCESS_FLAG;
import static cn.axzo.workflow.common.constant.BpmnConstants.INTERNAL_END_TENANT_ID;
@ -103,7 +102,8 @@ public class AutoOperatorEventListener implements BpmnTaskEventListener, Ordered
if (log.isDebugEnabled()) {
log.debug("AutoOperatorEventListener#autoReject...{}", delegateTask.getTaskDefinitionKey());
}
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), COMMENT_TYPE_ADVICE, "自动驳回");
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), COMMENT_TYPE_OPERATION_DESC
, "自动驳回");
Map<String, Object> variables = new HashMap<>();
variables.put(INTERNAL_END_TENANT_ID, delegateTask.getTenantId());
variables.put(INTERNAL_END_USER_NAME, "系统");