public List <string> GetRelatedByInliningSchemeCodes(string schemeCode) { using (OracleConnection connection = new OracleConnection(ConnectionString)) { return(WorkflowScheme.GetRelatedSchemeCodes(connection, schemeCode)); } }
public List <string> GetInlinedSchemeCodes() { using (OracleConnection connection = new OracleConnection(ConnectionString)) { return(WorkflowScheme.GetInlinedSchemeCodes(connection)); } }
public void SaveScheme(string schemaCode, bool canBeInlined, List <string> inlinedSchemes, string scheme) { using (OracleConnection connection = new OracleConnection(ConnectionString)) { WorkflowScheme wfScheme = WorkflowScheme.SelectByKey(connection, schemaCode); if (wfScheme == null) { wfScheme = new WorkflowScheme { Code = schemaCode, Scheme = scheme, CanBeInlined = canBeInlined, InlinedSchemes = inlinedSchemes.Any() ? JsonConvert.SerializeObject(inlinedSchemes) : null }; wfScheme.Insert(connection); } else { wfScheme.Scheme = scheme; wfScheme.CanBeInlined = canBeInlined; wfScheme.InlinedSchemes = inlinedSchemes.Any() ? JsonConvert.SerializeObject(inlinedSchemes) : null; wfScheme.Update(connection); } WorkflowScheme.Commit(connection); } }
public void SetSchemeTags(string schemeCode, IEnumerable <string> tags) { using (var connection = new OracleConnection(ConnectionString)) { WorkflowScheme.SetSchemeTags(connection, schemeCode, tags, _runtime.Builder); } }
public List <string> SearchSchemesByTags(IEnumerable <string> tags) { using (var connection = new OracleConnection(ConnectionString)) { return(WorkflowScheme.GetSchemeCodesByTags(connection, tags)); } }
public XElement GetScheme(string code) { using (OracleConnection connection = new OracleConnection(ConnectionString)) { WorkflowScheme scheme = WorkflowScheme.SelectByKey(connection, code); if (scheme == null || string.IsNullOrEmpty(scheme.Scheme)) { throw new SchemeNotFoundException(); } return(XElement.Parse(scheme.Scheme)); } }
public void SaveScheme(string schemaCode, string scheme) { using (OracleConnection connection = new OracleConnection(ConnectionString)) { WorkflowScheme wfScheme = WorkflowScheme.SelectByKey(connection, schemaCode); if (wfScheme == null) { wfScheme = new WorkflowScheme(); wfScheme.Code = schemaCode; wfScheme.Scheme = scheme; wfScheme.Insert(connection); } else { wfScheme.Scheme = scheme; wfScheme.Update(connection); } WorkflowScheme.Commit(connection); } }