/** * Enables the {@code ActionInstance} * * @throws com.netflix.scheduledactions.exceptions.ActionOperationException */ @Override public void enable(ActionInstance actionInstance) { actionInstance.setDisabled(false); actionInstanceDao.updateActionInstance(actionInstance); if (actionInstance.getFenzoTrigger() != null) { try { triggerOperator.enableTrigger(actionInstance.getFenzoTrigger()); } catch (SchedulerException e) { throw new ActionOperationException( String.format( "Exception occurred while enabling trigger %s for actionInstance %s", actionInstance.getTrigger(), actionInstance), e); } } logger.info("Successfully enabled the actionInstance {}", actionInstance); }