log.error(msg, e);
throw new JobExecutionException(msg, e);
}
// invoke the rule.
RuleInvoker ruleInvoker = task.getRuleInvoker();
try {
//updating the rule. this is important if we are having more than one managers running
ruleInvoker.updateRules();
ruleInvoker.invoke(knowledgeBase);
log.info("Throttling rules executed successfully");
} catch (ThrottlingException e) {
String msg = "Error in invoking the throttling rule invoker.";
log.error(msg, e);
throw new JobExecutionException(msg, e);