Workflow Engine .NET

Assembly: OptimaJet.Workflow.Oracle

Class FileSchemePersistenceOracleProvider

OptimaJet.Workflow.Oracle.FileSchemePersistenceOracleProvider

public class FileSchemePersistenceOracleProvider : OracleProvider, IWorkflowProvider, IPersistenceProvider, IApprovalProvider, IFormDataProvider, ISchemePersistenceProvider<XElement>, IWorkflowGenerator<XElement>, IMigratable

Inheritance

Implemented Interfaces

Constructors

public FileSchemePersistenceOracleProvider(string storePath, string connectionString, string schemaName = null, bool writeToHistory = true, bool writeSubProcessToRoot = true) #

Parameters

Name
Type
Description
storePath
String
connectionString
String
schemaName
String
writeToHistory
Boolean
writeSubProcessToRoot
Boolean

Methods

public override Task AddSchemeTagsAsync(string schemeCode, IEnumerable<string> tags) #
Adds tags to the shared scheme with the given schemeCode.

Parameters

Name
Type
Description
schemeCode
String
tags
IEnumerable<String>

Returns

Type
Description
Task
public override Task AddSchemeTagsAsync(string schemeCode, string tenantId, IEnumerable<string> tags) #
Adds tags to the scheme with the given schemeCode in the exact tenant scope. If tenantId is null, updates only the shared scheme.

Parameters

Name
Type
Description
schemeCode
String
tenantId
String
tags
IEnumerable<String>

Returns

Type
Description
Task
public override Task<List<string>> GetInlinedSchemeCodesAsync(string tenantId = null) #
Returns the list of scheme codes that can be inlined into other schemes. If tenantId is null, returns only shared schemes. If tenantId is specified, returns shared and tenant-specific schemes with distinct codes.

Parameters

Name
Type
Description
tenantId
String
Tenant id of the scheme

Returns

Type
Description
Task<String>
The list of scheme codes
public override Task<List<string>> GetRelatedByInliningSchemeCodesAsync(string schemeCode, string tenantId = null) #
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
tenantId
String
Tenant id of the parent scheme. If null, searches in all tenants and shared schemes.

Returns

Type
Description
Task<String>
public override Task<XElement> GetSchemeAsync(string code, string tenantId = null) #
Gets not parsed scheme by scheme name

Parameters

Name
Type
Description
code
String
Name of the scheme
tenantId
String
Tenant id of the scheme

Returns

Type
Description
Task<XElement>
Not parsed scheme of the process
public override Task RemoveSchemeTagsAsync(string schemeCode, IEnumerable<string> tags) #
Removes tags from the shared scheme with the given schemeCode.

Parameters

Name
Type
Description
schemeCode
String
tags
IEnumerable<String>

Returns

Type
Description
Task
public override Task RemoveSchemeTagsAsync(string schemeCode, string tenantId, IEnumerable<string> tags) #
Removes tags from the scheme with the given schemeCode in the exact tenant scope. If tenantId is null, updates only the shared scheme.

Parameters

Name
Type
Description
schemeCode
String
tenantId
String
tags
IEnumerable<String>

Returns

Type
Description
Task
public override Task SaveSchemeAsync(string schemaCode, bool canBeInlined, List<string> inlinedSchemes, string scheme, List<string> tags, string tenantId = null) #
Saves scheme to a store

Parameters

Name
Type
Description
schemaCode
String
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 of the scheme
tenantId
String
Tenant id of the scheme

Returns

Type
Description
Task
public override Task<List<string>> SearchSchemesByTagsAsync(IEnumerable<string> tags) #
Returns the list of shared scheme codes with the given tags. If tags are null, returns all shared scheme codes.

Parameters

Name
Type
Description
tags
IEnumerable<String>

Returns

Type
Description
Task<String>
public override Task<List<string>> SearchSchemesByTagsAsync(string tenantId, IEnumerable<string> tags) #
Returns the list of scheme codes with the given tags in the exact tenant scope. If tags are null, returns all scheme codes in the specified tenant scope. If tenantId is null, searches only in shared schemes.

Parameters

Name
Type
Description
tenantId
String
tags
IEnumerable<String>

Returns

Type
Description
Task<String>
public override Task SetSchemeTagsAsync(string schemeCode, IEnumerable<string> tags) #
Sets tags on the shared scheme with the given schemeCode.

Parameters

Name
Type
Description
schemeCode
String
tags
IEnumerable<String>

Returns

Type
Description
Task
public override Task SetSchemeTagsAsync(string schemeCode, string tenantId, IEnumerable<string> tags) #
Sets tags on the scheme with the given schemeCode in the exact tenant scope. If tenantId is null, updates only the shared scheme.

Parameters

Name
Type
Description
schemeCode
String
tenantId
String
tags
IEnumerable<String>

Returns

Type
Description
Task
public override Task<List<string>> SearchSchemesByTagsInTenantAsync(string tenantId, params string[] tags) #
Returns the list of scheme codes with the given tags in the specified tenant only.

Parameters

Name
Type
Description
tenantId
String
tags
String[]

Returns

Type
Description
Task<String>
public override Task AddSchemeTagsInTenantAsync(string schemeCode, string tenantId, params string[] tags) #
Adds tags to the scheme with the given schemeCode in the specified tenant only.

Parameters

Name
Type
Description
schemeCode
String
tenantId
String
tags
String[]

Returns

Type
Description
Task
public override Task RemoveSchemeTagsInTenantAsync(string schemeCode, string tenantId, params string[] tags) #
Removes tags from the scheme with the given schemeCode in the specified tenant only.

Parameters

Name
Type
Description
schemeCode
String
tenantId
String
tags
String[]

Returns

Type
Description
Task
public override Task SetSchemeTagsInTenantAsync(string schemeCode, string tenantId, params string[] tags) #
Sets tags on the scheme with the given schemeCode in the specified tenant only.

Parameters

Name
Type
Description
schemeCode
String
tenantId
String
tags
String[]

Returns

Type
Description
Task
public override void Init(WorkflowRuntime runtime) #
Init the provider

Parameters

Name
Type
Description
runtime
WorkflowRuntime
Workflow runtime instance which owned the provider