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); }
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); }