/** * If the action has a maintenance schedule defined but is no longer valid, * cancel the action. * * @param action * is the {@link Action} to check. */ private void checkAndCancelExpiredAction(final Action action) { if (action != null && action.hasMaintenanceSchedule() && action.isMaintenanceScheduleLapsed()) { try { controllerManagement.cancelAction(action.getId()); } catch (final CancelActionNotAllowedException e) { LOG.info("Cancel action not allowed exception :{}", e); } } }
/** * If the action has a maintenance schedule defined but is no longer valid, * cancel the action. * * @param action * is the {@link Action} to check. */ private void checkAndCancelExpiredAction(final Action action) { if (action != null && action.hasMaintenanceSchedule() && action.isMaintenanceScheduleLapsed()) { try { controllerManagement.cancelAction(action.getId()); } catch (final CancelActionNotAllowedException e) { LOG.info("Cancel action not allowed exception :{}", e); } } }