public WfDocGenerator(List<ActivityChainModel> activities, RulesExtractor rulesExtractor, Settings Settings) : base(activities, rulesExtractor, Settings) { if (Settings.GetLanguage() < OutputFormat.Docx) throw new NotSupportedException("Output Language not supported:" + Settings.GetLanguage()); Name = "Workflow to Code Generator"; }
public RulesCodeGenerator(List<RuleSetDomModel> model, Settings settings, bool runAsync) : base(model, settings, runAsync) { if (settings.GetLanguage() > OutputFormat.VBNet) throw new NotSupportedException("Output Language not supported:" + settings.GetLanguage()); if (settings.GetType() != typeof(CodeSettings)) // create default codesettings _codeSettings = new CodeSettings("ClassName", settings.GetOutputDirectory(), settings.GetLanguage()); else _codeSettings = (CodeSettings)settings; Name = "Rules to Code Generator"; }