/** * enable triggering of rules inside the current thread n.b. this is called internally by the rule * engine before it executes a method call in a rule binding, condition or action. it will not * enable triggers if they have been switched off by an earlier call to userDisableTriggers. * @return true if triggering was previously enabled and false if it was already disabled */ public static boolean enableTriggersInternal() { return Transformer.enableTriggers(false); }
/** * enable triggering of rules inside the current thread. this is called internally by the rule * engine after rule execution has completed. it will re-enable triggers even if they have been * switched off by an earlier call to userDisableTriggers. It is also called by the default helper * to reverse the effect of calling userDisableTriggers. * @return true if triggering was previously enabled and false if it was already disabled */ public static boolean enableTriggers() { return Transformer.enableTriggers(true); }
/** * enable triggering of rules inside the current thread. this is called internally by the rule * engine after rule execution has completed. it will re-enable triggers even if they have been * switched off by an earlier call to userDisableTriggers. It is also called by the default helper * to reverse the effect of calling userDisableTriggers. * @return true if triggering was previously enabled and false if it was already disabled */ public static boolean enableTriggers() { return Transformer.enableTriggers(true); }
/** * enable triggering of rules inside the current thread n.b. this is called internally by the rule * engine before it executes a method call in a rule binding, condition or action. it will not * enable triggers if they have been switched off by an earlier call to userDisableTriggers. * @return true if triggering was previously enabled and false if it was already disabled */ public static boolean enableTriggersInternal() { return Transformer.enableTriggers(false); }