Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Interface ISchemePersistenceProvider<TSchemeMedium>

Interface of a persistence provider, which provide storing of schemes

Namespace: OptimaJet.Workflow.Core.Persistence

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public interface ISchemePersistenceProvider<TSchemeMedium> where TSchemeMedium : class

Methods

GetProcessSchemeByProcessIdAsync(Guid)

Gets not parsed scheme of the process by process id

Declaration
Task<SchemeDefinition<TSchemeMedium>> GetProcessSchemeByProcessIdAsync(Guid processId)
Parameters
TypeNameDescription
GuidprocessIdId of the process
Returns
TypeDescription
Task<SchemeDefinition<TSchemeMedium>>Not parsed scheme of the process

GetProcessSchemeBySchemeIdAsync(Guid)

Gets not parsed scheme by id

Declaration
Task<SchemeDefinition<TSchemeMedium>> GetProcessSchemeBySchemeIdAsync(Guid schemeId)
Parameters
TypeNameDescription
GuidschemeIdId of the scheme
Returns
TypeDescription
Task<SchemeDefinition<TSchemeMedium>>Not parsed scheme of the process

GetProcessSchemeWithParametersAsync(string, string, Guid?, bool)

Gets not parsed scheme by scheme name and parameters

Declaration
Task<SchemeDefinition<TSchemeMedium>> GetProcessSchemeWithParametersAsync(string schemeCode, string parameters, Guid? rootSchemeId, bool ignoreObsolete)
Parameters
TypeNameDescription
stringschemeCodeName of the scheme
stringparametersParameters for creating the scheme
Guid?rootSchemeIdId of the root scheme in case of subprocess
boolignoreObsoleteTrue if you need to ignore obsolete schemes
Returns
TypeDescription
Task<SchemeDefinition<TSchemeMedium>>Not parsed scheme of the process

GetSchemeAsync(string)

Gets not parsed scheme by scheme name

Declaration
Task<TSchemeMedium> GetSchemeAsync(string code)
Parameters
TypeNameDescription
stringcodeName of the scheme
Returns
TypeDescription
Task<TSchemeMedium>Not parsed scheme of the process

SaveSchemeAsync(SchemeDefinition<TSchemeMedium>)

Saves scheme to a store

Declaration
Task<SchemeDefinition<TSchemeMedium>> SaveSchemeAsync(SchemeDefinition<TSchemeMedium> scheme)
Parameters
TypeNameDescription
SchemeDefinition<<TSchemeMedium>>schemeNot parsed scheme of the process
Returns
TypeDescription
Task<SchemeDefinition<TSchemeMedium>>

UpsertSchemeAsync(SchemeDefinition<TSchemeMedium>)

Updates or Inserts scheme to a store

Declaration
Task UpsertSchemeAsync(SchemeDefinition<TSchemeMedium> scheme)
Parameters
TypeNameDescription
SchemeDefinition<<TSchemeMedium>>schemeNot parsed scheme of the process
Returns
TypeDescription
Task

SetSchemeIsObsoleteAsync(string, IDictionary<string, object>)

Sets sign IsObsolete to the scheme

Declaration
Task SetSchemeIsObsoleteAsync(string schemeCode, IDictionary<string, object> parameters)
Parameters
TypeNameDescription
stringschemeCodeName of the scheme
IDictionary<string, object>parametersParameters for creating the scheme
Returns
TypeDescription
Task

SetSchemeIsObsoleteAsync(string)

Sets sign IsObsolete to the scheme

Declaration
Task SetSchemeIsObsoleteAsync(string schemeCode)
Parameters
TypeNameDescription
stringschemeCodeName of the scheme
Returns
TypeDescription
Task

SaveSchemeAsync(string, bool, List<string>, string, List<string>)

Saves scheme to a store

Declaration
Task SaveSchemeAsync(string schemeCode, bool canBeInlined, List<string> inlinedSchemes, string scheme, List<string> tags)
Parameters
TypeNameDescription
stringschemeCodeName of the scheme
boolcanBeInlinedif true - this scheme can be inlined into another schemes
List<string>inlinedSchemesScheme codes to be inlined into this scheme
stringschemeNot parsed scheme
List<string>tags
Returns
TypeDescription
Task

GetInlinedSchemeCodesAsync()

Returns the list of scheme codes that can be inlined into other schemes

Declaration
Task<List<string>> GetInlinedSchemeCodesAsync()
Returns
TypeDescription
Task<List<string>>The list of scheme codes

GetRelatedByInliningSchemeCodesAsync(string)

Returns the list of scheme codes into which the scheme with the given code has been inlined

Declaration
Task<List<string>> GetRelatedByInliningSchemeCodesAsync(string schemeCode)
Parameters
TypeNameDescription
stringschemeCodeInlined scheme code
Returns
TypeDescription
Task<List<string>>

SearchSchemesByTagsAsync(params string[])

Returns the list of scheme codes into which the scheme with the given tags

Declaration
Task<List<string>> SearchSchemesByTagsAsync(params string[] tags)
Parameters
TypeNameDescription
System.String[]tags
Returns
TypeDescription
Task<List<string>>

SearchSchemesByTagsAsync(IEnumerable<string>)

Returns the list of scheme codes into which the scheme with the given tags

Declaration
Task<List<string>> SearchSchemesByTagsAsync(IEnumerable<string> tags)
Parameters
TypeNameDescription
IEnumerable<string>tags
Returns
TypeDescription
Task<List<string>>

AddSchemeTagsAsync(string, params string[])

Add tags to scheme with the given schemeCode

Declaration
Task AddSchemeTagsAsync(string schemeCode, params string[] tags)
Parameters
TypeNameDescription
stringschemeCode
System.String[]tags
Returns
TypeDescription
Task

AddSchemeTagsAsync(string, IEnumerable<string>)

Add tags to scheme with the given schemeCode

Declaration
Task AddSchemeTagsAsync(string schemeCode, IEnumerable<string> tags)
Parameters
TypeNameDescription
stringschemeCode
IEnumerable<string>tags
Returns
TypeDescription
Task

RemoveSchemeTagsAsync(string, params string[])

Remove tags from scheme with the given schemeCode

Declaration
Task RemoveSchemeTagsAsync(string schemeCode, params string[] tags)
Parameters
TypeNameDescription
stringschemeCode
System.String[]tags
Returns
TypeDescription
Task

RemoveSchemeTagsAsync(string, IEnumerable<string>)

Remove tags from scheme with the given schemeCode

Declaration
Task RemoveSchemeTagsAsync(string schemeCode, IEnumerable<string> tags)
Parameters
TypeNameDescription
stringschemeCode
IEnumerable<string>tags
Returns
TypeDescription
Task

SetSchemeTagsAsync(string, IEnumerable<string>)

Set tags to scheme with the given schemeCode

Declaration
Task SetSchemeTagsAsync(string schemeCode, IEnumerable<string> tags)
Parameters
TypeNameDescription
stringschemeCode
IEnumerable<string>tags
Returns
TypeDescription
Task

SetSchemeTagsAsync(string, params string[])

Set tags to scheme with the given schemeCode

Declaration
Task SetSchemeTagsAsync(string schemeCode, params string[] tags)
Parameters
TypeNameDescription
stringschemeCode
System.String[]tags
Returns
TypeDescription
Task

Extension Methods