コード例 #1
0
        private void _executeRulesEngine()
        {
            UpdateProgressList();

            RuleEngine ruleEngine = RulesCache.GetRuleEngine(_moduleBeginName);

            if (ruleEngine == null)
            {
                throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.moduleNotFoundFormat, _moduleBeginName));
            }

            ruleEngine.Execute(this.FlowActivity);
        }
コード例 #2
0
        private void _startInitialFlow(string module)
        {
            if (string.IsNullOrEmpty(module))
            {
                throw new ArgumentException(Strings.ruleSetCannotBeNull);
            }

            ClearFlowVariables();

            UpdateProgressList(module);

            RuleEngine ruleEngine = RulesCache.GetRuleEngine(module);

            if (ruleEngine == null)
            {
                throw new InvalidOperationException(string.Format(CultureInfo.CurrentCulture, Strings.moduleNotFoundFormat, module));
            }

            ruleEngine.Execute(this.FlowActivity);
        }