|
|
@ -178,10 +178,12 @@ public class ExecutorService extends BaseService{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ProcessDefinition processDefinition = processDao.findProcessDefineById(processInstance.getProcessDefinitionId()); |
|
|
|
ProcessDefinition processDefinition = processDao.findProcessDefineById(processInstance.getProcessDefinitionId()); |
|
|
|
|
|
|
|
if(executeType != ExecuteType.STOP && executeType != ExecuteType.PAUSE){ |
|
|
|
result = checkProcessDefinitionValid(processDefinition, processInstance.getProcessDefinitionId()); |
|
|
|
result = checkProcessDefinitionValid(processDefinition, processInstance.getProcessDefinitionId()); |
|
|
|
if (result.get(Constants.STATUS) != Status.SUCCESS) { |
|
|
|
if (result.get(Constants.STATUS) != Status.SUCCESS) { |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
checkResult = checkExecuteType(processInstance, executeType); |
|
|
|
checkResult = checkExecuteType(processInstance, executeType); |
|
|
|
Status status = (Status) checkResult.get(Constants.STATUS); |
|
|
|
Status status = (Status) checkResult.get(Constants.STATUS); |
|
|
|