Exemple #1
0
        private void Init(IRulesDriver driver)
        {
            // listen to events from Flow Engine and Flow Engine Rule Base
            TraceListener tl = new FEBErrorListener();

            Logger.FlowEngineSource.Listeners.Add(tl);
            Logger.FlowEngineRuleBaseSource.Listeners.Add(tl);

            // instantiate the rule engine
            bre          = new BREFactory().NewBRE(driver);
            prepared_bre = null;

            if (bre == null)
            {
                throw new BREException("The initialization of the Flow Engine Binder failed.");
            }
        }
Exemple #2
0
        private void Init(IRulesDriver driver)
        {
            // listen to events from Flow Engine and Flow Engine Rule Base
            TraceListener tl = new FEBErrorListener();
            Logger.FlowEngineSource.Listeners.Add(tl);
            Logger.FlowEngineRuleBaseSource.Listeners.Add(tl);

            // instantiate the rule engine
            bre = new BREFactory().NewBRE(driver);
            prepared_bre = null;

            if (bre == null) throw new BREException("The initialization of the Flow Engine Binder failed.");
        }