Class SchemeFilePersistence
Scheme persistence in file system.
Inheritance
↳ object
↳ SchemeFilePersistence
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Persistence
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class SchemeFilePersistence
Constructors
SchemeFilePersistence(string, WorkflowRuntime)
Constructor
Declarationpublic SchemeFilePersistence(string storePath, WorkflowRuntime runtime)
Type | Name | Description |
---|---|---|
string | storePath | path to the dirictory where schemes are stored |
WorkflowRuntime | runtime | workflow runtime |
Methods
AddSchemeTags(string, IEnumerable<string>)
Add tags to scheme with the given schemeCode
Declarationpublic void AddSchemeTags(string schemeCode, IEnumerable<string> tags)
Type | Name | Description |
---|---|---|
string | schemeCode | |
IEnumerable<string> | tags |
GetInlinedSchemeCodes()
Returns the list of scheme codes that can be inlined into other schemes
Declarationpublic List<string> GetInlinedSchemeCodes()
Type | Description |
---|---|
List<string> | The list of scheme codes |
GetRelatedByInliningSchemeCodes(string)
Returns the list of scheme codes into which the scheme with the given code has been inlined
Declarationpublic List<string> GetRelatedByInliningSchemeCodes(string schemeCode)
Type | Name | Description |
---|---|---|
string | schemeCode | Inlined scheme code |
Type | Description |
---|---|
List<string> |
GetScheme(string)
Gets not parsed scheme by scheme name
Declarationpublic XElement GetScheme(string code)
Type | Name | Description |
---|---|---|
string | code | Name of the scheme |
Type | Description |
---|---|
XElement | Not parsed scheme of the process |
RemoveSchemeTags(string, IEnumerable<string>)
Remove tags from scheme with the given schemeCode
Declarationpublic void RemoveSchemeTags(string schemeCode, IEnumerable<string> tags)
Type | Name | Description |
---|---|---|
string | schemeCode | |
IEnumerable<string> | tags |
SaveScheme(string, bool, List<string>, string, List<string>)
Saves scheme to a store
Declarationpublic void SaveScheme(string schemeCode, bool canBeInlined, List<string> inlinedSchemes, string scheme, List<string> tags)
Type | Name | Description |
---|---|---|
string | schemeCode | Name of the scheme |
bool | canBeInlined | if true - this scheme can be inlined into another schemes |
List<string> | inlinedSchemes | Scheme codes to be inlined into this scheme |
string | scheme | Not parsed scheme |
List<string> | tags | Tags attached to this scheme |
SearchSchemesByTags(IEnumerable<string>)
Returns the list of scheme codes into which the scheme with the given tags
Declarationpublic List<string> SearchSchemesByTags(IEnumerable<string> tags)
Type | Name | Description |
---|---|---|
IEnumerable<string> | tags |
Type | Description |
---|---|
List<string> |
SetSchemeTags(string, IEnumerable<string>)
Set tags to scheme with the given schemeCode
Declarationpublic void SetSchemeTags(string schemeCode, IEnumerable<string> tags)
Type | Name | Description |
---|---|---|
string | schemeCode | |
IEnumerable<string> | tags |
GetSchemeCodes()
Returns the list of all scheme codes
Declarationpublic List<string> GetSchemeCodes()
Type | Description |
---|---|
List<string> |
DeleteScheme(string)
Deletes scheme from the store
Declarationpublic void DeleteScheme(string schemeCode)
Type | Name | Description |
---|---|---|
string | schemeCode | Scheme code |