Class FileSchemePersistencePostgreSQLProvider
OptimaJet.Workflow.PostgreSQL.FileSchemePersistencePostgreSQLProvider
Namespace: OptimaJet.Workflow.PostgreSQL
public class FileSchemePersistencePostgreSQLProvider : PostgreSQLProvider, IWorkflowProvider, IPersistenceProvider, IApprovalProvider, IFormDataProvider, ISchemePersistenceProvider<XElement>, IWorkflowGenerator<XElement>, IMigratableInheritance
- System.Object
- PostgreSQLProvider
Implemented Interfaces
- OptimaJet.Workflow.Core.Persistence.IWorkflowProvider
- OptimaJet.Workflow.Core.Persistence.IPersistenceProvider
- OptimaJet.Workflow.Core.Persistence.IApprovalProvider
- OptimaJet.Workflow.Core.Persistence.IFormDataProvider
- OptimaJet.Workflow.Core.Persistence.ISchemePersistenceProvider{System.Xml.Linq.XElement}
- OptimaJet.Workflow.Core.Generator.IWorkflowGenerator{System.Xml.Linq.XElement}
- OptimaJet.Workflow.Migrator.IMigratable
Constructors
public FileSchemePersistencePostgreSQLProvider(string storePath, string connectionString, string schemaName = "public", bool writeToHistory = true, bool writeSubProcessToRoot = true) #Parameters
Name
Type
Description
storePathStringconnectionStringStringschemaNameStringwriteToHistoryBooleanwriteSubProcessToRootBooleanMethods
public override Task AddSchemeTagsAsync(string schemeCode, IEnumerable<string> tags) #Adds tags to the shared scheme with the given schemeCode.
Parameters
Name
Type
Description
schemeCodeStringtagsIEnumerable<String>Returns
Type
Description
Taskpublic override Task AddSchemeTagsAsync(string schemeCode, string tenantId, IEnumerable<string> tags) #Adds tags to the scheme with the given schemeCode in the exact tenant scope. If tenantId is null, updates only the shared scheme.
Parameters
Name
Type
Description
schemeCodeStringtenantIdStringtagsIEnumerable<String>Returns
Type
Description
Taskpublic override Task<List<string>> GetInlinedSchemeCodesAsync(string tenantId = null) #Returns the list of scheme codes that can be inlined into other schemes. If tenantId is null, returns only shared schemes. If tenantId is specified, returns shared and tenant-specific schemes with distinct codes.
Parameters
Name
Type
Description
tenantIdStringTenant id of the scheme
Returns
Type
Description
Task<String>The list of scheme codes
public override Task<XElement> GetSchemeAsync(string code, string tenantId = null) #Gets not parsed scheme by scheme name
Parameters
Name
Type
Description
codeStringName of the scheme
tenantIdStringTenant id of the scheme
Returns
Type
Description
Task<XElement>Not parsed scheme of the process
public override Task RemoveSchemeTagsAsync(string schemeCode, IEnumerable<string> tags) #Removes tags from the shared scheme with the given schemeCode.
Parameters
Name
Type
Description
schemeCodeStringtagsIEnumerable<String>Returns
Type
Description
Taskpublic override Task RemoveSchemeTagsAsync(string schemeCode, string tenantId, IEnumerable<string> tags) #Removes tags from the scheme with the given schemeCode in the exact tenant scope. If tenantId is null, updates only the shared scheme.
Parameters
Name
Type
Description
schemeCodeStringtenantIdStringtagsIEnumerable<String>Returns
Type
Description
Taskpublic override Task SaveSchemeAsync(string schemaCode, bool canBeInlined, List<string> inlinedSchemes, string scheme, List<string> tags, string tenantId = null) #Saves scheme to a store
Parameters
Name
Type
Description
schemaCodeStringcanBeInlinedBooleanif true - this scheme can be inlined into another schemes
inlinedSchemesList<String>Scheme codes to be inlined into this scheme
schemeStringNot parsed scheme
tagsList<String>Tags of the scheme
tenantIdStringTenant id of the scheme
Returns
Type
Description
Taskpublic override Task<List<string>> SearchSchemesByTagsAsync(IEnumerable<string> tags) #Returns the list of shared scheme codes with the given tags. If tags are null, returns all shared scheme codes.
Parameters
Name
Type
Description
tagsIEnumerable<String>Returns
Type
Description
Task<String>public override Task<List<string>> SearchSchemesByTagsAsync(string tenantId, IEnumerable<string> tags) #Returns the list of scheme codes with the given tags in the exact tenant scope. If tags are null, returns all scheme codes in the specified tenant scope. If tenantId is null, searches only in shared schemes.
Parameters
Name
Type
Description
tenantIdStringtagsIEnumerable<String>Returns
Type
Description
Task<String>public override Task SetSchemeTagsAsync(string schemeCode, IEnumerable<string> tags) #Sets tags on the shared scheme with the given schemeCode.
Parameters
Name
Type
Description
schemeCodeStringtagsIEnumerable<String>Returns
Type
Description
Taskpublic override Task SetSchemeTagsAsync(string schemeCode, string tenantId, IEnumerable<string> tags) #Sets tags on the scheme with the given schemeCode in the exact tenant scope. If tenantId is null, updates only the shared scheme.
Parameters
Name
Type
Description
schemeCodeStringtenantIdStringtagsIEnumerable<String>Returns
Type
Description
Taskpublic override Task<List<string>> SearchSchemesByTagsInTenantAsync(string tenantId, params string[] tags) #Returns the list of scheme codes with the given tags in the specified tenant only.
Parameters
Name
Type
Description
tenantIdStringtagsString[]Returns
Type
Description
Task<String>public override Task AddSchemeTagsInTenantAsync(string schemeCode, string tenantId, params string[] tags) #Adds tags to the scheme with the given schemeCode in the specified tenant only.
Parameters
Name
Type
Description
schemeCodeStringtenantIdStringtagsString[]Returns
Type
Description
Taskpublic override Task RemoveSchemeTagsInTenantAsync(string schemeCode, string tenantId, params string[] tags) #Removes tags from the scheme with the given schemeCode in the specified tenant only.
Parameters
Name
Type
Description
schemeCodeStringtenantIdStringtagsString[]Returns
Type
Description
Taskpublic override Task SetSchemeTagsInTenantAsync(string schemeCode, string tenantId, params string[] tags) #Sets tags on the scheme with the given schemeCode in the specified tenant only.
Parameters
Name
Type
Description
schemeCodeStringtenantIdStringtagsString[]Returns
Type
Description
Taskpublic override void Init(WorkflowRuntime runtime) #Init the provider
Parameters
Name
Type
Description
runtimeWorkflowRuntimeWorkflow runtime instance which owned the provider