Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class SchemeFilePersistence

OptimaJet.Workflow.Core.Persistence.SchemeFilePersistence

Scheme persistence in file system.

public class SchemeFilePersistence

Inheritance

  • System.Object

Constructors

public SchemeFilePersistence(string storePath, WorkflowRuntime runtime) #
Constructor

Parameters

Name
Type
Description
storePath
String
path to the dirictory where schemes are stored
runtime
WorkflowRuntime
workflow runtime

Methods

public void AddSchemeTags(string schemeCode, IEnumerable<string> tags) #
Add tags to scheme with the given schemeCode

Parameters

Name
Type
Description
schemeCode
String
tags
IEnumerable<String>
public List<string> GetInlinedSchemeCodes() #
Returns the list of scheme codes that can be inlined into other schemes

Returns

Type
Description
List<String>
The list of scheme codes
public List<string> GetRelatedByInliningSchemeCodes(string schemeCode) #
Returns the list of scheme codes into which the scheme with the given code has been inlined

Parameters

Name
Type
Description
schemeCode
String
Inlined scheme code

Returns

Type
Description
List<String>
public XElement GetScheme(string code) #
Gets not parsed scheme by scheme name

Parameters

Name
Type
Description
code
String
Name of the scheme

Returns

Type
Description
XElement
Not parsed scheme of the process
public void RemoveSchemeTags(string schemeCode, IEnumerable<string> tags) #
Remove tags from scheme with the given schemeCode

Parameters

Name
Type
Description
schemeCode
String
tags
IEnumerable<String>
public void SaveScheme(string schemeCode, bool canBeInlined, List<string> inlinedSchemes, string scheme, List<string> tags) #
Saves scheme to a store

Parameters

Name
Type
Description
schemeCode
String
Name of the scheme
canBeInlined
Boolean
if true - this scheme can be inlined into another schemes
inlinedSchemes
List<String>
Scheme codes to be inlined into this scheme
scheme
String
Not parsed scheme
tags
List<String>
Tags attached to this scheme
public List<string> SearchSchemesByTags(IEnumerable<string> tags) #
Returns the list of scheme codes into which the scheme with the given tags

Parameters

Name
Type
Description
tags
IEnumerable<String>

Returns

Type
Description
List<String>
public void SetSchemeTags(string schemeCode, IEnumerable<string> tags) #
Set tags to scheme with the given schemeCode

Parameters

Name
Type
Description
schemeCode
String
tags
IEnumerable<String>
public List<string> GetSchemeCodes() #
Returns the list of all scheme codes

Returns

Type
Description
List<String>
public void DeleteScheme(string schemeCode) #
Deletes scheme from the store

Parameters

Name
Type
Description
schemeCode
String
Scheme code