|
|
|
@ -1490,7 +1490,6 @@ public class ProcessServiceImpl implements ProcessService {
|
|
|
|
|
taskInstance.setState(ExecutionStatus.PAUSE); |
|
|
|
|
} |
|
|
|
|
taskInstance.setExecutorId(processInstance.getExecutorId()); |
|
|
|
|
taskInstance.setProcessInstancePriority(processInstance.getProcessInstancePriority()); |
|
|
|
|
taskInstance.setState(getSubmitTaskState(taskInstance, processInstance)); |
|
|
|
|
if (taskInstance.getSubmitTime() == null) { |
|
|
|
|
taskInstance.setSubmitTime(new Date()); |
|
|
|
@ -1670,6 +1669,7 @@ public class ProcessServiceImpl implements ProcessService {
|
|
|
|
|
public void packageTaskInstance(TaskInstance taskInstance, ProcessInstance processInstance) { |
|
|
|
|
taskInstance.setProcessInstance(processInstance); |
|
|
|
|
taskInstance.setProcessDefine(processInstance.getProcessDefinition()); |
|
|
|
|
taskInstance.setProcessInstancePriority(processInstance.getProcessInstancePriority()); |
|
|
|
|
TaskDefinition taskDefinition = this.findTaskDefinition( |
|
|
|
|
taskInstance.getTaskCode(), |
|
|
|
|
taskInstance.getTaskDefinitionVersion()); |
|
|
|
|