This commit is contained in:
wangliwen 2022-04-28 21:37:47 +08:00
parent 7da01b64ad
commit f4090ec01c
1 changed files with 9 additions and 6 deletions

View File

@ -512,12 +512,15 @@ public class ActTaskService extends BaseServiceImpl {
dto.setProcessDefinitionName(processDefinition.getName());
dto.setProcessDefinitionKey(processDefinition.getKey());
HistoricProcessInstance processInstance = historyService.createHistoricProcessInstanceQuery().processInstanceId(task.getProcessInstanceId()).singleResult();
dto.setStartTime(processInstance.getStartTime());
dto.setBusinessKey(processInstance.getBusinessKey());
dto.setProcessInstanceId(task.getProcessInstanceId());
dto.setOwner(task.getOwner());
dto.setCreateTime(task.getCreateTime());
dto.setDueDate(task.getDueDate());
if (processInstance != null) {
dto.setStartTime(processInstance.getStartTime());
dto.setBusinessKey(processInstance.getBusinessKey());
dto.setProcessInstanceId(task.getProcessInstanceId());
dto.setOwner(task.getOwner());
dto.setCreateTime(task.getCreateTime());
dto.setDueDate(task.getDueDate());
}
}
/**