Browse Source

remove checking definition state when stop/pause.

pull/2/head
baoliang 6 years ago
parent
commit
e7a479cbca
  1. 8
      escheduler-api/src/main/java/cn/escheduler/api/service/ExecutorService.java

8
escheduler-api/src/main/java/cn/escheduler/api/service/ExecutorService.java

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

Loading…
Cancel
Save