1. 新增流程实例的拓展表

2. 将 Activiti 的 userId,统一使用 ActivitiUtils 进行设置
This commit is contained in:
YunaiV
2022-01-07 00:35:12 +08:00
parent e43039b0c6
commit 4d7ee1769f
16 changed files with 204 additions and 56 deletions

View File

@ -98,15 +98,6 @@ public class SecurityFrameworkUtils {
// 原因是Spring Security 的 Filter 在 ApiAccessLogFilter 后面,在它记录访问日志时,线上上下文已经没有用户编号等信息
WebFrameworkUtils.setLoginUserId(request, loginUser.getId());
WebFrameworkUtils.setLoginUserType(request, loginUser.getUserType());
// // TODO @jason使用 userId 会不会更合适哈?
// // TODO @芋艿activiti 需要使用 ttl 上下文
// // TODO @jason清理问题
// if (Objects.equals(UserTypeEnum.ADMIN.getValue(), loginUser.getUserType())) {
// org.activiti.engine.impl.identity.Authentication.setAuthenticatedUserId(loginUser.getUsername());
// }
// // TODO @芋道源码 该值被赋值给 user task 中assignee username 显示更直白一点
// // TODO @jason有办法设置 userId然后 activiti 有地方读取到 username 么?毕竟 username 只是 User 的登陆账号,并不能绝对像 userId 代表一个用户
// org.activiti.engine.impl.identity.Authentication.setAuthenticatedUserId(loginUser.getUsername());
}
}