Skip to main content

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

Syntax
public class SchemeFilePersistence

Constructors

SchemeFilePersistence(string, WorkflowRuntime)

Constructor

Declaration
public SchemeFilePersistence(string storePath, WorkflowRuntime runtime)
Parameters
TypeNameDescription
stringstorePathpath to the dirictory where schemes are stored
WorkflowRuntimeruntimeworkflow runtime

Methods

AddSchemeTags(string, IEnumerable<string>)

Add tags to scheme with the given schemeCode

Declaration
public void AddSchemeTags(string schemeCode, IEnumerable<string> tags)
Parameters
TypeNameDescription
stringschemeCode
IEnumerable<string>tags

GetInlinedSchemeCodes()

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

Declaration
public List<string> GetInlinedSchemeCodes()
Returns
TypeDescription
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

Declaration
public List<string> GetRelatedByInliningSchemeCodes(string schemeCode)
Parameters
TypeNameDescription
stringschemeCodeInlined scheme code
Returns
TypeDescription
List<string>

GetScheme(string)

Gets not parsed scheme by scheme name

Declaration
public XElement GetScheme(string code)
Parameters
TypeNameDescription
stringcodeName of the scheme
Returns
TypeDescription
XElementNot parsed scheme of the process

RemoveSchemeTags(string, IEnumerable<string>)

Remove tags from scheme with the given schemeCode

Declaration
public void RemoveSchemeTags(string schemeCode, IEnumerable<string> tags)
Parameters
TypeNameDescription
stringschemeCode
IEnumerable<string>tags

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

Saves scheme to a store

Declaration
public void SaveScheme(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>tagsTags attached to this scheme

SearchSchemesByTags(IEnumerable<string>)

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

Declaration
public List<string> SearchSchemesByTags(IEnumerable<string> tags)
Parameters
TypeNameDescription
IEnumerable<string>tags
Returns
TypeDescription
List<string>

SetSchemeTags(string, IEnumerable<string>)

Set tags to scheme with the given schemeCode

Declaration
public void SetSchemeTags(string schemeCode, IEnumerable<string> tags)
Parameters
TypeNameDescription
stringschemeCode
IEnumerable<string>tags

GetSchemeCodes()

Returns the list of all scheme codes

Declaration
public List<string> GetSchemeCodes()
Returns
TypeDescription
List<string>

DeleteScheme(string)

Deletes scheme from the store

Declaration
public void DeleteScheme(string schemeCode)
Parameters
TypeNameDescription
stringschemeCodeScheme code

Extension Methods