Browse Source

Merge pull request #339 from lenboo/branch-1.0.2

remove checking definition state when stop/pause.
pull/2/head
bao liang 6 years ago committed by GitHub
parent
commit
7b96f330be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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()); 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);

Loading…
Cancel
Save