IDEMPIERE-4060 Implement change scheduler state at scheduler window

This commit is contained in:
Heng Sin Low 2019-11-15 16:07:11 +08:00
parent e9f48caf03
commit 7c4ccdc739
1 changed files with 6 additions and 2 deletions

View File

@ -111,7 +111,11 @@ public class SchedulerStateEditor extends WEditor {
if (serverMgr != null) {
String error = serverMgr.addScheduler(model);
if (error == null) {
FDialog.info(0, null, "SchedulerAddAndStartSuccess");
if (serverMgr.getServerInstance(model.getServerID()) != null) {
FDialog.info(0, null, "SchedulerAddAndStartSuccess");
} else {
FDialog.error(0, "SchedulerAddAndStartFail", "Not accepted by any server node, please check the scheduler's schedule setting");
}
} else {
FDialog.error(0, "SchedulerAddAndStartFail", error);
}