|
|
@ -465,6 +465,7 @@ public class ProcessInstanceService extends BaseDAGService { |
|
|
|
return checkResult; |
|
|
|
return checkResult; |
|
|
|
} |
|
|
|
} |
|
|
|
ProcessInstance processInstance = processDao.findProcessInstanceDetailById(processInstanceId); |
|
|
|
ProcessInstance processInstance = processDao.findProcessInstanceDetailById(processInstanceId); |
|
|
|
|
|
|
|
List<TaskInstance> taskInstanceList = processDao.findValidTaskListByProcessId(processInstanceId); |
|
|
|
//process instance priority
|
|
|
|
//process instance priority
|
|
|
|
int processInstancePriority = processInstance.getProcessInstancePriority().ordinal(); |
|
|
|
int processInstancePriority = processInstance.getProcessInstancePriority().ordinal(); |
|
|
|
if (processInstance == null) { |
|
|
|
if (processInstance == null) { |
|
|
@ -477,7 +478,6 @@ public class ProcessInstanceService extends BaseDAGService { |
|
|
|
processDao.deleteWorkProcessMapByParentId(processInstanceId); |
|
|
|
processDao.deleteWorkProcessMapByParentId(processInstanceId); |
|
|
|
|
|
|
|
|
|
|
|
if (delete > 0) { |
|
|
|
if (delete > 0) { |
|
|
|
List<TaskInstance> taskInstanceList = processDao.findValidTaskListByProcessId(processInstanceId); |
|
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(taskInstanceList)){ |
|
|
|
if (CollectionUtils.isNotEmpty(taskInstanceList)){ |
|
|
|
for (TaskInstance taskInstance : taskInstanceList){ |
|
|
|
for (TaskInstance taskInstance : taskInstanceList){ |
|
|
|
// task instance priority
|
|
|
|
// task instance priority
|
|
|
|