npe
This commit is contained in:
parent
7da01b64ad
commit
f4090ec01c
|
@ -512,6 +512,7 @@ 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();
|
||||||
|
if (processInstance != null) {
|
||||||
dto.setStartTime(processInstance.getStartTime());
|
dto.setStartTime(processInstance.getStartTime());
|
||||||
dto.setBusinessKey(processInstance.getBusinessKey());
|
dto.setBusinessKey(processInstance.getBusinessKey());
|
||||||
dto.setProcessInstanceId(task.getProcessInstanceId());
|
dto.setProcessInstanceId(task.getProcessInstanceId());
|
||||||
|
@ -520,6 +521,8 @@ public class ActTaskService extends BaseServiceImpl {
|
||||||
dto.setDueDate(task.getDueDate());
|
dto.setDueDate(task.getDueDate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 驳回至第一个用户任务
|
* 驳回至第一个用户任务
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue