public List <Workflow> LoadExistingWorkflowsByExternalId(string key) { SqlManager sql = (SqlManager)Services.GetService(typeof(SqlManager)); Func <DynObject, string> func = (d) => DynObjectSerializer.Serialize(d).ToString(Newtonsoft.Json.Formatting.None); var store = new WorkflowStoreSql(sql, func); List <Workflow> workflows = store.LoadByExternalId(key); return(workflows); }
public OutputAction CreateOutput() { SqlManager sql = (SqlManager)Services.GetService(typeof(SqlManager)); Func <DynObject, string> func = (d) => DynObjectSerializer.Serialize(d).ToString(Newtonsoft.Json.Formatting.None); var store = new SqlserverActionOutputAction(new WorkflowStoreSql(sql, func)); var bus = new PushBusActionOutputAction(store) { Brokers = this._configuration.Broker, PublisherName = this._configuration.EngineGeneratorModel.PublishToAction, }; return(new SetPropertiesOutputAction(bus)); }