npe
This commit is contained in:
parent
7da01b64ad
commit
f4090ec01c
|
@ -512,12 +512,15 @@ public class ActTaskService extends BaseServiceImpl {
|
||||||
dto.setProcessDefinitionName(processDefinition.getName());
|
dto.setProcessDefinitionName(processDefinition.getName());
|
||||||
dto.setProcessDefinitionKey(processDefinition.getKey());
|
dto.setProcessDefinitionKey(processDefinition.getKey());
|
||||||
HistoricProcessInstance processInstance = historyService.createHistoricProcessInstanceQuery().processInstanceId(task.getProcessInstanceId()).singleResult();
|
HistoricProcessInstance processInstance = historyService.createHistoricProcessInstanceQuery().processInstanceId(task.getProcessInstanceId()).singleResult();
|
||||||
dto.setStartTime(processInstance.getStartTime());
|
if (processInstance != null) {
|
||||||
dto.setBusinessKey(processInstance.getBusinessKey());
|
dto.setStartTime(processInstance.getStartTime());
|
||||||
dto.setProcessInstanceId(task.getProcessInstanceId());
|
dto.setBusinessKey(processInstance.getBusinessKey());
|
||||||
dto.setOwner(task.getOwner());
|
dto.setProcessInstanceId(task.getProcessInstanceId());
|
||||||
dto.setCreateTime(task.getCreateTime());
|
dto.setOwner(task.getOwner());
|
||||||
dto.setDueDate(task.getDueDate());
|
dto.setCreateTime(task.getCreateTime());
|
||||||
|
dto.setDueDate(task.getDueDate());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue