Commit 702a64c4 authored by qiaozhanwei's avatar qiaozhanwei
Browse files

Delete the process instance and delete the corresponding queue information,update

parent 493e4ac9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -465,6 +465,7 @@ public class ProcessInstanceService extends BaseDAGService {
            return checkResult;
        }
        ProcessInstance processInstance = processDao.findProcessInstanceDetailById(processInstanceId);
        List<TaskInstance> taskInstanceList = processDao.findValidTaskListByProcessId(processInstanceId);
        //process instance priority
        int processInstancePriority = processInstance.getProcessInstancePriority().ordinal();
        if (processInstance == null) {
@@ -477,7 +478,6 @@ public class ProcessInstanceService extends BaseDAGService {
        processDao.deleteWorkProcessMapByParentId(processInstanceId);

        if (delete > 0) {
            List<TaskInstance> taskInstanceList = processDao.findValidTaskListByProcessId(processInstanceId);
            if (CollectionUtils.isNotEmpty(taskInstanceList)){
                for (TaskInstance taskInstance : taskInstanceList){
                    // task instance priority