Class SchemeFilePersistence
OptimaJet.Workflow.Core.Persistence.SchemeFilePersistence
Scheme persistence in file system.
Namespace: OptimaJet.Workflow.Core.Persistence
public class SchemeFilePersistenceInheritance
- System.Object
Constructors
public SchemeFilePersistence(string storePath, WorkflowRuntime runtime) #Constructor
Parameters
Name
Type
Description
storePathStringpath to the dirictory where schemes are stored
runtimeWorkflowRuntimeworkflow runtime
Methods
public void AddSchemeTags(string schemeCode, IEnumerable<string> tags) #Add tags to scheme with the given schemeCode
Parameters
Name
Type
Description
schemeCodeStringtagsIEnumerable<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 XElement GetScheme(string code) #Gets not parsed scheme by scheme name
Parameters
Name
Type
Description
codeStringName of the scheme
Returns
Type
Description
XElementNot 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
schemeCodeStringtagsIEnumerable<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
schemeCodeStringName of the scheme
canBeInlinedBooleanif 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 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
tagsIEnumerable<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
schemeCodeStringtagsIEnumerable<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
schemeCodeStringScheme code