Browse Source

remove checking definition state when stop/pause.

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

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

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

Loading…
Cancel
Save