/** * disable triggering of rules inside the current thread. this is the version called internally * after returning from a method call in a rule binding, condition or action. * @return true if triggering was previously enabled and false if it was already disabled */ public static boolean disableTriggersInternal() { return Transformer.disableTriggers(false); }
/** * disable triggering of rules inside the current thread. this is the version which should be * called from a Helper class to ensure that subsequent method invocatiosn during execution of * the current rule bindings, condition or action do not recursively trigger rules. It ensures * that subsequent calls to enableTriggers have no effect. The effect lasts until the end of * processing for the current rule when resetTriggers is called. * @return true if triggering was previously enabled and false if it was already disabled */ public static boolean disableTriggers() { return Transformer.disableTriggers(true); }
/** * disable triggering of rules inside the current thread. this is the version which should be * called from a Helper class to ensure that subsequent method invocatiosn during execution of * the current rule bindings, condition or action do not recursively trigger rules. It ensures * that subsequent calls to enableTriggers have no effect. The effect lasts until the end of * processing for the current rule when resetTriggers is called. * @return true if triggering was previously enabled and false if it was already disabled */ public static boolean disableTriggers() { return Transformer.disableTriggers(true); }
/** * disable triggering of rules inside the current thread. this is the version called internally * after returning from a method call in a rule binding, condition or action. * @return true if triggering was previously enabled and false if it was already disabled */ public static boolean disableTriggersInternal() { return Transformer.disableTriggers(false); }