Browse Source

Merge remote-tracking branch 'remotes/upstream/branch-1.0.2' into branch-1.0.2

pull/2/head
qiaozhanwei 6 years ago
parent
commit
8f52e7e7c8
  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