When the workflow definition is copied, the operation user of the timed instance is changed to the current user. (#12400)

This commit is contained in:
Kerwin 2022-10-18 08:56:19 +08:00 committed by GitHub
parent c7e6e827bd
commit fccbe5593a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2197,6 +2197,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
Schedule scheduleObj = scheduleMapper.queryByProcessDefinitionCode(oldProcessDefinitionCode);
if (scheduleObj != null) {
scheduleObj.setId(null);
scheduleObj.setUserId(loginUser.getId());
scheduleObj.setProcessDefinitionCode(processDefinition.getCode());
scheduleObj.setReleaseState(ReleaseState.OFFLINE);
scheduleObj.setCreateTime(date);