|
|
@ -294,7 +294,7 @@ public class ExecutorServiceImpl extends BaseServiceImpl implements ExecutorServ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* check if the current process has subprocesses and all subprocesses are valid |
|
|
|
* check whether the current process has subprocesses and validate all subprocesses |
|
|
|
* |
|
|
|
* |
|
|
|
* @param processDefinition |
|
|
|
* @param processDefinition |
|
|
|
* @return check result |
|
|
|
* @return check result |
|
|
@ -607,7 +607,7 @@ public class ExecutorServiceImpl extends BaseServiceImpl implements ExecutorServ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* check if sub processes are offline before starting process definition |
|
|
|
* check whether sub processes are offline before starting process definition |
|
|
|
* |
|
|
|
* |
|
|
|
* @param processDefinitionCode process definition code |
|
|
|
* @param processDefinitionCode process definition code |
|
|
|
* @return check result code |
|
|
|
* @return check result code |
|
|
@ -724,8 +724,7 @@ public class ExecutorServiceImpl extends BaseServiceImpl implements ExecutorServ |
|
|
|
return createComplementCommandList(schedule, runMode, command, expectedParallelismNumber, |
|
|
|
return createComplementCommandList(schedule, runMode, command, expectedParallelismNumber, |
|
|
|
complementDependentMode); |
|
|
|
complementDependentMode); |
|
|
|
} catch (CronParseException cronParseException) { |
|
|
|
} catch (CronParseException cronParseException) { |
|
|
|
// this just make compile happy, since we already validate the cron before
|
|
|
|
// We catch the exception here just to make compiler happy, since we have already validated the schedule cron expression before
|
|
|
|
logger.error("Parse cron error", cronParseException); |
|
|
|
|
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -940,7 +939,7 @@ public class ExecutorServiceImpl extends BaseServiceImpl implements ExecutorServ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @param schedule |
|
|
|
* @param schedule |
|
|
|
* @return check error return 0 otherwish 1 |
|
|
|
* @return check error return 0, otherwise 1 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private boolean isValidateScheduleTime(String schedule) { |
|
|
|
private boolean isValidateScheduleTime(String schedule) { |
|
|
|
Map<String, String> scheduleResult = JSONUtils.toMap(schedule); |
|
|
|
Map<String, String> scheduleResult = JSONUtils.toMap(schedule); |
|
|
|