/// <summary> /// Creates a new instance of Wexflow engine. /// </summary> /// <param name="settingsFile">Settings file path.</param> public WexflowEngine(string settingsFile) { SettingsFile = settingsFile; Workflows = new List <Workflow>(); Logger.Info(""); Logger.Info("Starting Wexflow Engine"); LoadSettings(); Database = new Db.Db(ConnectionString); Database.Init(); LoadWorkflows(); }
/// <summary> /// Creates a new instance of Wexflow engine. /// </summary> /// <param name="settingsFile">Settings file path.</param> public WexflowEngine(string settingsFile) { SettingsFile = settingsFile; Workflows = new List <Workflow>(); Logger.Info(""); Logger.Info("Starting Wexflow Engine"); LoadSettings(); Database = new Db.Db(ConnectionString); Database.Init(); LoadGlobalVariables(); LoadWorkflows(); //Task<IScheduler> ischeduler = SchedulerFactory.GetScheduler(); //ischeduler.Wait(); //QuartzScheduler = ischeduler.Result; }
/// <summary> /// Creates a new instance of Wexflow engine. /// </summary> /// <param name="settingsFile">Settings file path.</param> public WexflowEngine(string settingsFile) { SettingsFile = settingsFile; Workflows = new List <Workflow>(); Logger.Info(""); Logger.Info("Starting Wexflow Engine"); LoadSettings(); switch (DbType) { case DbType.CosmosDB: Database = new CosmosDB.Db(ConnectionString); break; case DbType.LiteDB: Database = new LiteDB.Db(ConnectionString); break; case DbType.MongoDB: Database = new MongoDB.Db(ConnectionString); break; case DbType.RavenDB: Database = new RavenDB.Db(ConnectionString); break; } if (Database != null) { Database.Init(); } LoadGlobalVariables(); LoadWorkflows(); }
/// <summary> /// Creates a new instance of Wexflow engine. /// </summary> /// <param name="settingsFile">Settings file path.</param> /// <param name="enableWorkflowsHotFolder">Indicates whether workflows hot folder is enabled or not.</param> public WexflowEngine(string settingsFile, bool enableWorkflowsHotFolder) { SettingsFile = settingsFile; EnableWorkflowsHotFolder = enableWorkflowsHotFolder; Workflows = new List <Workflow>(); Logger.Info(""); Logger.Info("Starting Wexflow Engine"); LoadSettings(); switch (DbType) { case DbType.LiteDB: Database = new Db.LiteDB.Db(ConnectionString); break; case DbType.MongoDB: Database = new Db.MongoDB.Db(ConnectionString); break; case DbType.RavenDB: Database = new Db.RavenDB.Db(ConnectionString); break; case DbType.PostgreSQL: Database = new Db.PostgreSQL.Db(ConnectionString); break; case DbType.SQLServer: Database = new Db.SQLServer.Db(ConnectionString); break; case DbType.MySQL: Database = new Db.MySQL.Db(ConnectionString); break; case DbType.SQLite: Database = new Db.SQLite.Db(ConnectionString); break; case DbType.Firebird: Database = new Db.Firebird.Db(ConnectionString); break; case DbType.Oracle: Database = new Db.Oracle.Db(ConnectionString); break; case DbType.MariaDB: Database = new Db.MariaDB.Db(ConnectionString); break; } if (Database != null) { Database.Init(); } LoadGlobalVariables(); LoadWorkflows(); }
/// <summary> /// Creates a new instance of Wexflow engine. /// </summary> /// <param name="settingsFile">Settings file path.</param> public WexflowEngine(string settingsFile) { log4net.Config.XmlConfigurator.Configure(); SettingsFile = settingsFile; Workflows = new List <Workflow>(); Logger.Info(""); Logger.Info("Starting Wexflow Engine"); LoadSettings(); switch (DbType) { case DbType.CosmosDB: Database = new CosmosDB.Db(ConnectionString); break; case DbType.MongoDB: Database = new MongoDB.Db(ConnectionString); break; case DbType.LiteDB: Database = new LiteDB.Db(ConnectionString); break; case DbType.RavenDB: Database = new RavenDB.Db(ConnectionString); break; case DbType.PostgreSQL: Database = new PostgreSQL.Db(ConnectionString); break; case DbType.SQLServer: Database = new SQLServer.Db(ConnectionString); break; case DbType.MySQL: Database = new MySQL.Db(ConnectionString); break; case DbType.SQLite: Database = new SQLite.Db(ConnectionString); break; case DbType.Firebird: Database = new Firebird.Db(ConnectionString); break; case DbType.Oracle: Database = new Oracle.Db(ConnectionString); break; case DbType.MariaDB: Database = new MariaDB.Db(ConnectionString); break; } if (Database != null) { Database.Init(); } LoadGlobalVariables(); LoadWorkflows(); }